⚗️ Molar Mass Calculator

Enter a chemical formula (e.g. H2O, C6H12O6, Ca(OH)2) to get its molar mass and elemental breakdown.

Counting atoms, then adding standard atomic weights

The formula is parsed into a tally of atoms, and each tally is multiplied by that element's standard atomic weight:

M = Σ (count of element × atomic weight)

Glucose, the default C6H12O6, works out as C 12.011 × 6 = 72.066, H 1.008 × 12 = 12.096 and O 15.999 × 6 = 95.994, totalling 180.156 g/mol. Every element's own contribution is listed above the total, which is what you need for percentage composition.

Writing the formula so it parses

FormulaMolar mass
H2O18.015 g/mol
NaCl58.440 g/mol
Ca(OH)274.092 g/mol
H2SO498.072 g/mol
Only 36 common elements are in the table, covering the usual school and lab set. Anything outside it is named back to you as an unknown symbol rather than quietly counted as zero.

Frequently asked questions

What is the molar mass of glucose?

180.156 g/mol. C6H12O6 holds six carbons at 12.011, twelve hydrogens at 1.008 and six oxygens at 15.999.

What is the difference between CO and Co?

CO is carbon monoxide at 28.010 g/mol; Co is the element cobalt at 58.933 g/mol. The lowercase letter is part of the symbol, not a second element.

How do I enter a hydrate such as copper sulfate pentahydrate?

The centre dot is not accepted, so do the two halves separately. CuSO4 is 159.602 g/mol and five waters add 90.075, giving 249.677 g/mol.