All calculators

Education

Grams to Moles Calculator

Pick a mode, enter the two known values, and the calculator returns the third using n = m / M. Use a preset for common molar masses (H2O, CO2, NaCl, O2, HCl, glucose) or enter your own.

Solve for

g
g/mol

Sum of the atomic masses of every atom in the compound.

Common molar masses

Tap to set the molar mass field. Values are rounded to 4 significant figures from standard atomic weights.

Result

Moles

0.999167 mol

Formulan = m / M = 18 g / 18.015 g/mol = 0.999167 mol

The molar mass of a compound is the sum of the atomic masses (in g/mol) of every atom in its formula. Look these up on a periodic table, or use the presets above for common compounds.

Was this helpful?

Examples

18 g of H2O at 18.015 g/mol

≈ 1.00 mol

2 mol of NaCl at 58.44 g/mol

= 116.88 g

44 g CO2 at 44.01 g/mol

≈ 1.00 mol

5 g glucose at 180.16 g/mol

≈ 0.0277 mol

How it works

The mole-mass relationship has one formula. Any two of mass, moles, and molar mass determine the third.

Moles from grams · n = m / M

Grams from moles · m = n x M

Molar mass · M = m / n

Related chemistry calculators

Frequently asked questions

n = m / M, where n is moles, m is the mass in grams, and M is the molar mass in g/mol. To go from moles to grams, multiply by M instead: m = n x M.

A mole is Avogadro's number (6.022 x 10^23) of particles, typically atoms or molecules. It is the chemistry unit for counting the amount of substance, similar to using 'dozen' for counting twelve.

Molar mass is the mass in grams of one mole of a substance, expressed in g/mol. For a compound, it is the sum of the atomic masses of every atom in the formula. The periodic table lists atomic masses for each element.

Atomic weights from IUPAC are reported with several digits of precision, but for typical homework and intro chemistry, 4 sig figs is plenty. If you need higher precision, enter the molar mass manually from a current IUPAC table.

Not yet. It supports the presets in the panel and any molar mass you enter manually. For an arbitrary formula, sum the atomic masses of every atom using a periodic table or a separate molar mass tool.

Yes. Switch the 'Solve for' mode to 'Grams from moles + molar mass'. The same n = m / M relationship runs in both directions.