Grams to Moles Calculator
To convert grams to moles, divide the mass by the molar mass: n = m ÷ M. Type a chemical formula such as H2O, Ca(OH)2 or CuSO4.5H2O and the calculator finds the molar mass from standard atomic weights, converts grams to moles (or moles to grams), and shows the number of particles.
Grams to moles formula
n = m ÷ M, where n is the amount in moles, m is the mass in grams and M is the molar mass in grams per mole. To go the other way, m = n × M.
How to convert grams to moles in three steps
- Write the chemical formula and count the atoms of each element.
- Add the atomic masses to get the molar mass M (g/mol).
- Divide the mass in grams by M.
Example 1: 36 g of water
M(H₂O) = 2 × 1.008 + 15.999 = 18.015 g/mol. n = 36 ÷ 18.015 ≈ 2.00 mol.
Example 2: 100 g of calcium carbonate, CaCO₃
M = 40.078 + 12.011 + 3 × 15.999 = 100.086 g/mol. n = 100 ÷ 100.086 ≈ 0.999 mol.
Example 3: 0.25 mol of NaCl to grams
M = 22.990 + 35.45 = 58.44 g/mol. m = 0.25 × 58.44 = 14.61 g.
Molar masses of common compounds
| Substance | Formula | Molar mass (g/mol) |
|---|---|---|
| Water | H₂O | 18.015 |
| Carbon dioxide | CO₂ | 44.009 |
| Sodium chloride | NaCl | 58.44 |
| Glucose | C₆H₁₂O₆ | 180.156 |
| Sulfuric acid | H₂SO₄ | 98.07 |
| Ammonia | NH₃ | 17.031 |
| Calcium carbonate | CaCO₃ | 100.086 |
| Oxygen gas | O₂ | 31.998 |
Entering formulas
- Use capital letters exactly: Co is cobalt, but CO is carbon monoxide.
- Parentheses multiply a group: Ca(OH)₂ has 1 Ca, 2 O and 2 H.
- Write hydrates with a dot: CuSO4.5H2O.
- Atomic masses are the IUPAC standard values, rounded for everyday chemistry.
From moles to particles
One mole contains exactly 6.02214076 × 10²³ particles (Avogadro’s number). The calculator also shows the number of molecules or formula units: 2 mol of water is about 1.204 × 10²⁴ molecules.
For molar mass breakdowns use the molar mass calculator; for concentrations use the molarity calculator.
Grams to moles quiz: 10 questions
Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.
Quiz complete
Frequently asked questions
How do you convert grams to moles?
Divide the mass in grams by the molar mass in g/mol: n = m ÷ M. For 36 g of water, 36 ÷ 18.015 ≈ 2 mol.
How do you find molar mass?
Add the atomic masses of all atoms in the formula. H₂O = 2(1.008) + 15.999 = 18.015 g/mol.
How do you convert moles to grams?
Multiply moles by molar mass: m = n × M.
How many molecules are in a mole?
6.02214076 × 10²³, Avogadro’s number, which is exact by definition in the SI.
Why does capitalization matter in formulas?
Element symbols start with a capital letter and may have one lowercase letter. Co (cobalt) and CO (carbon monoxide) are different substances.
Sources
Related calculators
Related to This Article
More math articles
- What Are the 5 Ways to Prove Congruence?
- Sustainable Development and Population-Urban-Environment Synthesis
- VA Loan Calculator With Funding Fee, Taxes & Insurance
- 5 Letter Words
- 10 Most Common CBEST Math Questions
- How to Define Elapsed Time
- Body Directions, Planes, and Cavities
- Best Desktop Computers For Online Math Teachers
- Credit Card Payoff Calculator
- Simplify Fractions Calculator: Reduce to Lowest Terms


What people say about "Grams to Moles Calculator - Effortless Math"?
No one replied yet.