How to Convert Molar Mass Into Moles: Step-by-Step Guide

By culbreath Editorial · 2026-10-10 · 5 min read

Converting mass to moles is one of the most common calculations in chemistry: divide the mass of the sample (in grams) by the substance’s molar mass (in grams per mole). The formula is n = m / M, where n is moles, m is mass in grams, and M is molar mass. If you already know the chemical formula, you can find its molar mass from the atomic masses on the periodic table, then apply this one-step division.

What You Need Before You Start

You need two things: the mass of your sample, measured in grams, and the molar mass of the substance, expressed in grams per mole (g/mol). Both are required — the formula doesn’t work if the units are inconsistent.

The molar mass of an element in g/mol is numerically equal to its standard atomic weight, which is why the numbers on a periodic table look identical whether you’re reading atomic mass units or grams per mole. Those atomic weights are maintained and periodically revised by the International Union of Pure and Applied Chemistry, and precise measurement standards for quantities like mass trace back to bodies such as the National Institute of Standards and Technology.

For a compound, the molar mass is the sum of the atomic masses of every atom in its formula. For example, water (H₂O) is 2 × 1.008 + 16.00 ≈ 18.02 g/mol, and carbon dioxide (CO₂) is 12.01 + 2 × 16.00 ≈ 44.01 g/mol.

Reading Molar Mass From a Formula

If you’re given the chemical formula, count atoms first. For glucose, C₆H₁₂O₆, you have 6 carbons, 12 hydrogens, and 6 oxygens. Multiply each count by its atomic mass and add:

  • Carbon: 6 × 12.01 = 72.06 g/mol
  • Hydrogen: 12 × 1.008 = 12.10 g/mol
  • Oxygen: 6 × 16.00 = 96.00 g/mol
  • Total: ≈ 180.16 g/mol

If you’re given the name but not the formula, look up the formula or the known molar mass. For common substances — NaCl (58.44 g/mol), CaCO₃ (100.09 g/mol), H₂SO₄ (98.08 g/mol) — these values are standard and widely tabulated.

The Step-by-Step Calculation

Once you have mass and molar mass, the conversion is a single division. Set up your work so units cancel and only moles remain.

Step 1: Write down what you know

Identify the given mass in grams and the molar mass in g/mol. If your mass is in kilograms or milligrams, convert to grams first (1 kg = 1000 g; 1 mg = 0.001 g).

Step 2: Apply the formula

Use moles = mass ÷ molar mass. This comes directly from rearranging the definition of molar mass, M = m / n. Khan Academy covers this same relationship in its lessons on the mole and molar mass, which is a useful reference if you want extra practice.

Step 3: Check that units cancel

Write the division so grams appear in both the numerator and denominator. Grams cancel, leaving moles — a quick sanity check that you set it up correctly.

Step 4: Calculate and round sensibly

Do the division and round to a reasonable number of significant figures, typically matching the least precise value you were given. Avoid over-rounding mid-calculation.

Worked example

How many moles are in 50.0 g of NaCl?

Molar mass of NaCl = 22.99 + 35.45 = 58.44 g/mol.

n = 50.0 g ÷ 58.44 g/mol ≈ 0.856 mol

Handling Common Situations and Mistakes

A few predictable issues trip people up, and each has a simple fix.

Reversing the formula. Dividing molar mass by mass gives you 1/mol, which is meaningless here. Keep mass on top and molar mass on the bottom.

Wrong molar mass. Using an element’s atomic mass when you need the compound’s total mass is the most frequent error. Double-check that you’ve summed every atom.

Mixed units. Molar mass is always in g/mol, so your mass must be in grams. Convert before dividing.

Forgetting to count subscripts. In Ca(OH)₂, the subscript 2 applies to both oxygen and hydrogen — so oxygen is 2 atoms and hydrogen is 2 atoms, not 1 each.

Going the Other Way

Sometimes you need the reverse: converting moles back into mass. Multiply moles by molar mass: mass = moles × molar mass. For instance, 3.00 mol of NaOH (40.00 g/mol) is 3.00 × 40.00 = 120.0 g. Recognizing that these are just two directions of the same relationship makes both feel less like memorization.

If your course involves significant figures and unit conversions in a lab context, follow your instructor’s guidelines, since rounding conventions and reporting requirements vary.

A quick-reference table can help you spot the pattern across different substances:

Substance Formula Molar Mass (g/mol) Mass Moles
Water H₂O 18.02 36.04 g 2.00 mol
Sodium chloride NaCl 58.44 29.22 g 0.500 mol
Carbon dioxide CO₂ 44.01 44.01 g 1.00 mol
Glucose C₆H₁₂O₆ 180.16 90.08 g 0.500 mol

Notice that 1.00 mol of any substance contains Avogadro’s number of particles, roughly 6.022 × 10²³. That’s why moles are so useful — they let you count particles by weighing them.

Key Takeaways

  • The core formula is moles = mass (g) ÷ molar mass (g/mol), written as n = m / M.
  • Molar mass is the sum of atomic masses in a compound’s formula, expressed in grams per mole.
  • Always convert your sample mass to grams before dividing, so units cancel cleanly.
  • Round to a sensible number of significant figures and recheck that you summed every atom in the formula.
  • To reverse the process, multiply moles by molar mass to get back to grams.

Frequently Asked Questions

How do you convert molar mass to moles?
Divide the given mass of the substance by its molar mass to get the number of moles. Use the formula: moles = mass (g) ÷ molar mass (g/mol).
What is the formula for converting grams to moles using molar mass?
The formula is n = m / M, where n is moles, m is mass in grams, and M is molar mass in g/mol. For example, 36 g of water (M = 18 g/mol) equals 2 moles.
Can you convert molar mass directly into moles?
No, molar mass alone cannot be converted into moles because it is a constant property of a substance. You need a known mass of the substance to calculate moles using moles = mass ÷ molar mass.
How many moles are in 100 g of NaCl?
The molar mass of NaCl is 58.44 g/mol. So, 100 g ÷ 58.44 g/mol = 1.71 moles of NaCl.
What units are used when converting molar mass to moles?
Mass is typically in grams and molar mass in grams per mole (g/mol), giving moles as the unit. Always ensure the mass is in grams before dividing by the molar mass.
molar massmolesstoichiometrychemistrymole calculationn=m/m

References

← Back to home