Grams to Moles Calculator

Convert a weighed mass into an amount of substance using n = m ÷ M. Type what you weighed and the formula of the substance, and the calculator works out the molar mass for you, then returns the amount in moles and the number of particles it contains. This is the direction laboratory work almost alwa...

n = m ÷ M

molar mass 58.4400 g/mol — brackets and hydrates understood

Solving for amount in moles.

g/mol

solved: 0.171116 mol

WEIGHED SAMPLES

AMOUNT IN MOLES

0.171116 mol

IN MILLIMOLES

171.1157

PARTICLES

1.030e+23

MOLAR MASS

58.440 g/mol

Amount

0.171116 mol

In millimoles

171.1157 mmol

Mass

10.0000 g

In milligrams

10,000.00 mg

Molar mass

58.4400 g/mol

Particles

1.0305e+23

STEPS

1

You weighed 10.0000 g.

2

NaCl has a molar mass of 58.4400 g/mol — the mass of one mole.

3

n = m ÷ M = 10.0000 ÷ 58.4400 = 0.171116 mol

WHAT A WEIGHED MASS ACTUALLY TELLS YOU

10.00 g OF EACH — SAME MASS, VERY DIFFERENT NUMBER OF PARTICLES (LOG SCALE)CuSO4·5H2O0.0401 molPb0.0483 molC6H12O60.0555 molNaCl0.1711 molFe0.1791 molCO20.2272 molH2O0.5551 molH24.960 molYOURS0.1711 molthe same mass of H2 holds 123.8× as many particles as CuSO4·5H2O

A balance reading is not an amount of substance. Ten grams is ten grams, but how much substance that represents depends entirely on what you weighed — and the range is enormous. Ten grams of hydrogen holds around 124 times as many molecules as ten grams of copper sulfate pentahydrate. The molar mass is the only thing that turns a reading on a scale into a count.

typical of a laboratory balance

WHAT THE BALANCE CAN ACTUALLY TELL YOU0.171116 mol0.1710990.171133± 1.7112e-5 mol from a ± 1 mg weighingthat is 0.0100% either way — dividing by the molar mass does not change the relative error

Your answer is only as good as the weighing. Dividing by the molar mass changes the units but not the relative error, so a mass known to one part in a thousand gives an amount known to one part in a thousand. That is why small samples need a better balance: weighing 5 mg on a scale accurate to 1 mg leaves a twenty percent uncertainty before any chemistry has happened.

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Type the formula of what you weighed into the top box and the molar mass fills in automatically. Brackets and hydrates are understood — try Ca(OH)2, K4[Fe(CN)6] or CuSO4·5H2O. Leave it blank to enter a molar mass yourself.

  2. 2

    Enter the mass your balance showed. Units run from micrograms to kilograms, and the amount comes back in moles along with the number of formula units it contains.

  3. 3

    With no formula given, enter any two of mass, amount and molar mass and the calculator returns the third — including working backwards to identify a molar mass from a weighed sample of known amount.

  4. 4

    Pick your balance class in the second panel to see how much of your answer is real. The uncertainty in moles is your weighing uncertainty divided by the molar mass, and the relative error is unchanged by the conversion.

THE FORMULAS

Grams to molesn = m ÷ M
Moles to gramsm = n × M
Molar massM = m ÷ n
Number of particlesN = n × Nᴀ
Avogadro constant6.02214076 × 10²³ /mol
Relative uncertaintyΔn/n = Δm/m
Uncertainty in molesΔn = Δm ÷ M
Unitsg ÷ (g/mol) = mol

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE CHEMISTRY CALCULATORS

Was this calculator helpful?

Last updated: July 29, 2026 · IUPAC 2021 atomic weights · Eagle-eyed accuracy for every calculation.