Molar Mass Calculator
Standard notation. Use parentheses for groups and · for hydrates.
What molar mass is
Molar mass is the sum of the atomic masses of every atom in a chemical formula, weighted by how many of each atom there are. This calculator parses the formula you type — including parentheses, subscripts, hydrates, and coefficients — and returns the total in g/mol along with the per-element breakdown. For something simple like H2O the calculation is one line: 2(1.008) + 15.999 = 18.015 g/mol. For a hydrate like CuSO4·5H2O the parser has to handle the dot notation; for a complex like K3[Fe(CN)6] it has to handle nested brackets.
The atomic masses used are IUPAC standard atomic weights — the conventional values reported on modern periodic tables. They are weighted averages over natural-abundance isotope distributions, not single-isotope masses, which is why H is 1.008 (not exactly 1) and Cl is 35.45 (not 35 or 37). For elements without a stable isotope (Tc, Pm, all transuranics) the atomic mass shown is the mass of the most stable known isotope, in brackets on most tables.
What the calculator does
- Type a chemical formula (e.g.,
H2SO4,Ca(OH)2,CuSO4*5H2O,K3[Fe(CN)6]). - The parser walks the string and counts atoms element-by-element.
- Output: molar mass total, breakdown table (element, atom count, individual mass contribution, mass percent of total), and a “Show Steps” section with the arithmetic spelled out for each element.
Worked examples
Water (H2O).
- H: 2 × 1.008 = 2.016
- O: 1 × 15.999 = 15.999
- Total = 18.015 g/mol
Sulfuric acid (H2SO4).
- H: 2 × 1.008 = 2.016
- S: 1 × 32.06 = 32.06
- O: 4 × 15.999 = 63.996
- Total = 98.072 g/mol
Calcium hydroxide (Ca(OH)2). Parentheses: 1 Ca, 2 O, 2 H.
- Ca: 40.078; O: 31.998; H: 2.016
- Total = 74.092 g/mol
Glucose (C6H12O6).
- C: 6 × 12.011 = 72.066
- H: 12 × 1.008 = 12.096
- O: 6 × 15.999 = 95.994
- Total = 180.156 g/mol
Copper(II) sulfate pentahydrate (CuSO4·5H2O). The dot adds 5 separate H2O units.
- Cu: 63.546; S: 32.06
- O (sulfate): 4 × 15.999 = 63.996; O (5 waters): 5 × 15.999 = 79.995 → 9 O total = 143.991
- H (5 waters): 10 × 1.008 = 10.08
- Total = 249.677 g/mol
Where molar mass gets used
Every gram-to-mole conversion: stoichiometry, solution preparation (grams of solute for a target molarity), percent composition, empirical-and-molecular formula determination, limiting-reagent comparisons. None of those calculations can start until you have an accurate molar mass for each species involved.