Skip to content
Allin

How to Calculate Molar Mass, Including Parentheses and Hydrates

Published 5/12/2026 · 6 min read · Everyday calculators

Lena Hoffmann

Lena HoffmannScience & education writer at Allin

Mathematics · Physics

Checked against 2 sources

View profile
In short

Molar mass is the sum, over every element in the formula, of its standard atomic weight multiplied by how many atoms of it the formula contains, expressed in g/mol. Water: 2 × 1.008 + 15.999 = 18.015 g/mol. Calcium carbonate CaCO3: 40.078 + 12.011 + 3 × 15.999 = 100.086 g/mol. A subscript after a closing bracket multiplies everything inside it, so Ca(NO3)2 contains two nitrogen atoms and six oxygen atoms: 40.078 + 2 × 14.007 + 6 × 15.999 = 164.086 g/mol. A hydrate dot means you add whole water molecules on top, so CuSO4·5H2O is 159.602 + 5 × 18.015 = 249.677 g/mol, of which 36.08 percent is water.

Multiply each atomic weight by its subscript and add. The only three places the arithmetic goes wrong are a subscript after a closing bracket, the hydrate dot, and a capital letter typed as a lowercase one.

The three cases the arithmetic has to handle

A plain subscript is the easy case: it counts the atoms of the element immediately before it, and an element with no subscript counts once. C6H12O6 is six carbons, twelve hydrogens and six oxygens, giving 180.156 g/mol. Nothing here catches anyone out, which is why textbooks stop there and students then meet a real formula.

The bracket case is where marks are lost. In Ca(NO3)2 the group NO3 appears twice, so the formula holds two nitrogens and six oxygens, and the six is the number people forget. The hydrate case is different again: the dot in CuSO4·5H2O is not multiplication of the copper sulfate, it is an instruction to add five separate water molecules. The anhydrous salt is 159.602 g/mol, the five waters are 90.075 g/mol, and the pentahydrate is their sum, 249.677 g/mol — which means more than a third of the crystal you weigh out is water.

Molar mass, molecular mass and formula mass

The three names describe the same arithmetic with different units attached. Relative molecular mass is a ratio and therefore carries no unit: water is 18.015, full stop. Molar mass is the mass of one mole and carries g/mol: water is 18.015 g/mol. Formula mass is the term used when the substance has no discrete molecules, as with an ionic solid like NaCl, where CaCO3 or NaCl describes the repeating ratio in a lattice rather than a particle you could isolate.

The numbers coincide because of how the mole is defined. Since the 2019 revision of the SI, a mole is exactly 6.02214076 × 10^23 entities, a fixed count rather than a mass of carbon-12. The consequence is subtle but worth knowing: the gram per mole is no longer exactly tied to the carbon-12 scale, so the molar mass constant is now an experimental quantity that happens to equal 1 g/mol to within about one part in a billion. For every calculation you will ever do by hand, treating the two as identical is exact enough.

Where the answer goes wrong

Capitalisation is a chemical statement, not a typing preference. CO is carbon monoxide at 28.010 g/mol; Co is cobalt at 58.933. Any parser worth using will refuse an unknown symbol rather than guess, which is why a formula that returns an error is usually a lowercase letter that should have been a capital, or a capital that should have been lowercase in a two-letter symbol.

The second recurring error is rounding at the start rather than the end. Atomic weights are published to three or four decimals for a reason, and truncating them before multiplying by a large subscript compounds the loss. Round once, at the end, and to the precision the question actually needs: two decimals is right for almost every school problem, four when a molar mass feeds a titration or a gravimetric result you will later subtract from another number of similar size.

Molar mass
Four formulas worked out in full, one for each thing that can go wrong
FormulaSubstanceArithmeticMolar mass
H2OWater2 × 1.008 + 15.99918.015 g/mol
CaCO3Calcium carbonate40.078 + 12.011 + 3 × 15.999100.086 g/mol
Ca(NO3)2Calcium nitrate — the bracket case40.078 + 2 × 14.007 + 6 × 15.999164.086 g/mol
CuSO4·5H2OCopper sulfate pentahydrate — the dot case159.602 + 5 × 18.015249.677 g/mol
Molar Mass CalculatorCompute the molar mass of any chemical formula, with per-element composition.Try the tool

Frequently asked questions

Why do two sources give slightly different molar masses?
Because standard atomic weights are averages over natural isotopic abundance, and that abundance varies slightly between geological sources. IUPAC now publishes intervals rather than single values for a dozen elements, including hydrogen, carbon, oxygen and sulfur, and different tables pick different conventional values from within those intervals. The disagreement lands in the third or fourth decimal and never changes an answer at school precision.
Is molar mass the same as molecular weight?
Numerically yes, dimensionally no. Molecular weight is the older name for relative molecular mass, a pure number with no unit; molar mass is that same number expressed in g/mol. Since they agree to every digit you will use, the distinction only bites when a question asks for units, or when you are cancelling units in a longer calculation and need g/mol to make the grams disappear.
Does the hydrate water count when I weigh out a reagent?
It counts entirely, and forgetting it is the classic way to prepare a solution roughly a third too dilute. Say you need one mole of copper sulfate, look up the anhydrous value of 159.602 g/mol and weigh that much out of a bottle of the pentahydrate: you have taken only 159.602 divided by 249.677, or 0.639 mol — 36 percent short, which is exactly the water fraction of the crystal. Check which form the bottle contains before converting a mass into moles; the label carries the dot or it does not, and for this purpose they are different substances.

Articles you may find interesting

All guides
ExplainerThe Ideal Gas Law Explained: PV = nRT, R in Every Unit, and Where It BreaksPV = nRT holds when the gas is dilute and far from condensing. The value of R depends entirely on the units you feed it, and the temperature is never in degrees Celsius.How-toHow to Calculate a Dilution with C1V1 = C2V2Solve for the missing term, then convert the answer into a bench instruction. The step almost everyone skips is that the solvent you add is V2 minus V1, not V2.How-toHow to Calculate pH — And When the Weak-Acid Shortcut Stops WorkingFour routes for four kinds of solution, each worked with real numbers. Including the part most pages leave out: the square-root formula for a weak acid is an approximation with a validity limit, and it fails quietly.ExplainerHow Half-Life Works: What Is Left After 1, 3 and 10 Half-LivesOne half-life leaves 50%, three leave 12.5%, ten leave less than a tenth of a percent. The formula is a single line — the part worth understanding is why the answer never reaches zero.How-toHow to Solve Stoichiometry Problems: Grams to Moles to Ratio to GramsEvery problem in the chapter is the same four moves. The mole ratio is the hinge, and it is the step students lose — worked here end to end, limiting reactant and percent yield included.ExplainerCaffeine Half-Life: Why Your Afternoon Coffee Is Still There at MidnightCaffeine leaves by first-order kinetics, so what remains is the dose times one half to the power of elapsed time over half-life. The half-life is not a constant — it varies by multiples between people, and that is the whole story.

Related tools

Sources

Spotted a mistake in this article?