Home ↓
CalculatorsVerified

Physics & Chemistry

Molar Mass Calculator (Molecular Weight)

Find the molar mass of a compound from its chemical formula. Type a formula such as H2O, C6H12O6, Ca(OH)2 or CuSO4·5H2O and the calculator adds up the standard atomic weights published by IUPAC, shows how much each element contributes, and converts a sample mass into moles and molecules if you give one.

More options
g

How to use this calculator

  1. Type the chemical formula with correct capital letters, e.g. NaCl, H2SO4 or Fe2(SO4)3.
  2. For a hydrate, separate the water with a dot: CuSO4.5H2O or CuSO4·5H2O.
  3. Optionally, enter the mass of your sample in grams.
  4. Read the molar mass in g/mol and the composition table.
  5. Use the amount in moles to plan a solution or a reaction.

What molar mass is

The molar mass of a substance is the mass of one mole of it, expressed in grams per mole. One mole contains exactly 6.02214076 × 10²³ entities, the Avogadro constant fixed by the 2019 redefinition of the SI. Because the atomic mass unit and the mole are linked, the molar mass in g/mol has the same numerical value as the relative molecular mass: water has a relative molecular mass of 18.015, so 18.015 g of water contain one mole of molecules.

Chemists use molar mass constantly to convert between the mass they can weigh on a balance and the number of particles that take part in a reaction. Preparing 1 litre of a 1 mol/L sodium chloride solution, for example, needs 58.44 g of NaCl.

The atomic weights used

The calculator uses the abridged standard atomic weights of the IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW), the international reference. For elements whose isotopic composition varies in nature, such as hydrogen, carbon, nitrogen and oxygen, CIAAW publishes an interval and a conventional value for everyday use: H 1.008, C 12.011, N 14.007, O 15.999. Values are given to about five significant figures, which is more precise than the rounded numbers in many textbooks, so results may differ from a book in the second or third decimal. The table covers the elements from hydrogen to uranium that have a standard atomic weight.

Writing the formula correctly

Element symbols start with a capital letter, and a second letter is lower case: Co is cobalt, while CO is carbon monoxide (one carbon and one oxygen). A number after a symbol is the count of that atom; a number after a bracket multiplies everything inside, so Ca(OH)2 contains one calcium, two oxygen and two hydrogen atoms, giving 74.092 g/mol. Square brackets work the same way. Water of crystallisation is written after a dot with its own multiplier: CuSO4·5H2O is copper sulfate with five water molecules, 249.677 g/mol. The composition table lists each element's atoms, its contribution in g/mol and its percentage by mass, which is useful for checking elemental analysis results.

Formula & method

M = Σ (number of atoms × standard atomic weight)Mass % of an element = its mass in the formula ÷ M × 100Moles = mass ÷ M; atomic weights: IUPAC/CIAAW abridged standard atomic weights

Molar mass M = Σ (number of atoms of each element × its standard atomic weight). Mass % of an element = its mass in the formula ÷ M × 100. Amount n = m ÷ M, and molecules = n × 6.02214076 × 10²³ (Avogadro constant). Atomic weights are the IUPAC/CIAAW abridged standard atomic weights.

Worked example

Glucose, C6H12O6

  1. Carbon: 6 × 12.011 = 72.066
  2. Hydrogen: 12 × 1.008 = 12.096
  3. Oxygen: 6 × 15.999 = 95.994; total 72.066 + 12.096 + 95.994

Answer: The molar mass of glucose is 180.156 g/mol; 53.3% of its mass is oxygen.

Frequently asked questions

What is the molar mass of water?

18.015 g/mol: two hydrogens (2 × 1.008) plus one oxygen (15.999).

Is molar mass the same as molecular weight?

They have the same number. Molecular weight (relative molecular mass) has no unit; molar mass is in g/mol.

How do I convert grams to moles?

Divide the mass by the molar mass: 36.03 g of water ÷ 18.015 g/mol = 2 mol. Enter the mass in the calculator to do it automatically.

How do I enter brackets and hydrates?

Use round or square brackets with a number after them, e.g. Al2(SO4)3, and a dot before water of crystallisation, e.g. MgSO4.7H2O.

Why does my answer differ from my textbook?

Textbooks often round atomic weights (C = 12, O = 16). Numerra uses the IUPAC abridged values for more precision.

What is the mass percentage of an element?

Its share of the molar mass: in water, oxygen is 15.999 ÷ 18.015 × 100 = 88.8% of the mass.