Introduction
The Molecular Weight Calculator helps you find the total weight of a molecule. Every atom has a certain mass, measured in atomic mass units (amu). When atoms join together to form a molecule, their masses add up. This total is called the molecular weight, also known as the molar mass. Knowing the molecular weight is important in chemistry because it helps you measure the right amounts of substances for experiments, balance chemical equations, and solve stoichiometry problems. Simply enter a chemical formula, and this calculator will add up the atomic masses of each element to give you the molecular weight in grams per mole (g/mol).
How to Use Our Molecular Weight Calculator
Enter a chemical formula, and this calculator will give you the total molecular weight (molar mass) of that compound in grams per mole (g/mol).
Chemical Formula: Type the molecular formula of the compound you want to calculate. Use standard chemical notation with element symbols and subscript numbers. For example, enter H2O for water, NaCl for sodium chloride, or C6H12O6 for glucose. Make sure you capitalize the first letter of each element symbol and keep the second letter lowercase.
What Is Molecular Weight?
Molecular weight (also called molecular mass) is the total mass of all the atoms in a molecule. It is measured in grams per mole (g/mol). To find it, you add up the atomic weights of every atom in a chemical formula. For example, water (H₂O) has two hydrogen atoms and one oxygen atom. Hydrogen weighs about 1.008 g/mol and oxygen weighs about 15.999 g/mol, so water's molecular weight is roughly 18.015 g/mol.
Why Molecular Weight Matters
Knowing the molecular weight of a substance is one of the most basic and important steps in chemistry. Scientists and students need it to:
- Measure the right amounts — If you want to mix chemicals in the correct ratio for a reaction, you need to convert between grams and moles. Molecular weight is the bridge between those two units.
- Prepare solutions — To make a solution with a specific concentration (molarity), you must know how many grams of solute equal one mole. Our Molarity Calculator can help you work through those concentration calculations.
- Identify unknown substances — Techniques like mass spectrometry measure molecular weight to help figure out what a substance is.
- Balance equations — Understanding mass relationships in chemical reactions depends on knowing the molecular weight of each compound involved.
How to Calculate Molecular Weight by Hand
Start by writing out the chemical formula. Then, for each element in the formula, multiply its atomic weight (found on the periodic table) by the number of times that atom appears. Finally, add all those values together. For compounds with parentheses like Ca(OH)₂, remember to multiply everything inside the parentheses by the subscript outside. In this case, you have one calcium (40.078), two oxygen atoms (2 × 15.999 = 31.998), and two hydrogen atoms (2 × 1.008 = 2.016), giving a total of 74.092 g/mol. When reporting your answer, pay attention to significant figures to ensure the proper level of precision.
Average vs. Exact Mass
There are two ways to express molecular mass. The average molecular weight uses the standard atomic weights listed on the periodic table, which account for the natural mix of isotopes for each element. The exact mass (also called monoisotopic mass) uses only the most abundant isotope of each element. For carbon, the average weight is 12.011 g/mol, but the exact mass uses carbon-12 at exactly 12.00000. Scientists use exact mass in high-precision instruments like mass spectrometers, while average molecular weight is used for everyday lab work like weighing chemicals on a balance. Understanding the percent error between these two values can be useful when evaluating measurement accuracy.
Molecular Weight of Proteins and Nucleic Acids
Molecular weight is not just for small molecules. Proteins are long chains of amino acids, and their molecular weight is found by adding up the residue weight of each amino acid and then adding 18.015 g/mol for the water molecule present at the ends of the chain. A small peptide might weigh a few thousand g/mol, while a large protein can weigh hundreds of thousands. Similarly, DNA and RNA strands have molecular weights calculated from their individual nucleotide building blocks. These calculations are essential in biochemistry, molecular biology, and medicine. If you're studying radioactive isotopes used in biochemical tracer experiments, our Half Life Calculator and Radioactive Decay Calculator may also be helpful.
Understanding Molarity
Molarity (M) tells you how many moles of a substance are dissolved in one liter of solution. The formula is simple: Molarity = moles ÷ volume (in liters). To find moles, divide the mass of your solute (in grams) by its molecular weight. For instance, dissolving 5.844 grams of NaCl (molecular weight 58.44 g/mol) in 1 liter of water gives you a 0.1 M solution. Molarity is one of the most common ways to describe solution concentration in both classrooms and research labs. For more detailed concentration work, try our dedicated Molarity Calculator. When working with acids and bases in solution, our pH Calculator can help you determine the acidity or basicity of your preparations. You can also explore gas behavior at different conditions using the Ideal Gas Law Calculator.
Hydrates and Special Formulas
Some compounds include water molecules trapped in their crystal structure. These are called hydrates and are written with a dot or multiplication sign, like CuSO₄·5H₂O (copper sulfate pentahydrate). When calculating molecular weight for a hydrate, you add the weight of the base compound to the weight of the water molecules. In this example, you add the molecular weight of CuSO₄ (159.609 g/mol) to five times the molecular weight of water (5 × 18.015 = 90.075 g/mol), giving a total of about 249.684 g/mol. Understanding the percentage composition of water versus the anhydrous salt in a hydrate is a common exercise in general chemistry courses.