Moles to Grams Calculator

Convert between moles and grams using m = n × M, either by typing a chemical formula and letting the calculator work out the molar mass, or by entering the molar mass yourself. Enter any two of mass, amount and molar mass and it returns the third, along with the number of formula units that amount c...

m = n × M

molar mass 18.0150 g/mol — brackets and hydrates understood

Solving for mass.

solved: 18.0150 g

g/mol

COMMON COMPOUNDS

MASS

18.0150 g

MASS

18.015 g

AMOUNT

1.000 mol

PARTICLES

6.022e+23

Mass

18.0150 g

In milligrams

18,015.00 mg

Amount

1.000000 mol

In millimoles

1,000.0000 mmol

Molar mass

18.0150 g/mol

Mass of one unit

2.991e-23 g

STEPS

1

H2O has a molar mass of 18.0150 g/mol — the mass of one mole.

2

Multiply by the number of moles: m = n × M.

3

m = 1.000000 × 18.0150 = 18.0150 g

WHAT A MOLE ACTUALLY DOES

THE MOLE LINKS WHAT YOU CAN WEIGH TO WHAT YOU CANNOT COUNTMASS18.015grams — what you weighAMOUNT1.000moles — the bridgePARTICLES6.022e+23what you cannot count÷ M× M× Nᴀ÷ NᴀM = 18.015 g/mol · Nᴀ = 6.02214076 × 10²³ per mol

The mole is a counting unit, not a mass. A balance measures grams, but reactions happen between individual particles, and those two things are only connected through the molar mass. Dividing a weighed mass by the molar mass converts something you can measure into a count of particles you never could.

1.000 mol OF EACH — SAME PARTICLE COUNT, VERY DIFFERENT MASSH22.02 gH2O18.02 gCO244.01 gFe55.85 gNaCl58.44 gC6H12O6180.16 gPb207.20 gCuSO4·5H2O249.68 gYOURS18.02 gheaviest is 123.8× the lightest, yet each holds 6.022e+23 particles

Equal moles are equal counts, never equal masses. Every bar above holds exactly the same number of formula units, yet the heaviest weighs more than a hundred times the lightest. That is precisely why chemical equations are balanced in moles rather than grams — a reaction consumes particles, and it has no way of knowing what they weigh.

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Type a chemical formula 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 if you would rather enter the molar mass yourself.

  2. 2

    Enter the amount in moles to get the mass, or the mass to get the amount. Units run from micrograms to kilograms and from nanomoles to moles, and everything converts before the arithmetic runs.

  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 find a molar mass from a weighed sample.

  4. 4

    Look at the comparison on the right. It shows what your number of moles weighs for eight different substances, all containing exactly the same number of particles.

THE FORMULAS

Moles to gramsm = n × M
Grams to molesn = m ÷ M
Molar massM = m ÷ n
Number of particlesN = n × Nᴀ
Particles to molesn = N ÷ Nᴀ
Avogadro constant6.02214076 × 10²³ /mol
Mass of one unitM ÷ Nᴀ grams
Unitsg, mol and g/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.