Molar Mass Calculator

Type any chemical formula and get its molar mass in g/mol instantly — with a full breakdown of every element's contribution.

Molar Mass Calculator

Enter any chemical formula — parentheses supported.

Use standard capitalization: H₂O → H2O, glucose → C6H12O6
Molar mass

Want to understand how this works? Study it in the The Mole & Stoichiometry lesson →

Worked examples

Example 1 — Water (H₂O)

Water has 2 hydrogen atoms and 1 oxygen atom. From the periodic table: H = 1.008 u, O = 16.00 u. So M(H₂O) = 2 × 1.008 + 1 × 16.00 = 18.02 g/mol. The calculator also shows that oxygen makes up 88.8% of the mass — hydrogen contributes only 11.2%.

Example 2 — Calcium hydroxide (Ca(OH)₂)

Parentheses mean "multiply everything inside": Ca(OH)₂ contains 1 Ca, 2 O and 2 H. M = 40.08 + 2 × (16.00 + 1.008) = 74.09 g/mol. Type Ca(OH)2 into the calculator — the parenthesis parser handles the grouping for you.

Example 3 — Glucose (C₆H₁₂O₆)

6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 72.07 + 12.10 + 95.99 = 180.16 g/mol. Notice how carbon, despite only 6 atoms, contributes 40% of the mass — a quick way to check your answer makes sense before a test.

How it works

The molar mass of a compound is the sum of the atomic masses of every atom in one formula unit, taken straight from the periodic table. Subscripts multiply an element's contribution, and a subscript after parentheses multiplies everything inside them — that's why Ca(OH)₂ counts two of each atom in the OH group.

The result is expressed in g/mol: one mole of the substance (6.022 × 10²³ formula units) has exactly that many grams. Mass percentages tell you which element dominates the mass — useful for empirical-formula problems and hydrate calculations.

Take it with you: download the one-page formula cheat sheet (PDF) — print it and keep it on your desk.

Next steps: convert grams to moles with the Mole Converter, check yourself with the practice quiz, or study the full method in the The Mole & Stoichiometry lesson.