FREE TOOLS. ZERO LIMITS.
No Signup RequiredNo Watermarks
ToolzNova ยท Lab & chemistry calculators

Grams to Moles Calculator Online

Turn a mass in grams into moles by dividing by molar mass. Results show mol and mmol, ready for reaction planning, stoichiometry and solution prep.

Grams to Moles Calculator

Free grams to moles calculator that runs in your browser. Nothing is uploaded.

n = m รท M
Calculator inputs
โ€”
Molesโ€”
Millimolesโ€”
Massโ€”
Molar massโ€”
โœ“ Free โ€ข โœ“ No signup โ€ข โœ“ Mobile friendly

Use the exact chemical form, concentration basis, reaction factor, and source values required by your method.

Molar mass must be for the exact form you weigh, including any water of crystallisation.

How to convert grams to moles

1Enter the mass

Type the mass of substance in grams.

2Enter the molar mass

Use g/mol for the exact compound and form you weighed.

3Read moles

See the amount in mol and mmol.

Grams to moles examples

Moles = mass รท molar mass. One mole of any substance has a mass in grams equal to its molar mass.

Molar masses below are rounded to two decimals.

SubstanceMassMolar massMoles
Sodium chloride10 g58.44 g/mol0.1711 mol
Water18 g18.02 g/mol0.999 mol
Glucose5 g180.16 g/mol0.0278 mol
Calcium carbonate100 g100.09 g/mol0.9991 mol

Moles from mass in practice

This short guide explains what the grams to moles calculator does, how to get the best result and when another tool is a better fit.

What This Calculator Does

The calculator converts mass to amount of substance using a verified molar mass. The relationship is fundamental: one mole of a substance has a mass numerically equal to its molar mass in grams.

Grams to Moles Calculator โ€“ g to mol
How the grams to moles calculator works: g in, mol out.

Core Formula

Moles = mass(g) รท molar mass(g/mol). The units simplify to mol because grams cancel.

Worked Example

A 36 g sample of a compound with molar mass 180 g/mol contains 0.200 mol, assuming the mass corresponds to that chemical form and no purity correction is required.

Molar Mass Must Match the Substance

Different isotopic compositions, hydrates, salts, and solvates can have different molar masses. Use the formula or certified material information that matches the actual sample.

Calculate Molar Mass First

If only the chemical formula is known, use the Molecular Weight Calculator to obtain g/mol before converting mass to moles.

Mass Units

The formula expects grams when molar mass is g/mol. Milligrams can be converted to grams by dividing by 1,000; micrograms by dividing by one million.

Reverse Relationship

Mass = moles ร— molar mass. The Moles to Grams Calculator performs that reverse conversion directly.

Moles Versus Molarity

Moles are an amount, while molarity is moles per liter. A sample can contain the same number of moles at many different concentrations depending on solution volume. The Molarity Calculator adds the volume relationship.

Purity and Active Mass

If only part of the weighed sample is the target substance, the effective target mass may be lower. Whether a purity correction is appropriate depends on the analytical or preparation method.

Significant Figures

The result should not imply more precision than the sample mass and molar mass support. Preserve extra digits during intermediate calculation, then round the reported amount according to the source data.

Scaling the Same Substance

For the same chemical form, moles scale directly with mass. Doubling sample mass doubles the number of moles, while halving mass halves the amount. This proportionality is a useful reasonableness check. If a larger mass produces fewer calculated moles without any change in molar mass, the inputs or units have probably been reversed.

Further reading: How molar mass is defined. It explains the format behind this grams to moles calculator in more detail.

Where itโ€™s used

Stoichiometry

Find limiting reagents.

Solution prep

Know how many moles you weighed.

Teaching

Check mole homework.

QC

Confirm batch amounts.

Quick fixes

Answer is far too small

Check the mass is in grams, not milligrams.

Hydrate gives wrong result

Molar mass must be for the exact form you weigh, including any water of crystallisation.

โ€œEnter positive molar massโ€

Molar mass must be greater than zero.

Need molarity instead

Use the Mass Molarity Calculator, which also asks for volume.

Frequently asked questions

What is the formula?

Moles = mass (g) รท molar mass (g/mol).

How many moles are in 10 g of NaCl?

About 0.171 mol.

Where do I find molar mass?

Add atomic masses from the formula, or use the Molecular Weight Calculator.

Can I enter milligrams?

Convert to grams first: divide mg by 1000.

What is a millimole?

One thousandth of a mole.

Do hydrates matter?

Yes, include the water in the molar mass.

Is this the same as molarity?

No; molarity is moles per litre of solution.

Is my data uploaded?

No. The grams to moles calculator works entirely in your browser, so your file stays on your device.

Can I reverse it?

Use the Moles to Grams Calculator.

How accurate is it?

As accurate as your mass and molar mass.