Chemistry

Molar Mass Calculator (Molecular Weight from Formula)

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

Your numbers

Use correct capitals (Co is cobalt, CO is carbon monoxide). Parentheses, [brackets] and hydrates with a dot (CuSO4.5H2O) are supported.

Your results

Molar mass (g/mol)
Molar mass (g/mol)
—
Mass percent of each element
—
Atoms of each element
—
Atoms per formula unit
—
Mass of one molecule (g)
—

Molar Mass Calculator (Molecular Weight from Formula) by TheCalcTools

How the Molar Mass Calculator (Molecular Weight from Formula) works

The molar mass is the sum of the atomic weights of every atom in the formula, in grams per mole. Numbers after a symbol count atoms; numbers after a bracket multiply everything inside it; a number at the start of a hydrate part multiplies that part.

Atomic weights are the IUPAC conventional values (for example H 1.008, C 12.011, O 15.999, Cl 35.45). For elements with no stable isotopes the mass number of the longest-lived isotope is used.

The formula

M = Σ (number of atoms × atomic weight)Mass % of element = atoms × atomic weight ÷ M × 100

Worked example

Using the default values shown in the calculator:

Chemical formulaC6H12O6
  1. Glucose, C6H12O6: 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol.
  2. Mass percent: C 40.00%, H 6.71%, O 53.28%.

Result:

Molar mass (g/mol)180.156
Mass percent of each elementC 40.00%, H 6.71%, O 53.28%
Atoms of each elementC 6, H 12, O 6
Atoms per formula unit24
Mass of one molecule (g)2.992e-22 g

Frequently asked questions

Is molar mass the same as molecular weight?

Numerically yes. Molar mass has units of g/mol; molecular weight (relative molecular mass) is the same number without units.

How do I enter a hydrate?

Write the water part after a dot: CuSO4.5H2O or CuSO4·5H2O. The 5 multiplies H2O.

Why does my textbook give a slightly different value?

Textbooks round atomic weights differently (for example Cl 35.5 or 35.45). Differences in the second decimal place are normal.

Sources and further reading

More in Chemistry · All calculators

This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.