Article

Mole Calculator

The number of moles in this guide means n = m/M. At 18 g of water and M = 18 g/mol the result is 1 mol. The same path powers the mole calculator.

Density: ρ = m/V. Heat of fusion: Q = m·Lt.

n = m/M

The calculator uses the numbers you enter: mass m in grams and molar mass M in g/mol. The quotient n = m/M is the number of moles. At 18 g of water and M = 18 the result is 1 mol. At 36 g of water — 2 mol. At 44 g of CO₂ and M = 44 — 1 mol. At 32 g of O₂ and M = 32 — 1 mol. M must be positive; zero will not yield a result.

n = m/M
example: 18 / 18 → 1 mol
also: 36 / 18 → 2 mol
m ≥ 0; M > 0

mMn
18 g (H₂O)18 g/mol1 mol
36 g (H₂O)18 g/mol2 mol
44 g (CO₂)44 g/mol1 mol
32 g (O₂)32 g/mol1 mol

n from mass and M. Not density ρ = m/V.

Quick comparison

ScenarioInputnNote
Water 1 mol18 g; 181 molbaseline
Water 2 mol36 g; 182 moldouble mass
CO₂44 g; 441 molgas
O₂32 g; 321 moloxygen

Four worked examples

You can repeat each scenario in the mole calculator.

1. 18 g H₂O, M = 18 → 1 mol

A basic mass over molar mass quotient.

  1. Enter m = 18 and M = 18.
  2. Divide: 18 / 18 = 1.
  3. The unit is the mole.
  4. The result is 1 mol.

2. 36 g H₂O, M = 18 → 2 mol

Double the mass at the same M.

  1. Enter m = 36 and M = 18.
  2. 36 / 18 = 2.
  3. 2 mol of water.
  4. The result is 2 mol.

3. 44 g CO₂, M = 44 → 1 mol

One mole of carbon dioxide.

  1. Enter m = 44 and M = 44.
  2. 44 / 44 = 1.
  3. 1 mol of CO₂.
  4. The result is 1 mol.

4. 32 g O₂, M = 32 → 1 mol

One mole of molecular oxygen.

  1. Enter m = 32 and M = 32.
  2. 32 / 32 = 1.
  3. 1 mol of O₂.
  4. The result is 1 mol.

Common mistakes with n = m/M

  • Typing kilograms without converting — 1 kg is 1000 g.
  • Setting M = 0 — division by zero does not work.
  • Mixing M with sample mass — M is molar mass in g/mol.
  • Looking for density — ρ = m/V is on a separate page.
  • Expecting PV = nRT — this page has no gas pressure or temperature.
  • Leaving a field blank — both fields need a number.

Frequently asked questions

How is n calculated on this page?

n = m/M. At 18 g of water and M = 18 g/mol the result is 1 mol. At 36 g — 2 mol.

How much is n at 44 g of CO₂ and M = 44?

1 mol. 44 / 44 = 1.

How much is n at 32 g of O₂ and M = 32?

1 mol. 32 / 32 = 1.

Which unit should I enter for mass?

Grams, or mg/kg converted to grams. M is in g/mol.

Can M be zero?

No. Division by zero will not yield a mole count. M must be positive.

How does this page differ from density?

Here you divide mass by molar mass. Density is mass over volume, not over M.