Skip to content
Omnikalc

Grams to moles calculator: convert mass, moles and molecules

Convert grams to moles and moles to grams with the molar mass, and see the number of molecules and the volume the substance would take as a gas.

Updated on
Your inputs
Conversion
g/mol

Value out of range

Value out of range

Value out of range

Results

Amount of substance

5.5509

Mass

100.000

Number of molecules or atoms (× 10²³)
33.4285
Volume as a gas at 0 °C and 1 atm
124.419
Volume as a gas at 20 °C and 1 atm
133.528

Moles for other masses

Amount of substanceNumber of molecules or atoms (× 10²³)
1 g current0.05550.3343
10 g current0.55513.3428
18.02 g current1.00006.0221
50 g current2.775516.7142
100 g current5.550933.4285
500 g current27.7546167.1424
1,000 g current55.5093334.2848

Why chemists count in moles

Atoms and molecules are far too small to count one by one, so chemists group them in moles. One mole is 6.02214076 × 10²³ entities, Avogadro’s number. The trick is that one mole of any substance weighs its molar mass in grams: 18.015 g for water, 44.01 g for carbon dioxide. So a balance becomes a way to count molecules.

The formulas

  • Moles n = mass ÷ molar mass
  • Mass m = moles × molar mass
  • Number of entities = moles × 6.022 × 10²³
  • Gas volume = moles × molar volume: 22.414 L at 0 °C and 1 atm, about 24.05 L at 20 °C and 1 atm

Worked example

How many moles and molecules are in 100 g of water?

  1. Molar mass of H2O: 2 × 1.008 + 16.00 = 18.015 g/mol.
  2. Moles: 100 ÷ 18.015 = 5.55 mol.
  3. Molecules: 5.55 × 6.022 × 10²³ = 3.34 × 10²⁴.
  4. As steam at 0 °C and 1 atm, that much water would fill about 124 L (in practice water condenses, but the figure shows the scale).

Molar masses of common substances

Substance Formula Molar mass (g/mol)
Water H2O 18.015
Carbon dioxide CO2 44.009
Oxygen O2 31.998
Table salt NaCl 58.44
Glucose C6H12O6 180.16
Table sugar C12H22O11 342.30
Ethanol C2H5OH 46.07
Chalk, limestone CaCO3 100.09

Finding a molar mass

Add up the atomic masses from the periodic table, each multiplied by the number of atoms in the formula. For glucose, C6H12O6: 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.16 g/mol. For hydrates, include the water molecules.

Where the conversion is used

  • Stoichiometry: balanced equations work in moles, so convert grams to moles before comparing reactants.
  • Solutions: molarity is moles per liter.
  • Gases: the ideal gas law uses moles.
  • Everyday scale: a teaspoon of sugar (about 4 g) is 0.012 mol, still 7 × 10²¹ molecules.

Common mistakes

  • Using the atomic mass of an element instead of the molecule: O2 is 32.00 g/mol, not 16.00.
  • Forgetting to convert milligrams or kilograms to grams.
  • Rounding molar masses too early, which adds up in multi-step problems.

Frequently asked questions

How do you convert grams to moles?

Divide the mass by the molar mass: n = m ÷ M. 100 g of water (18.015 g/mol) is 5.55 mol.

How do you convert moles to grams?

Multiply the moles by the molar mass: m = n × M. 2 mol of CO2 weigh 2 × 44.01 = 88.02 g.

How many molecules are in a mole?

6.02214076 × 10²³, Avogadro's number. One mole of water, about 18 g, contains that many molecules.

How do I find the molar mass of a compound?

Add up the atomic masses from the periodic table. For water, H2O: 2 × 1.008 + 16.00 = 18.02 g/mol.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.