How to Calculate Molar Mass Step by Step
By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.
Calculating molar mass starts with one simple idea: add the atomic masses of every atom shown in a chemical formula. The arithmetic is usually straightforward, but subscripts and brackets can make the counting easy to lose track of. A slow, written count is more reliable than trying to total everything in your head.
From formula to molar mass
Molar mass tells you the mass of one mole of a substance and is commonly expressed in grams per mole. To find it, first read the chemical formula carefully. Then look up the relative atomic mass of each element on the periodic table, multiply by the number of that atom in the formula, and add the results.
Take water, H2O. The formula contains two hydrogen atoms and one oxygen atom. Using approximate atomic masses of 1 for hydrogen and 16 for oxygen gives 2 times 1 plus 16, which is about 18 grams per mole. More precise periodic-table values give a slightly more precise result.
This basic routine is how to calculate molar mass for both simple and complicated formulas. The formula is an atom inventory. Your job is to count every entry in that inventory once, multiply correctly, and keep units attached to the final answer.
Subscripts and brackets change the atom count
Consider carbon dioxide, CO2. The lack of a subscript after C means one carbon atom, while the 2 after O means two oxygen atoms. Using approximate atomic masses gives 12 plus 2 times 16, for a molar mass of about 44 grams per mole.
Brackets require an extra step. In calcium hydroxide, Ca(OH)2, the subscript outside the brackets multiplies everything inside. The formula contains one calcium atom, two oxygen atoms, and two hydrogen atoms. Forgetting to multiply both O and H by 2 is a common source of errors.
When calculating molar mass, write a small count beside each element before doing any addition. This separates chemistry from arithmetic. If the final number looks wrong, you can check whether the mistake came from reading the formula, using an atomic mass, multiplying, or adding.
A reliable molar mass routine
Use the same sequence every time you calculate:
- •Copy the chemical formula exactly and identify every different element.
- •Count each atom, including subscripts outside brackets or parentheses.
- •Find the atomic mass of each element from the periodic table you are using.
- •Multiply each atomic mass by its atom count.
- •Add all contributions and report the total in grams per mole.
Compounds containing water of crystallisation need the same careful counting. A dot in a formula can show that a fixed number of water molecules are associated with each formula unit. Count the atoms in the main compound, then add the atoms contributed by the waters. The method for calculating molar mass does not change. The formula may look longer, but every symbol and multiplier still becomes part of one organised atom total.
You can check a molar mass by estimating before using precise values. If a compound contains several heavy atoms, a tiny final total is suspicious. Estimation will not replace the calculation, but it can expose a missed subscript or a decimal-entry error before you move on.
The takeaway
Calculating molar mass is mostly careful counting. Read the formula, count each type of atom, multiply each count by the correct atomic mass, and add the contributions. Treat brackets as multiplication instructions and keep units for the end. Once your atom count is right, molar mass problems become a short, repeatable piece of chemistry rather than a guessing exercise.