Grams to Moles Calculator
Type a formula and a mass to get the moles, worked out from the molar mass…
Type a formula and a mass to get the moles, worked out from the molar mass, with the number of molecules and the answer rounded to the significant figures you typed.
Read as H2O
3 significant figures
Example36.0 g of H₂O
2.00mol
36.0 g ÷ 18.015 g/mol = 2.00 mol, which is 1.20 × 10²⁴ formula units.
Type your own formula and amount.
- In millimoles
- 2,000 mmol
- Particles
- 1.20 × 10²⁴
- Molar mass
- 18.015 g/mol
How this works: 4 sources,
How this works
Method
A mole is a count, like a dozen, only much bigger: 6.022 140 76 × 10²³ particles. The molar mass tells you how many grams one mole of a substance weighs, so dividing a mass by the molar mass counts how many moles you have. Water is 18.015 g/mol, so 36.0 g of water is 36.0 ÷ 18.015 = 2.00 mol. Full method
Sources
How it’s tested
2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: molar mass with each element’s share of the mass and atoms, grams to moles and back, percent composition, empirical formula, limiting reagent, theoretical and percent yield.
How to convert grams to moles
A mole is a count, like a dozen, only much bigger: 6.022 140 76 × 10²³ particles. The molar mass tells you how many grams one mole of a substance weighs, so dividing a mass by the molar mass counts how many moles you have. Water is 18.015 g/mol, so 36.0 g of water is 36.0 ÷ 18.015 = 2.00 mol.
The molar mass comes from the formula: add up the atomic weights of every atom in it. Carbon dioxide, CO2, is 12.011 + 2 × 15.999 = 44.009 g/mol, so 100 g of it is 2.27 mol, or 1.37 × 10²⁴ molecules. Multiplying moles by the Avogadro constant always gives the number of particles.
Round the answer to the significant figures of the mass you measured, because the molar mass is known far more precisely than any lab balance. A mass typed as 36.0 g has three significant figures, so the answer is 2.00 mol, not 1.99833. The tool counts the figures you type and rounds to match, and shows the unrounded value in the working.
n (mol) = m (g) ÷ M (g/mol)
- Since the 2019 redefinition of the SI, the mole is defined by fixing the Avogadro constant at exactly 6.022 140 76 × 10²³ per mole. Source: BIPM, The International System of Units (SI Brochure), 9th edition, 2019.
- The number of moles is the mass divided by the molar mass, and the molar mass in g/mol is numerically equal to the formula mass in atomic mass units. Source: OpenStax Chemistry 2e, 3.1 Formula Mass and the Mole Concept.
Moles in 100 grams of common substances
Each molar mass from the CIAAW atomic weights, and the moles and molecules in 100 g.
| Substance | Formula | Molar mass (g/mol) | Moles in 100 g | Molecules in 100 g |
|---|---|---|---|---|
| Water | H₂O | 18.015 | 5.551 | 3.34 × 10²⁴ |
| Carbon dioxide | CO₂ | 44.009 | 2.272 | 1.37 × 10²⁴ |
| Table salt | NaCl | 58.44 | 1.711 | 1.03 × 10²⁴ |
| Glucose | C₆H₁₂O₆ | 180.156 | 0.5551 | 3.34 × 10²³ |
| Table sugar (sucrose) | C₁₂H₂₂O₁₁ | 342.297 | 0.2921 | 1.76 × 10²³ |
| Ethanol | C₂H₅OH | 46.069 | 2.171 | 1.31 × 10²⁴ |
| Baking soda | NaHCO₃ | 84.006 | 1.190 | 7.17 × 10²³ |
| Chalk (calcium carbonate) | CaCO₃ | 100.086 | 0.9991 | 6.02 × 10²³ |
| Ammonia | NH₃ | 17.031 | 5.872 | 3.54 × 10²⁴ |
| Oxygen | O₂ | 31.998 | 3.125 | 1.88 × 10²⁴ |
Show all 12 rowsShow fewer
| Iron | Fe | 55.845 | 1.791 | 1.08 × 10²⁴ |
| Gold | Au | 196.967 | 0.5077 | 3.06 × 10²³ |
Common questions
What is the formula for grams to moles?
Moles = grams ÷ molar mass. For 25.0 g of sodium chloride (58.44 g/mol), that is 25.0 ÷ 58.44 = 0.428 mol.
How do I find the molar mass?
Add the atomic weights of every atom in the formula, from a periodic table. For H2SO4: 2 × 1.008 + 32.06 + 4 × 15.999 = 98.072 g/mol. Type the formula here and it is done for you, with each element shown.
How many significant figures should my answer have?
As many as the least precise measurement, which is almost always the mass. Atomic weights are known to four or more figures, so they rarely limit the answer.
How do I convert grams to molecules?
Convert to moles first, then multiply by 6.022 × 10²³. Ten grams of water is 0.555 mol, or 3.34 × 10²³ molecules.