Molar Mass Calculator

Capital + optional lowercase for each element. Subscripts come after the symbol or group: H2O, Ca(OH)2, Mg3(PO4)2. Hydrates with · are fine too.

Molar mass of H₂O
18.015 g/mol

Element breakdown

ElementCountAtomic weightSubtotal (g/mol)
H21.0082.016
O115.99915.999
Total18.015

2 × H (1.008) + 1 × O (15.999) = 18.015 g/mol

Type a chemical formula — get the molar mass in g/mol, plus a row-by-row breakdown of every element's contribution. The parser handles standard notation: element symbols (Na, Cl, Fe), subscripts after the symbol (H2O), nested parentheses (Ca(OH)2, Mg3(PO4)2), and the dot multiplier for hydrates (CuSO4·5H2O). All 118 elements live in the table at 2021 IUPAC standard atomic weights, so the textbook constants come out right: water = 18.015, glucose = 180.156, table salt = 58.443. No sign-up. No Calculate button — the result updates as you type.

Built by Bob QA by Ben Shipped

How to use

  1. 1

    Type a chemical formula into the input — capital + optional lowercase for each element symbol (Na not NA, Cl not CL), digits after the symbol for subscripts (H2O has two H and one O).

  2. 2

    Use parentheses to group atoms that share a subscript: Ca(OH)2 means one Ca plus two OH units (two O and two H total).

  3. 3

    For hydrates, use a dot between the anhydrous formula and the water count: CuSO4·5H2O. An ASCII period works too (CuSO4.5H2O).

  4. 4

    The result updates instantly. The big number is the total molar mass in grams per mole; the table underneath shows how much each element contributed.

  5. 5

    Copy the molar mass or the worked breakdown for your lab notebook or homework.

Frequently asked questions

Ratings & Reviews

Rate this tool

Sign in to rate and review this tool.

Loading reviews…