Skip to content

Grams to Moles Calculator

Type a formula and a mass to get the moles, worked out from the molar mass…

Type a formula and a mass to get the moles, worked out from the molar mass, with the number of molecules and the answer rounded to the significant figures you typed.

Read as H2O

3 significant figures

Example36.0 g of H₂O

2.00mol

36.0 g ÷ 18.015 g/mol = 2.00 mol, which is 1.20 × 10²⁴ formula units.

Type your own formula and amount.

Mass
36.0 g
÷ 18.015
Amount
2.00 mol
× Nₐ
Particles
1.20 × 10²⁴
Grams to moles divides by the molar mass; moles to particles multiplies by the Avogadro constant, Nₐ = 6.02214076 × 10²³ per mole (exact).
In millimoles
2,000 mmol
Particles
1.20 × 10²⁴
Molar mass
18.015 g/mol
How this works: 4 sources,

How this works

Method

A mole is a count, like a dozen, only much bigger: 6.022 140 76 × 10²³ particles. The molar mass tells you how many grams one mole of a substance weighs, so dividing a mass by the molar mass counts how many moles you have. Water is 18.015 g/mol, so 36.0 g of water is 36.0 ÷ 18.015 = 2.00 mol. Full method

How it’s tested

2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: molar mass with each element’s share of the mass and atoms, grams to moles and back, percent composition, empirical formula, limiting reagent, theoretical and percent yield.

Every change on What’s new

How we make toolsReport a mistake

How to convert grams to moles

A mole is a count, like a dozen, only much bigger: 6.022 140 76 × 10²³ particles. The molar mass tells you how many grams one mole of a substance weighs, so dividing a mass by the molar mass counts how many moles you have. Water is 18.015 g/mol, so 36.0 g of water is 36.0 ÷ 18.015 = 2.00 mol.

The molar mass comes from the formula: add up the atomic weights of every atom in it. Carbon dioxide, CO2, is 12.011 + 2 × 15.999 = 44.009 g/mol, so 100 g of it is 2.27 mol, or 1.37 × 10²⁴ molecules. Multiplying moles by the Avogadro constant always gives the number of particles.

Round the answer to the significant figures of the mass you measured, because the molar mass is known far more precisely than any lab balance. A mass typed as 36.0 g has three significant figures, so the answer is 2.00 mol, not 1.99833. The tool counts the figures you type and rounds to match, and shows the unrounded value in the working.

n (mol) = m (g) ÷ M (g/mol)

Moles in 100 grams of common substances

Each molar mass from the CIAAW atomic weights, and the moles and molecules in 100 g.

Each molar mass from the CIAAW atomic weights, and the moles and molecules in 100 g.
SubstanceFormulaMolar mass (g/mol)Moles in 100 gMolecules in 100 g
WaterH₂O18.0155.5513.34 × 10²⁴
Carbon dioxideCO₂44.0092.2721.37 × 10²⁴
Table saltNaCl58.441.7111.03 × 10²⁴
GlucoseC₆H₁₂O₆180.1560.55513.34 × 10²³
Table sugar (sucrose)C₁₂H₂₂O₁₁342.2970.29211.76 × 10²³
EthanolC₂H₅OH46.0692.1711.31 × 10²⁴
Baking sodaNaHCO₃84.0061.1907.17 × 10²³
Chalk (calcium carbonate)CaCO₃100.0860.99916.02 × 10²³
AmmoniaNH₃17.0315.8723.54 × 10²⁴
OxygenO₂31.9983.1251.88 × 10²⁴
Show all 12 rows
IronFe55.8451.7911.08 × 10²⁴
GoldAu196.9670.50773.06 × 10²³

Common questions

What is the formula for grams to moles?

Moles = grams ÷ molar mass. For 25.0 g of sodium chloride (58.44 g/mol), that is 25.0 ÷ 58.44 = 0.428 mol.

How do I find the molar mass?

Add the atomic weights of every atom in the formula, from a periodic table. For H2SO4: 2 × 1.008 + 32.06 + 4 × 15.999 = 98.072 g/mol. Type the formula here and it is done for you, with each element shown.

How many significant figures should my answer have?

As many as the least precise measurement, which is almost always the mass. Atomic weights are known to four or more figures, so they rarely limit the answer.

How do I convert grams to molecules?

Convert to moles first, then multiply by 6.022 × 10²³. Ten grams of water is 0.555 mol, or 3.34 × 10²³ molecules.