Skip to content
M2TOOLKIT

Education · free tool

Molar Mass Calculator

Type a chemical formula to get its molar mass and percent composition.

Use it as often as you like — it's free, with no sign-up and no limits.

  • Education
  • Free
  • No sign-up
  • Nothing is sent or stored
  • Updated

Element symbols are case-sensitive: Co is cobalt, CO is carbon monoxide.

Result

Molar mass of C6H12O6
180.156 g/mol
Atoms per formula unit
24
Composition by mass
ElementAtomsAtomic massMass (g/mol)Mass %
Carbon (C)612.01172.06640.002%
Hydrogen (H)121.00812.0966.714%
Oxygen (O)615.99995.99453.284%

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved.

How to use the Molar Mass Calculator

  1. Type the formula, e.g. H2SO4, Ca(OH)2 or CuSO4·5H2O.
  2. Read the molar mass in g/mol.
  3. Check the composition table for each element's share.

What does this tool do?

Molar mass is the mass of one mole of a substance — the sum of the atomic masses of every atom in its formula. Water, H₂O, is 2 × 1.008 + 15.999 = 18.015 g/mol.

The parser understands nested brackets, square brackets and hydrates. Symbols are case-sensitive: Co is cobalt, while CO is carbon monoxide.

Why use it?

  • Brackets and hydrates supported.
  • Percent composition by mass.
  • IUPAC standard atomic weights.

Use cases

  • Chemistry homework and lab calculations.
  • Converting between grams and moles.
  • Checking element percentages in compounds.

Sulfuric acid, H₂SO₄

2 × 1.008 + 32.06 + 4 × 15.999 ≈ 98.07 g/mol. Hydrates work too: CuSO₄·5H₂O is about 249.7 g/mol.

ElementMassShare
H2.0162.06%
S32.0632.69%
O63.99665.25%

Common mistakes

  • Typing CO when you mean Co (cobalt).
  • Forgetting to multiply everything inside brackets.
  • Leaving the water out of a hydrate.

The formula

M = Σ (atomic mass × number of atoms)

Privacy

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.

Frequently asked questions

Are molar mass and molecular weight the same?

Numerically, yes. Molar mass is in g/mol; molecular weight has no units.

How do I type a hydrate?

Use a dot, like CuSO4·5H2O.

Does it handle nested brackets?

Yes, round and square brackets, nested, such as K4[Fe(CN)6].

Content last updated . See how M2Toolkit works.

Other tools people use alongside the molar mass calculator.