Grams to Moles Calculator

Home › Science Calculators › Grams to Moles Calculator

Convert grams to moles or moles to grams for any chemical formula, with molar mass, number of particles and composition by element.

How the calculation works

Type a chemical formula such as H2O, NaCl or Ca(OH)2. The calculator adds up the atomic masses of every atom to get the molar mass, then divides the mass by it to get moles, or multiplies the moles to get grams.

Formula used

Moles = grams ÷ molar mass Grams = moles × molar mass Particles = moles × 6.02214076 × 10²³

Example

18 g of water (H2O, molar mass 18.015 g/mol) is 18 ÷ 18.015 = 0.99917 mol, which is about 6.017 × 10²³ molecules.

About the mole

Counting by weighing

Atoms are far too small to count one at a time. One mole of any element weighs its atomic mass in grams.

Molar mass

Add the atomic mass of every atom in the formula. Water has two hydrogens and one oxygen, 2 × 1.008 + 15.999 = 18.015 g/mol.

Stoichiometry

Moles are the basis for balancing reactions, calculating yields and making solutions of a set concentration.

Frequently asked questions

What is a mole?

A mole is 6.02214076 × 10²³ particles, called Avogadro’s number. It lets chemists count atoms by weighing them.

How do I enter hydrates?

Separate the water with a dot, such as CuSO4·5H2O or CuSO4.5H2O.

Results are estimates for general information only and are not professional financial, medical or legal advice.

All Calculators

Every calculator on the site, in 16 categories.