Mole Calculator

n = m/M with formula-based molar mass and particle counts.

The formula behind it

n = m ÷ M (particles: n = N ÷ N_A)
m
sample mass in grams
M
molar mass in g/mol — from a formula or a direct value
N_A
the Avogadro constant, exactly 6.02214076 × 10²³ per mole

The mole is chemistry's counting unit: one mole contains exactly 6.02214076 × 10²³ particles (the 2019 SI definition). Mass-to-moles divides by molar mass; the particle route divides by Avogadro's constant directly. Enter a formula (like H2SO4) and the molar mass is computed for you, or supply a known g/mol value for mixtures and hydrates you've weighed.

How to use this calculator

  1. 1

    Choose mass-based or particle-based input.

  2. 2

    Enter the mass in grams plus molar mass — either as a formula string or a g/mol value — or the particle count.

  3. 3

    Press Calculate to see moles, with millimoles and particle equivalents.

Worked examples

Table salt

58.44 g of NaCl (M = 58.44) is exactly 1.000 mol — that is the definition in action.

From a formula

36 g of H2O: 36 ÷ 18.015 = 1.998 mol ≈ 2 mol.

Frequently asked questions

Explore more categories

Command Palette

Search for a command to run...