SuperDevTools

Molar mass calculator

Capital letters matter: Co (cobalt) is not CO (carbon + oxygen). Parentheses, brackets, hydrates (CuSO4·5H2O or CuSO4.5H2O), a leading coefficient (2H2O) and a trailing charge (SO4^2-) are accepted.

Examples
Molar mass —
Conversions

Type one value: the other two are worked out from the molar mass above and the Avogadro constant, Nₐ = 6.022 140 76 × 10²³ mol⁻¹ (exact value).

Molar mass in g/mol, with the working shown

Type a chemical formula and this molar mass calculator returns the molar mass in g/mol, the molecular formula, the number of atoms of each element and the percent composition by mass, as a table and as bar charts. It reads subscripts, nested parentheses and brackets such as Ca(OH)2 or [Fe(CN)6]4-, hydrates written with a dot (CuSO4·5H2O or CuSO4.5H2O) and a leading coefficient (2H2O).

Use it for chemistry homework, for a lab practical where you need to weigh out a reagent, or to check an answer before an exam.

How to use it

  1. Type the formula in "Chemical formula", or click one of the "Examples": water, glucose, table salt, baking soda, ethanol, copper sulfate pentahydrate.
  2. Read the "Molar mass" in the green box, then the "Molecular formula" and the "Atoms per formula unit".
  3. The "Percent composition" table lists, for each element, the atoms, the atomic mass, its share of the mass and the "Mass percent". "Calculation steps" shows every multiplication.
  4. Under "Conversions", fill in just one box: "Mass (g)", "Amount of substance (mol)" or "Number of particles". The other two are filled in for you.

Capital letters matter: Co is cobalt, CO is carbon monoxide. Type co2 and the calculator flags the problem and suggests Co or CO. A charge at the end (SO4^2-, Fe3+, NH4+) is shown but does not change the mass, since the electrons weigh almost nothing.

How molar mass is worked out

Multiply the atomic mass of each element by its number of atoms, then add the results. For water, H2O: 2 × 1.00794 + 15.9994 = 18.015 g/mol. Hydrogen accounts for 2.016 g/mol out of 18.015, which is 11.19 %, and oxygen for 88.81 %.

FormulaNameMolar mass
H2Owater18.015 g/mol
CO2carbon dioxide44.010 g/mol
NaClsodium chloride58.443 g/mol
NaHCO3sodium bicarbonate84.007 g/mol
C6H12O6glucose180.156 g/mol
CuSO4·5H2Ocopper(II) sulfate pentahydrate249.685 g/mol

In Ca(OH)2 the subscript 2 applies to the whole group: 1 calcium, 2 oxygen, 2 hydrogen, so 40.078 + 2 × 17.007 = 74.093 g/mol. For the hydrate, five water molecules are added to copper sulfate: 159.609 + 5 × 18.015 = 249.685 g/mol. Use that figure when you weigh the blue crystals from the jar.

From grams to moles. Amount of substance is n = m ÷ M. 9 g of water is 9 ÷ 18.015 = 0.4996 mol, or 0.4996 × 6.022 140 76 × 10²³ = 3.009 × 10²³ molecules. A level-style question: how many moles in 5 g of baking soda? 5 ÷ 84.007 = 0.05952 mol.

The atomic masses are the usual standard values found in published tables. For radioactive elements with no standard atomic weight, such as technetium, the calculator uses the mass number of the most stable isotope, shown in square brackets.

Frequently asked questions

What is the difference between molar mass and molecular mass?

Molecular mass is the mass of one molecule, in atomic mass units; molar mass is the mass of one mole, in g/mol. The numbers are the same: 18.015 u for one water molecule, 18.015 g/mol for a mole of water.

Why is my answer slightly different from my textbook?

Textbooks often round (H = 1, O = 16, C = 12), which makes water 18 g/mol rather than 18.015. Use the values your question gives.

How do I enter a complex ion?

Use square brackets and put the charge at the end: [Fe(CN)6]4- gives 211.949 g/mol for the ferrocyanide ion. If a charge could be read as a subscript, separate it with a caret or a space: SO4^2-.

Does it balance equations?

No. It works out the mass of one formula at a time. A leading coefficient such as 2H2O simply multiplies the mass: 36.031 g/mol.