Molar Mass Calculator

Find the molar mass of any chemical formula, with brackets and hydrates, and the percentage of each element by mass.

Runs in your browserNo sign-upWorks offline

The tool is loading…

What the Molar Mass Calculator does

The Molar Mass Calculator works out the molecular weight of any chemical formula. Type a formula such as H2O, C6H12O6, Ca(OH)2, K4[Fe(CN)6] or the hydrate CuSO4·5H2O, and it counts the atoms of each element, multiplies by the standard atomic weights and adds them up. A table shows each element’s atoms, mass and percentage of the total, which is the percent composition asked for in chemistry homework.

How to use it

  1. Type the formula, with capital letters for each element symbol.
  2. Use round or square brackets for groups, followed by a number.
  3. Write a hydrate with a dot, such as CuSO4·5H2O or CuSO4.5H2O.
  4. Read the molar mass and the percent composition table.

Example

Glucose, C6H12O6, has 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol. By mass it is 40.00% carbon, 6.71% hydrogen and 53.28% oxygen. Copper sulfate pentahydrate, CuSO4·5H2O, comes to 249.68 g/mol.

Molar mass in a nutshell

One mole of any substance contains 6.022 × 10²³ particles, Avogadro’s number. Its mass in grams equals the molar mass in g/mol, so 180.16 g of glucose is one mole of glucose molecules. That link between grams and moles is what lets chemists weigh out reactants in the right proportions.

Symbols are case sensitive: Co is cobalt, while CO is carbon monoxide. The atomic weights are IUPAC standard values; for elements with no stable isotope, the mass number of the longest-lived isotope is used.

Questions people ask

Is anything I enter sent anywhere?

No. The calculator works entirely in your browser, so what you type stays on your device.

Is molar mass the same as molecular weight?

They are the same number. Molar mass is in g/mol; molecular weight is often given without units or in daltons.

Can I enter charges such as SO4²⁻?

Leave the charge out. The mass of the electrons is tiny, so the molar mass is effectively the same.

How do I enter 2H2O?

Type 2H2O. A number at the start multiplies the whole formula.

Related tools