Molar Mass Calculator

Type a chemical formula to get its molar mass in g/mol, a breakdown of every element's share by mass, and quick conversions between grams and moles.

Examples: H2O, C6H12O6, Ca(OH)2, Al2(SO4)3, [Cu(NH3)4]SO4. Write hydrates with a dot or asterisk: CuSO4*5H2O.

Runs in your browser; nothing you type is sent anywhere. · Updated

How to use the molar mass calculator

Type the formula with correct capitalization: each element symbol starts with a capital letter, followed by its count. Parentheses and square brackets group atoms (Ca(OH)₂, [Cu(NH₃)₄]SO₄), and hydrates use a dot or asterisk (CuSO₄·5H₂O or CuSO4*5H2O). Add a mass in grams or an amount in moles to convert between them.

How to calculate molar mass

Multiply each element's atomic mass by the number of atoms, then add them up.

Example: glucose, C₆H₁₂O₆

Element Atoms Atomic mass Total
Carbon 6 12.011 72.066
Hydrogen 12 1.008 12.096
Oxygen 6 15.999 95.994
Glucose 180.156 g/mol

With parentheses, multiply everything inside by the subscript: Ca(OH)₂ has 1 Ca, 2 O and 2 H = 40.078 + 2(15.999) + 2(1.008) = 74.092 g/mol.

Molar masses of common compounds

Compound Formula Molar mass (g/mol)
Water H₂O 18.015
Table salt NaCl 58.44
Carbon dioxide CO₂ 44.009
Ammonia NH₃ 17.031
Sulfuric acid H₂SO₄ 98.072
Glucose C₆H₁₂O₆ 180.156
Sucrose C₁₂H₂₂O₁₁ 342.297
Calcium carbonate CaCO₃ 100.086
Sodium hydroxide NaOH 39.997
Copper(II) sulfate pentahydrate CuSO₄·5H₂O 249.677
Ethanol C₂H₅OH 46.069
Aluminum sulfate Al₂(SO₄)₃ 342.132

Grams, moles and molecules

  • Moles = grams ÷ molar mass. 36 g of water ÷ 18.015 g/mol = 2.0 mol.
  • Grams = moles × molar mass. 0.25 mol of NaCl × 58.44 = 14.61 g.
  • Molecules = moles × 6.022 × 10²³ (Avogadro's number).

To make a solution of a given concentration, use the molarity calculator.

Molar mass vs. molecular weight

They're the same number with different units. Molar mass is grams per mole (g/mol); molecular weight (or formula weight for ionic compounds) is in atomic mass units (u or Da). Water is 18.015 g/mol and 18.015 u.

Frequently asked questions

What is the molar mass of water?

18.015 g/mol: 2 × 1.008 (hydrogen) + 15.999 (oxygen).

How do I find the molar mass of a compound?

Add the atomic masses of all the atoms in the formula, counting each element as many times as it appears.

How do I handle hydrates?

Add the water: CuSO₄·5H₂O = CuSO₄ (159.61) + 5 × H₂O (5 × 18.015) = 249.68 g/mol.

Where do the atomic masses come from?

IUPAC standard atomic weights, the values printed on most periodic tables. Elements with no stable isotopes use the mass number of their longest-lived isotope.