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.
| Result | 2 mol |
|---|---|
| Number of particles | 1.2044 × 10²⁴ |
| Working | n = 36.03 g ÷ 18.015 g/mol = 2 mol |
Link to this calculation – copied!
Formula
m = n × M
N = n × NA
| Symbol | Meaning |
|---|---|
| n | Amount of substance, in moles (mol) |
| m | Mass, in grams (g) |
| M | Molar mass, in grams per mole (g/mol) |
| N | Number of particles (atoms, molecules or ions) |
| NA | Avogadro constant, 6.02214076 × 10²³ mol⁻¹ |
How to Use This Calculator
- Choose the Solve for (Moles (n), Mass (m), Molar mass (M)).
- Enter the Mass (g).
- Enter the Molar mass (g/mol). Water = 18.015, CO₂ = 44.01, glucose = 180.16.
- Enter the Amount (mol) when Solve for is Mass (m) or Molar mass (M).
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| Solve for | Moles (n) |
|---|---|
| Mass | 36.03 g |
| Molar mass | 18.015 g/mol |
| Result | 2 mol |
|---|---|
| Number of particles | 1.2044 × 10²⁴ |
| Working | n = 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.