A little help goes a long way. Find a tool/

Science & Physics FIELD NOTES · 4 MIN READ

Reading Chemical Formulas: How Molar Mass Is Computed

From H2O to CuSO4·5H2O: parsing subscripts, parentheses and hydrates into a grams-per-mole total.

A chemical formula is a compressed recipe: CuSO4·5H2O says one copper, one sulfur, four oxygens, and five whole water molecules riding along. Computing a molar mass means unpacking that recipe and weighing it — turning notation into grams per mole, the number that connects what you write on paper to what you pour on a balance. The parsing rules are few, and once you can read them, every formula on every reagent bottle becomes arithmetic.

The mole: chemistry's exchange rate

Atoms are too small to count, so chemistry counts by the mole: 6.022×10²³ particles, chosen so that one particle's mass in daltons equals one mole's mass in grams. Carbon is 12.011 u per atom and 12.011 g per mole — the same number, two scales. This is why molar mass is the exchange rate between the microscopic formula and the macroscopic lab:

mass (g) = moles (mol) × molar mass (g/mol)

Need 0.25 mol of glucose at 180.156 g/mol? Weigh 45.04 g. The formula tells you the recipe; the molar mass converts it to the bench.

Reading the notation, piece by piece

A formula parser — whether silicon or a first-year student — applies a handful of rules:

  • Symbols are case-sensitive. An uppercase letter, optionally followed by one lowercase letter, is one element: H, He, Cu. So Co is cobalt (58.933 g/mol) while CO is carbon monoxide (28.01 g/mol) — two capitals, two elements. Getting this wrong flips the answer entirely.
  • Numbers after a symbol multiply it. H2O means two hydrogens and one oxygen: 2 × 1.008 + 15.999 = 18.015 g/mol. CO2 is 12.011 + 2 × 15.999 = 44.009 g/mol.
  • Parentheses multiply everything inside. Ca(OH)2 counts calcium once but oxygen and hydrogen twice: 40.078 + 2 × 17.007 = 74.092 g/mol. Groups nest, so K4[Fe(CN)6] — brackets behave like parentheses — counts six cyanides inside the iron complex.
  • A dot joins independent parts. Hydrates like CuSO4·5H2O carry crystal water: the pentahydrate's mass is anhydrous copper sulfate (159.602) plus five waters (90.075) — 249.677 g/mol. More than a third of what you weigh when dispensing the blue crystals is water.

Summing it up: a worked table

Take water apart element by element, using the standard atomic masses (hydrogen 1.008, oxygen 15.999):

H:  2 × 1.008 =  2.016  →  11.2%
O:  1 × 15.999 = 15.999  →  88.8%
total          = 18.015 g/mol

Those percentages are the percent composition — the mass fraction each element contributes. It answers practical questions directly: how much hydrogen is in a kilogram of water (about 112 g), or what fraction of a fertiliser's mass is actually nitrogen. Gravimetric analysis, empirical-formula determination and purity checks all run on this one breakdown table.

Why atomic masses have decimals

Natural samples are isotope mixtures. Chlorine is roughly three parts chlorine-35 to one part chlorine-37, and the tabulated 35.45 is the abundance-weighted average — which is also why no single chlorine atom weighs exactly that. Tables periodically refine these averages as measurement improves, so different sources may differ in the last decimal: sulfuric acid computed as 98.07 or 98.08 g/mol is the same calculation reading two tables. For typical lab work, two decimal places in the total is already finer than most glassware justifies.

Common parsing pitfalls

The classic errors are all notation errors: writing mg instead of Mg (an unknown symbol, not a unit), dropping a hydrate's water when weighing (the anhydrous mass of CuSO4 is 62% of the pentahydrate's), unbalanced parentheses, or treating subscripts as coefficients — 2H2O means two water molecules (36.03 g/mol), not H4O. A parser that reports the element-by-element breakdown makes such mistakes visible immediately: if the atom count or an element looks wrong, the formula was read wrong. For converting the resulting moles into solution volumes, the dilution guide picks up exactly where molar mass ends.

Try it yourself

The Molar Mass Calculator parses formulas the way this article describes — subscripts, parentheses, brackets, hydrate dots like CuSO4·5H2O — and returns the grams-per-mole total with a full element breakdown and percent composition. To look up a single element's data, the Periodic Table Lookup searches by symbol, name or number; the Dilution Calculator then turns a target molarity into a weighing-and-diluting recipe, and the Scientific Notation Converter keeps the very large and very small numbers readable.

Frequently asked questions

How is molar mass calculated from a formula?
Multiply each element’s atomic mass by how many atoms of it the formula contains, then add the products. H2O is 2 × 1.008 + 15.999 = 18.015 g/mol. Parentheses multiply everything inside them: Ca(OH)2 counts two O and two H in addition to the Ca.
What does the dot in CuSO4·5H2O mean?
It marks waters of crystallisation: five water molecules are incorporated per formula unit of copper sulfate. Add their mass — 5 × 18.015 = 90.075 g/mol — to the anhydrous salt’s 159.602 g/mol to get 249.677 g/mol for the pentahydrate.
Why does capitalisation change the answer?
Symbols are case-sensitive: Co is cobalt, CO is carbon monoxide, and No is nobelium while NO is nitric oxide. A parser reads an uppercase letter plus at most one following lowercase letter as a symbol, so mixed case is meaningful, not a typo.
What is percent composition used for?
It tells you what fraction of a compound’s mass each element contributes — hydrogen is 11.2% of water’s mass, oxygen 88.8%. Chemists use it to check purity, match empirical formulas to assay data, and compute how much of an element a fertiliser or ore actually delivers.
Why do atomic masses have decimals?
Natural elements are isotope mixtures: the listed mass is the abundance-weighted average (chlorine is mostly Cl-35 with some Cl-37, averaging 35.45). Only fully synthetic or single-isotope elements get near-integer values, and tabulated weights are periodically refined.