Chemistry
Basic

Moles from Mass

Number of moles from mass and molar mass.

Formula

n=mMn = \frac{m}{M}

Live Calculator

Members

Variables

mMass (g)
MMolar mass (g/mol)

Example

18 g of water (M = 18 g/mol) is exactly 1 mole.

How it works

This formula tells you how many moles are present when you know the mass of a substance and its molar mass. It works because molar mass is the mass of 1 mole, so dividing the sample mass by the mass per mole tells you how many equal mole-sized portions are in the sample. The units also line up: grams divided by grams per mole leaves moles.

When to use it

Use this when converting a measured mass in a chemistry problem into moles, such as before using a balanced equation or calculating concentrations. It is especially common in stoichiometry, solution chemistry, and lab calculations.

Worked example, step by step

Find the number of moles in 58.5 g of sodium chloride (NaCl), where M = 58.5 g/mol. Use the formula: n = m / M Substitute the values: n = 58.5 g / 58.5 g/mol Calculate: n = 1.0 mol Final answer: 58.5 g of NaCl is 1 mole.

Common mistakes to avoid

  • Using the atomic mass of one element instead of the full compound molar mass
  • Forgetting to divide by molar mass and instead multiplying by it
  • Mixing up units, such as using mg or kg without converting to grams first

Did You Know?

The mole links the invisible atomic world to grams you can actually weigh on a scale.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026