The conversion formulas
Grams → moles
n = m ÷ M (moles = grams ÷ molar mass)
Moles → grams
m = n × M (grams = moles × molar mass)
The molar mass M (in g/mol) is the exchange rate between the two units, and it comes straight from the periodic table: add up the atomic masses in the formula. That's the entire method — one lookup, one division or multiplication.
Worked example: grams → moles
How many moles are in 10.0 g of NaCl?
- Molar mass of NaCl = 22.99 + 35.45 = 58.44 g/mol
- n = 10.0 g ÷ 58.44 g/mol
Answer: ≈ 0.171 mol
Worked example: moles → grams
What is the mass of 0.250 mol of glucose (C₆H₁₂O₆)?
- Molar mass of glucose ≈ 180.16 g/mol
- m = 0.250 mol × 180.16 g/mol
Answer: ≈ 45.0 g
Why moles matter
Balances weigh grams, but chemical equations count particles — and the mole (6.022 × 10²³ particles) is the counting unit that connects them. Nearly every chemistry calculation passes through this conversion: stoichiometry needs moles before applying ratios, and molarity is defined as moles per litre.