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
| m | M | n |
|---|---|---|
| 18 g (H₂O) | 18 g/mol | 1 mol |
| 36 g (H₂O) | 18 g/mol | 2 mol |
| 44 g (CO₂) | 44 g/mol | 1 mol |
| 32 g (O₂) | 32 g/mol | 1 mol |
n from mass and M. Not density ρ = m/V.
Quick comparison
| Scenario | Input | n | Note |
|---|---|---|---|
| Water 1 mol | 18 g; 18 | 1 mol | baseline |
| Water 2 mol | 36 g; 18 | 2 mol | double mass |
| CO₂ | 44 g; 44 | 1 mol | gas |
| O₂ | 32 g; 32 | 1 mol | oxygen |
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.
- Enter m = 18 and M = 18.
- Divide: 18 / 18 = 1.
- The unit is the mole.
- The result is 1 mol.
2. 36 g H₂O, M = 18 → 2 mol
Double the mass at the same M.
- Enter m = 36 and M = 18.
- 36 / 18 = 2.
- 2 mol of water.
- The result is 2 mol.
3. 44 g CO₂, M = 44 → 1 mol
One mole of carbon dioxide.
- Enter m = 44 and M = 44.
- 44 / 44 = 1.
- 1 mol of CO₂.
- The result is 1 mol.
4. 32 g O₂, M = 32 → 1 mol
One mole of molecular oxygen.
- Enter m = 32 and M = 32.
- 32 / 32 = 1.
- 1 mol of O₂.
- 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.