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, or molecular mass. The molar mass, the mass of one mole of the substance in grams per mole (g/mol), has the same number. Knowing the molecular weight is important in chemistry because it helps you measure the right amounts of substances for experiments 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 molar mass in grams per mole (g/mol).
How to Use Our Molecular Weight Calculator
Enter a chemical formula, and this calculator will give you the molar mass of that compound in grams per mole (g/mol), shown in the result labelled Molecular Weight.
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. To find it, you add up the atomic weights of every atom in a chemical formula.2 For one molecule the total is in atomic mass units (amu). The molar mass, the mass of one mole of the substance, has the same number in grams per mole (g/mol).2 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.1 So water's molar mass is about 2 × 1.008 + 15.999 = 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. Molar mass 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.
- Identify unknown substances: Techniques like mass spectrometry measure molecular weight to help figure out what a substance is.7
- Work out reaction amounts: Once an equation is balanced, the molar mass of each compound turns its mole ratios into masses you can weigh out.
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 shown here is the monoisotopic mass, which uses only the mass of the most abundant isotope of each element.6 For carbon, the average weight is 12.011 g/mol.1 The exact mass uses carbon-12, whose relative atomic mass is exactly 12.4 Scientists use exact mass with high-resolution mass spectrometers, which can tell apart two formulas with the same whole-number mass.7 Average molecular weight is used for everyday lab work like weighing chemicals on a balance.
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 the weight of one water molecule.10 That water molecule, present at the ends of the chain, adds about 18.015 g/mol. 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.
Understanding Molarity
Molarity (M) tells you how many moles of a substance are dissolved in one liter of solution.3 The formula is simple: Molarity = moles ÷ volume (in liters). To find moles, divide the mass of your solute (in grams) by its molar mass. For instance, dissolving 5.844 grams of NaCl (molar mass 58.44 g/mol) in enough water to make 1 liter of solution 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.
Hydrates and Special Formulas
Some ionic compounds hold water molecules as part of their crystals. These are called hydrates, and their formulas are written with a raised dot, like CuSO₄·5H₂O (copper(II) sulfate pentahydrate).9 In the calculator you can type the dot as a period or an asterisk (*). When calculating the molar mass of a hydrate, you add the mass of the base compound to the mass of the water molecules. In this example, you add the molar mass of CuSO₄ (159.602 g/mol) to five times the molar mass of water (5 × 18.015 = 90.075 g/mol), giving a total of about 249.677 g/mol. Understanding the percentage composition of water versus the anhydrous salt in a hydrate is a common exercise in general chemistry courses.