Skip to main content

Molar Mass Calculator

g/mol from any formula — parentheses and hydrates supported.

The formula behind it

M = Σ (atomic weight of element × count)
M
molar mass in grams per mole (g/mol)
count
how many atoms of the element appear in one formula unit

Molar mass converts a chemical formula into grams per mole by summing each element's standard atomic weight times its subscript. Parentheses multiply everything inside them — Ca(OH)₂ counts both the O and the H twice — and hydrate notation adds water of crystallization: CuSO₄·5H₂O is the salt plus five waters. The composition table shows each element's share, which doubles as a manual check of the parse.

How to use this calculator

  1. 1

    Type the formula — parentheses and hydrate dots are understood (Ca(OH)2, Mg3(PO4)2, CuSO4·5H2O).

  2. 2

    Press Calculate to see the molar mass and the full composition table.

  3. 3

    Scan the composition table to see each element's share of the total — the percentages always sum to 100.

Worked examples

Water

H₂O = 2 × 1.008 + 15.999 = 18.015 g/mol.

Gypsum

CaSO₄·2H₂O = 40.078 + 32.06 + 4×15.999 + 2×18.015 = 172.17 g/mol.

Frequently asked questions

Explore more categories

Command Palette

Search for a command to run...