Grams to Moles Calculator

Convert between grams and moles for any chemical substance. Choose a common compound or enter a custom molar mass.

⚖️ Grams ↔ Moles Converter

g/mol
Auto-filled from substance selection, or enter custom value
mol

✅ Result

What Is a Mole?

A mole (symbol: mol) is the SI unit of amount of substance. One mole contains exactly 6.02214076 × 1023 elementary entities (atoms, molecules, ions, etc.). This number is known as Avogadro's number (NA).

The mole concept provides a bridge between the atomic scale and the macroscopic scale. While individual atoms and molecules are far too small to count directly, the mole allows chemists to work with practical quantities — grams of material — while knowing exactly how many particles are involved.

Grams to Moles Formula

The conversion between grams and moles is straightforward:

n = m / M

Where:

To convert in the reverse direction (moles to grams):

m = n × M

What Is Molar Mass?

The molar mass of a substance is the mass of one mole of that substance, expressed in grams per mole (g/mol). For elements, the molar mass is numerically equal to the atomic mass listed on the periodic table. For compounds, the molar mass is the sum of the atomic masses of all atoms in the formula.

Example: Molar Mass of Water (H₂O)

Water has 2 hydrogen atoms and 1 oxygen atom:
M = 2 × 1.008 + 1 × 15.999 = 2.016 + 15.999 = 18.015 g/mol

How to Convert Grams to Moles

  1. Measure the mass of your sample in grams.
  2. Find the molar mass of the substance. For elements, use the periodic table. For compounds, add up all atomic masses in the chemical formula.
  3. Divide the mass by the molar mass: n = m / M.
Example: 100 g of Water

Step 1: Mass = 100 g
Step 2: Molar mass of H2O = 18.015 g/mol
Step 3: n = 100 / 18.015 = 5.551 mol

This means 100 g of water contains 5.551 moles, or about 3.34 × 1024 water molecules.

Common Molar Masses

SubstanceFormulaMolar Mass (g/mol)
WaterH2O18.015
Carbon DioxideCO244.009
Sodium ChlorideNaCl58.44
GlucoseC6H12O6180.16
Sulfuric AcidH2SO498.079
Sodium HydroxideNaOH40.00
EthanolC2H5OH46.068
AmmoniaNH317.031
Calcium CarbonateCaCO3100.09
Iron(III) OxideFe2O3159.69

Moles to Number of Particles

Once you know the number of moles, you can find the number of individual particles:

Number of particles = n × NA = n × 6.022 × 1023

Why Are Moles Important in Chemistry?

Frequently Asked Questions

How many grams are in one mole?

This depends entirely on the substance. One mole of hydrogen gas (H2) has a mass of 2.016 g, while one mole of uranium (U) has a mass of 238.03 g. The mass of one mole is numerically equal to the molar mass in g/mol.

How do I find the molar mass of a compound?

Write the chemical formula, look up each element's atomic mass on the periodic table, multiply by the number of atoms of each element, and add them all together. For example, for Ca(OH)2: Ca (40.08) + 2 × O (15.999) + 2 × H (1.008) = 74.093 g/mol.

What is Avogadro's number?

Avogadro's number (NA) = 6.02214076 × 1023 mol−1. It is the number of entities in one mole. This exact value was defined in 2019 as part of the SI redefinition.