Grams to Moles Converter

A mole is a chemist’s counting unit, and the molar mass says how many grams one mole of a substance weighs. Type the grams to get the moles, or switch and type the moles to get the grams. Pick a common compound or type its molar mass in grams per mole (g/mol); you also see how many atoms or molecules that is.

g
g/mol
Moles
0.9992 mol 18.015 g/mol

18 g of water is 0.9992 mol, using a molar mass of 18.015 g/mol.

Particles (atoms or molecules) 6.017 × 10²³
Molar mass 18.015 g/mol

How to convert grams to moles

The molar mass is the mass in grams of one mole of a substance (g/mol). Divide grams by it to get moles; multiply moles by it to get grams. For a compound, add up the atomic masses in its formula, or look it up.

moles = grams ÷ molar mass

Here it is with your numbers:

  1. The molar mass of water is 18.015 g/mol: one mole weighs 18.015 g.
  2. 18 g ÷ 18.015 g/mol = 0.9992 mol.
  3. Times Avogadro’s number (6.022 × 10²³ per mole), that is 6.017 × 10²³ particles.

It means 18 g of water holds 0.9992 moles, or 6.017 × 10²³ atoms or molecules.

Source OpenStax · Chemistry 2e, 3.1 Formula Mass and the Mole Concept ↗NIST CODATA · Avogadro constant ↗

Common compounds

Molar masses from PubChem (each links to its page), with your amount worked out for each.

SubstanceMolar massAnswer
Water, H₂O18.015 g/mol0.9992 mol
Table salt, NaCl58.44 g/mol0.3080 mol
Glucose, C₆H₁₂O₆180.16 g/mol0.09991 mol
Table sugar (sucrose), C₁₂H₂₂O₁₁342.3 g/mol0.05259 mol
Carbon dioxide, CO₂44.009 g/mol0.4090 mol

FAQs

How do you convert grams to moles?

Divide the mass in grams by the molar mass in g/mol. OpenStax’s example: 4.7 g of potassium ÷ 39.10 g/mol = 0.12 mol. To go back, multiply moles by the molar mass.

Source OpenStax · Chemistry 2e, 3.1 Formula Mass and the Mole Concept ↗

How many atoms in a mole?

Exactly 6.022 140 76 × 10²³, the Avogadro constant. Since 2019 this number defines the mole.

Source NIST CODATA · Avogadro constant ↗

What is the difference between grams and moles?

Grams measure mass; moles count particles (atoms or molecules). One mole of anything has the same number of particles, but its mass, the molar mass, depends on the substance: 18.015 g for water, 58.44 g for table salt.

Source OpenStax · Chemistry 2e, 3.1 Formula Mass and the Mole Concept ↗

Sources

Related calculators