# Mole Calculator

URL: https://hifreetools.com/science/mole-calculator

> Convert between moles, mass, and molar mass using n = mass ÷ molar mass, and instantly see how many atoms or molecules that is via Avogadro's number.

## Quick answer

The number of moles equals mass divided by molar mass: n = m ÷ M. For example, 18 g of water (molar mass 18.015 g/mol) is 18 ÷ 18.015 ≈ 0.9992 mol. Multiply moles by Avogadro's number (6.02214076 × 10²³ /mol) to get the number of particles, so 0.9992 mol ≈ 6.017 × 10²³ molecules.

## Formula

- Moles from mass and molar mass: n = m ÷ M
- Number of particles: N = n × Nₐ, where Nₐ = 6.02214076 × 10²³ /mol

## Examples

- Grams of water to moles: mass = 18 g, molar mass = 18.015 g/mol → ≈ 0.999167 mol (≈ 6.01713 × 10²³ molecules)
- Mass of NaCl from moles: moles = 0.25 mol, molar mass = 58.44 g/mol (NaCl) → 14.61 g
- Find the molar mass of an unknown: mass = 44 g, moles = 1 mol → 44 g/mol
- Doubling the sample: mass = 36 g, molar mass = 18.015 g/mol (water) → ≈ 1.99833 mol (≈ 1.20343 × 10²⁴ molecules)

## FAQ

**What is the formula for calculating moles?**
Moles equal mass divided by molar mass: n = m ÷ M. Mass is in grams and molar mass is in grams per mole, so the grams cancel and you are left with moles. For example, 18 g of water ÷ 18.015 g/mol ≈ 0.9992 mol.

**How do I find the molar mass of a compound?**
Add the atomic mass (from the periodic table) of every atom in the chemical formula. For water, H₂O, that is 2 × 1.008 + 15.999 ≈ 18.015 g/mol. For carbon dioxide, CO₂, it is 12.011 + 2 × 15.999 ≈ 44.01 g/mol.

**How many particles are in one mole?**
Exactly 6.02214076 × 10²³ particles — Avogadro's number. Since the 2019 SI redefinition this is a defined constant, so one mole of any substance contains this many atoms, molecules, or ions. Multiply your mole value by this number to get the particle count.

**Why is 18 g of water about 1 mole?**
Because water's molar mass is 18.015 g/mol, so 18 ÷ 18.015 ≈ 0.9992 mol — just under one mole. A full mole of water weighs 18.015 g. This is why chemists often treat ~18 g of water as roughly one mole for quick estimates.

**What units should I use in the mole calculator?**
Use grams for mass and grams per mole (g/mol) for molar mass; the result is in moles. If your mass is in kilograms or milligrams, convert to grams first (1 kg = 1000 g, 1 mg = 0.001 g) so the units are consistent.

**Can I work out mass or molar mass instead of moles?**
Yes. The same relationship rearranges three ways: n = m ÷ M to find moles, m = n × M to find mass, and M = m ÷ n to find molar mass. Choose which quantity to solve for and enter the other two.


## Sources

- [NIST — Avogadro constant (CODATA)](https://physics.nist.gov/cgi-bin/cuu/Value?na)
- [Wikipedia — Mole (unit)](https://en.wikipedia.org/wiki/Mole_(unit))
- [Wikipedia — Molar mass](https://en.wikipedia.org/wiki/Molar_mass)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Mole Calculator", https://hifreetools.com/science/mole-calculator
