Free online formula calculators

Moles Calculator (Grams to Moles)

Convert a mass in grams to an amount in moles, or moles to grams, using the molar mass. The number of atoms or molecules is calculated with Avogadro's constant.

Moles Calculator (Grams to Moles)
g
g/mol
Result
Result2 mol
Number of particles1.2044 × 10²⁴
Workingn = 36.03 g ÷ 18.015 g/mol = 2 mol

Link to this calculation

Formula

n = m ÷ M
m = n × M
N = n × NA
SymbolMeaning
nAmount of substance, in moles (mol)
mMass, in grams (g)
MMolar mass, in grams per mole (g/mol)
NNumber of particles (atoms, molecules or ions)
NAAvogadro constant, 6.02214076 × 10²³ mol⁻¹

How to Use This Calculator

  1. Choose the Solve for (Moles (n), Mass (m), Molar mass (M)).
  2. Enter the Mass (g).
  3. Enter the Molar mass (g/mol). Water = 18.015, CO₂ = 44.01, glucose = 180.16.
  4. Enter the Amount (mol) when Solve for is Mass (m) or Molar mass (M).
  5. Press Calculate. Results also update automatically as you type.

Worked Example

Using the values pre-filled in the calculator above:

Inputs
Solve forMoles (n)
Mass36.03 g
Molar mass18.015 g/mol
Results
Result2 mol
Number of particles1.2044 × 10²⁴
Workingn = 36.03 g ÷ 18.015 g/mol = 2 mol

About This Calculation

The mole is chemistry's counting unit. One mole contains exactly 6.02214076 × 10²³ particles, the Avogadro constant, and it is defined so that the mass of one mole of a substance in grams equals its formula mass. A water molecule has a formula mass of about 18.015, so 18.015 g of water is one mole and 36.03 g is two moles, roughly 1.2 × 10²⁴ molecules.

Converting grams to moles is the first step in almost every stoichiometry problem. Balanced equations describe reactions in terms of particles, so you convert the mass of each reactant to moles, use the equation's ratios to find moles of product, then convert back to grams. Solving for molar mass is useful too: if you know the mass and amount of an unknown sample, the molar mass helps identify it.

Get the molar mass right by summing atomic masses for every atom in the formula, including subscripts and any water of crystallisation. Be clear about what the particles are: one mole of O₂ contains two moles of oxygen atoms, and one mole of NaCl contains two moles of ions. Masses must be in grams to match g/mol. For dissolved substances, the molarity calculator takes the next step to concentration, and very large particle counts are easier to read with the scientific notation calculator.

Frequently Asked Questions

How do I convert grams to moles?
Divide the mass in grams by the molar mass in g/mol. For example, 10 g of NaCl ÷ 58.44 g/mol = 0.171 mol.
What is Avogadro's number?
The number of particles in one mole: exactly 6.02214076 × 10²³, fixed by definition since the 2019 redefinition of SI units.
Where do I find molar mass?
Add up the standard atomic weights from the periodic table for each atom in the formula. CO₂ is 12.011 + 2 × 15.999 = 44.009 g/mol.

Category: Chemistry. Found a problem with this calculator? Let us know.