Molar Mass, Explained
After reading this you can compute the molar mass of any chemical formula by hand, break it down into the mass contributed by each element, and avoid the counting mistakes that quietly throw off the answer.
What molar mass is
Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol). A mole is just a count: 6.022 \times 10^{23} particles, the Avogadro number. So molar mass answers a practical question: if you gather that many formula units, how many grams do you have?
The answer is a sum. Each atom carries a standard atomic weight in atomic mass units, and by definition those weights are numerically equal to grams per mole. Water is a quick hook. Hydrogen weighs about 1.008, oxygen about 15.999. Two hydrogens plus one oxygen gives 2 \times 1.008 + 15.999 = 18.015 g/mol. Weigh out 18.015 grams of water and you hold one mole, roughly 6.022 \times 10^{23} molecules.
The tool takes the formula string and does this sum for you, brackets and hydrate dots included. This guide teaches what it computes so you can check the result and read the breakdown.
When to use it, and when not
Reach for molar mass whenever you need to convert between grams and moles. That is the entry point to almost all quantitative chemistry: reacting masses, solution concentrations, gas amounts. If a problem gives you grams and asks about number of molecules, or asks how many grams of product a reaction yields, you need molar mass first.
It does not tell you the mass of a single molecule in grams directly, though you can get there by dividing by Avogadro's number. It also assumes a well-defined formula. Mixtures, alloys and polymers of variable length have no single molar mass; you would need an average composition or a degree of polymerization. Isotopically enriched samples differ from the standard values too, because those weights are natural-abundance averages.
The standard atomic weights are IUPAC conventional values, averaged over the isotope mix found on Earth. For elements with no stable isotope, such as technetium or the heavy actinides, the mass number of a common isotope is used instead. Answers for those elements are convention, not a measured average.
The formula and the intuition
Let a compound contain elements indexed by i, with n_i atoms of element i and standard atomic weight A_i. The molar mass is the weighted sum:
Here M is the molar mass in g/mol, n_i is the number of atoms of element i in one formula unit (a pure count, no units), and A_i is that element's standard atomic weight in g/mol. The only real work is counting the atoms correctly, which is where brackets and hydrate dots matter.
Percent composition follows from the same numbers. The mass fraction of element i is its total contribution divided by the whole:
Every element's percentage adds to 100. That is a free check on your arithmetic: if the percentages miss 100 by more than rounding, you counted wrong.
Worked example: copper(II) sulfate pentahydrate
Molar mass of CuSO4·5H2O
This is the demo formula. The dot means five water molecules are bound into the crystal, so you count them as part of the formula. Use these atomic weights: Cu 63.55, S 32.06, O 15.999, H 1.008.
- Count the atoms. The core
CuSO4gives 1 Cu, 1 S, 4 O. The5H2Ogives 10 H and 5 O. Totals: 1 Cu, 1 S, 9 O, 10 H. - Copper: 1 \times 63.55 = 63.55 g/mol.
- Sulfur: 1 \times 32.06 = 32.06 g/mol.
- Oxygen: 9 \times 15.999 = 143.99 g/mol.
- Hydrogen: 10 \times 1.008 = 10.08 g/mol.
- Sum: 63.55 + 32.06 + 143.99 + 10.08 = 249.68 g/mol.
So one mole of the pentahydrate weighs about 249.68 g. The water is not an afterthought: it contributes 5 \times 18.015 = 90.08 g/mol, which is 36 percent of the total mass. Dry this salt to the anhydrous form CuSO4 and the molar mass drops to 159.6 g/mol.
| Element | Atoms | Mass (g/mol) | Percent |
|---|---|---|---|
| Cu | 1 | 63.55 | 25.45 |
| S | 1 | 32.06 | 12.84 |
| O | 9 | 143.99 | 57.67 |
| H | 10 | 10.08 | 4.037 |
The four percentages sum to 25.45 + 12.84 + 57.67 + 4.037 = 99.99, which rounds to 100. Oxygen dominates because there are nine oxygen atoms, five of them from the water.
Reading and interpreting the results
The single number, molar mass in g/mol, is what you carry into other calculations. The percent composition tells you something different: what fraction of a sample's mass is a given element, regardless of how much you have.
That fraction is useful in the lab. If you buy a fertilizer labeled by nitrogen content, or need the iron in an ore, percent composition converts a bulk mass into an element mass. For CuSO4·5H2O the copper fraction is 25.45 percent, so 100 g of the crystal contains 25.45 g of copper.
- Molar mass
- Grams per mole of the whole formula unit. The pentahydrate value 249.68 g/mol includes the crystal water.
- Formula unit
- One instance of the written formula. For ionic compounds there are no discrete molecules, but the formula unit still fixes the ratio and the mass.
- Mass fraction
- One element's mass divided by the total, times 100. Independent of sample size.
Common mistakes
The errors here are almost all counting errors, not arithmetic. Watch for these.
A subscript multiplies only the atom or bracketed group directly before it. In Ca(OH)2 the 2 applies to the whole OH group, giving 2 O and 2 H, not 1 O and 2 H. Miscounting bracketed groups is the most common source of a wrong molar mass.
Forgetting hydrate water is the next trap. CuSO4 and CuSO4·5H2O differ by 90 g/mol, about 56 percent. If a procedure specifies the hydrate, weigh by the hydrate mass. Using the anhydrous molar mass with a hydrated salt gives you too many moles.
Do not confuse molar mass with molecular weight of a single molecule in grams. The value 18.015 for water is grams per mole. One molecule weighs 18.015 / (6.022 \times 10^{23}) \approx 2.99 \times 10^{-23} g. Both describe the same substance; the units differ by Avogadro's number.
Finally, mind significant figures. Atomic weights carry their own uncertainty. Reporting a molar mass to six decimals when your atomic weights are good to four is false precision. Two decimal places is usually honest for lab work.
Related tools
Molar mass is the hinge between mass and amount, so it feeds many other calculations. Once you have it, the Mole Calculator converts between grams, moles and particle counts. For reactions, balance first with the Chemical Equation Balancer, then find reacting amounts with the Stoichiometry Calculator.
Going the other direction, if you have percent composition and want the formula, use the Empirical & Molecular Formula Calculator. For solution work, the Concentration Converter and Dilution Calculator both need molar mass to move between g/L and molarity. Gas amounts follow from the Ideal Gas Law Calculator, and you can look up any element's atomic weight directly in the Periodic Table Element Lookup.
Frequently asked questions
What is the difference between molar mass and atomic mass?
Atomic mass is the mass of one atom, usually in atomic mass units. Molar mass is the mass of one mole of a substance in grams per mole. For a single element they are numerically equal by design, so carbon's atomic mass 12.011 u matches its molar mass 12.011 g/mol.
How do I handle the dot in a hydrate like CuSO4·5H2O?
Treat everything after the dot as extra atoms in the same formula unit. The 5H2O adds 10 hydrogen and 5 oxygen, contributing 5 \times 18.015 = 90.08 g/mol. The tool accepts the dot directly.
Why do my atomic weights differ slightly from another source?
IUPAC updates conventional atomic weights, and some elements have a range rather than a single value because their isotope mix varies by source. Small differences in the third or fourth digit are normal and rarely affect lab-scale answers.
Can I get molar mass for an ionic compound with no molecules?
Yes. Ionic compounds such as NaCl have no discrete molecules, but the formula unit still sets the atom ratio. NaCl has molar mass 22.99 + 35.45 = 58.44 g/mol per formula unit, and that is what you weigh out.
How do I turn molar mass into the mass of one molecule?
Divide by Avogadro's number. For glucose, C6H12O6 has molar mass about 180.16 g/mol, so one molecule weighs 180.16 / (6.022 \times 10^{23}) \approx 2.99 \times 10^{-22} g.