Molar Mass Calculator

Type a formula such as Ca(OH)2 or CuSO4.5H2O and see the molar mass, the elements in Hill order and the percent by mass. Convert grams to moles and back.

Use the tool

Loading the tool…

About Molar Mass Calculator

Work out the molar mass of a chemical formula, such as H2O or Ca(OH)2. Optionally, enter an amount and its unit (grams, milligrams, kilograms or moles) to convert between mass and moles.

Worked example

Enter H2O. The tool shows its molar mass, then converts an amount you give into moles.

Limits

The result uses standard atomic masses, and it may differ slightly from values in other references. Check the result for laboratory work.

How to use Molar Mass Calculator

  1. Type the formula. Capital letters matter.
  2. Optionally enter an amount in grams, moles or milligrams.
  3. Read the molar mass and the breakdown.
  4. Copy the result.

Good to know

  • Write element symbols with a capital first letter and a small second letter, such as Co for cobalt and CO for carbon monoxide.
  • Use a dot or a star for hydrates, for example CuSO4.5H2O.
  • Atomic weights are standard values and are rounded, so a result can differ in the last digit from your textbook.
  • Moles equal grams divided by molar mass.

Frequently asked questions

What is molar mass?

It is the mass of one mole of a substance, in grams per mole. It is found by adding the atomic masses of all atoms in the formula.

Can it read brackets?

Yes. Ca(OH)2 has one calcium, two oxygen and two hydrogen atoms. Nested brackets work too.

Why does my answer differ slightly?

Books round atomic masses in different ways. The tool uses standard atomic weights.