How to Convert Grams to Moles: Formula, Steps, and Examples
Converting grams to moles is one of the most common calculations in chemistry. It allows you to convert a measurable mass of a substance into the amount of that substance in moles.
This conversion is important because many chemical equations and calculations are based on moles rather than grams.
For example, if you know that a sample contains 36.04 grams of water, you can calculate how many moles of water are present.
The process is simple once you know the molar mass of the substance.
In this guide, you will learn how to convert grams to moles, the formula to use, how to calculate molar mass, and how to solve grams-to-moles problems step by step.
What Does Grams to Moles Mean?
Grams measure the mass of a substance.
Moles measure the amount of substance.
When you convert grams to moles, you are finding out how much of a substance is present in terms of moles.
The basic relationship is:
Moles = Mass ÷ Molar Mass
The formula is:
n = m / M
Where:
n = number of moles
m = mass in grams
M = molar mass in grams per mole
For example, if you have 18.02 grams of water and the molar mass of water is 18.02 g/mol:
n = 18.02 / 18.02
n = 1 mol
Therefore, 18.02 grams of water contains 1 mole of water.
What Is Molar Mass?
Before converting grams to moles, you need to know the molar mass of the substance.
Molar mass is the mass of one mole of a substance.
Its unit is:
g/mol
For example:
H₂O = 18.02 g/mol
CO₂ = 44.01 g/mol
NaCl = 58.44 g/mol
O₂ = 32.00 g/mol
If you need a detailed explanation, see [What Is Molar Mass? Definition, Formula, and Examples].
The Grams to Moles Formula
The main formula is:
n = m / M
You can remember it as:
Moles = Grams ÷ Molar Mass
For example:
Suppose you have 50 grams of a substance with a molar mass of 25 g/mol.
Then:
n = 50 g ÷ 25 g/mol
n = 2 mol
Therefore, 50 grams of the substance contains 2 moles.
How to Convert Grams to Moles Step by Step
Follow these four basic steps.
Step 1: Identify the Mass
Find the mass given in the problem.
Make sure the mass is expressed in grams.
For example:
Mass = 36.04 g
Step 2: Identify the Chemical Formula
Determine the formula of the substance.
For example, if the substance is water:
H₂O
Step 3: Calculate the Molar Mass
Use the periodic table to find the atomic masses of the elements.
For H₂O:
H = 1.008 g/mol
O = 16.00 g/mol
Therefore:
Molar mass = (2 × 1.008) + 16.00
= 18.016 g/mol
Rounded:
18.02 g/mol
Step 4: Divide Mass by Molar Mass
Use:
n = m / M
Then substitute the values.
This gives you the number of moles.
Example 1: Convert 18.02 g of Water to Moles
Suppose you have:
18.02 g of H₂O
The molar mass of water is:
18.02 g/mol
Use:
n = m / M
n = 18.02 / 18.02
n = 1.00 mol
Therefore:
18.02 g of water = 1.00 mol of water
Example 2: Convert 36.04 g of Water to Moles
Suppose you have:
36.04 g H₂O
Molar mass:
18.02 g/mol
Use:
n = 36.04 / 18.02
n = 2.00 mol
Therefore:
36.04 g of water = 2.00 mol
Example 3: Convert 44.01 g of CO₂ to Moles
The chemical formula is:
CO₂
Calculate its molar mass:
C = 12.01 g/mol
O = 16.00 g/mol
Therefore:
M = 12.01 + (2 × 16.00)
M = 44.01 g/mol
Now calculate the moles:
n = 44.01 / 44.01
n = 1.00 mol
Therefore:
44.01 g of CO₂ = 1.00 mol of CO₂
Example 4: Convert 88.02 g of CO₂ to Moles
Molar mass of CO₂:
44.01 g/mol
Mass:
88.02 g
Use:
n = m / M
n = 88.02 / 44.01
n = 2.00 mol
Therefore:
88.02 g of CO₂ = 2.00 mol
Example 5: Convert 58.44 g of NaCl to Moles
Sodium chloride has the formula:
NaCl
Atomic masses:
Na = 22.99
Cl = 35.45
Molar mass:
M = 22.99 + 35.45
M = 58.44 g/mol
Now:
n = 58.44 / 58.44
n = 1.00 mol
Therefore:
58.44 g of NaCl = 1.00 mol
Example 6: Convert 100 g of Calcium Carbonate to Moles
Calcium carbonate has the formula:
CaCO₃
Atomic masses:
Ca = 40.08
C = 12.01
O = 16.00
Calculate the molar mass:
M = 40.08 + 12.01 + (3 × 16.00)
M = 100.09 g/mol
Now calculate the number of moles:
n = 100 / 100.09
n ≈ 0.999 mol
So:
100 g of CaCO₃ ≈ 0.999 mol
Example 7: Convert 10 g of Oxygen to Moles
Be careful with oxygen.
Elemental oxygen commonly exists as the diatomic molecule:
O₂
Its molar mass is:
2 × 16.00 = 32.00 g/mol
If you have:
10 g of O₂
Then:
n = 10 / 32.00
n = 0.3125 mol
Therefore:
10 g of O₂ = 0.3125 mol of O₂
This example shows why it is important to use the correct chemical formula before calculating molar mass.
What If the Mass Is Not Given in Grams?
The standard grams-to-moles formula uses mass in grams:
n = m / M
If the mass is given in another unit, convert it to grams first.
For example:
1 kg = 1000 g
Suppose you have:
2 kg of water
Convert to grams:
2 kg = 2000 g
Then:
n = 2000 / 18.02
n ≈ 111.0 mol
So, 2 kg of water contains approximately 111 moles of water.
How to Convert Milligrams to Moles
If the mass is given in milligrams, convert milligrams to grams first.
Remember:
1000 mg = 1 g
For example, suppose you have:
1802 mg of water
Convert to grams:
1802 mg = 1.802 g
Then:
n = 1.802 / 18.02
n = 0.100 mol
Therefore:
1802 mg of water = 0.100 mol
Grams to Moles Using Dimensional Analysis
You can also convert grams to moles using a conversion factor.
For example:
36.04 g H₂O
The molar mass is:
18.02 g H₂O / 1 mol H₂O
Set up the calculation:
36.04 g H₂O × (1 mol H₂O / 18.02 g H₂O)
The grams cancel:
= 2.00 mol H₂O
This method is especially useful for more complex chemistry calculations.
Why Do We Convert Grams to Moles?
Chemical equations are based on relationships between particles and moles.
For example:
2H₂ + O₂ → 2H₂O
The coefficients tell us the mole ratio:
2 mol H₂ : 1 mol O₂ : 2 mol H₂O
If a problem gives you grams instead of moles, you usually need to convert the grams to moles before using the chemical equation.
This is why grams-to-moles conversion is an important foundation for stoichiometry.
Grams to Moles in Stoichiometry
Consider:
2H₂ + O₂ → 2H₂O
Suppose you are given the mass of hydrogen and asked to determine how much water can be produced.
The general process is:
Grams of H₂
↓
Moles of H₂
↓
Mole ratio
↓
Moles of H₂O
↓
Grams of H₂O
So, converting grams to moles is often the first step in a stoichiometry problem.
Common Mistakes When Converting Grams to Moles
1. Dividing by the Wrong Number
Always divide the mass by the molar mass, not the atomic mass of just one element.
For example, the molar mass of H₂O is about 18.02 g/mol, not 16.00 g/mol.
2. Forgetting Subscripts
In H₂O, there are two hydrogen atoms.
In CO₂, there are two oxygen atoms.
The subscripts must be included when calculating molar mass.
3. Using the Wrong Formula
Oxygen gas is usually O₂, not O.
Hydrogen gas is H₂, not H.
Always check the chemical formula given in the problem.
4. Forgetting to Convert Units
If the mass is in kilograms or milligrams, convert it to grams before using the standard formula.
5. Forgetting Units in the Answer
The answer should be expressed in:
mol
For example:
2.00 mol
not simply:
2.00
Quick Grams to Moles Shortcut
Whenever you see:
How many moles are in X grams of a substance?
Think:
Step 1: Find the molar mass.
Step 2: Divide grams by molar mass.
Formula:
n = m / M
For example:
20 g of NaOH
Molar mass of NaOH:
40.00 g/mol
Therefore:
n = 20 / 40.00
n = 0.50 mol
Practice Problems
Try these problems yourself.
Problem 1
How many moles are in 36.04 g of H₂O?
Problem 2
How many moles are in 88.02 g of CO₂?
Problem 3
How many moles are in 58.44 g of NaCl?
Problem 4
How many moles are in 16 g of O₂?
Problem 5
How many moles are in 40 g of NaOH?
Problem 6
How many moles are in 90.08 g of H₂O?
Answers
1. 2.00 mol H₂O
2. 2.00 mol CO₂
3. 1.00 mol NaCl
4. 0.50 mol O₂
5. 1.00 mol NaOH
6. approximately 5.00 mol H₂O
Frequently Asked Questions
What is the formula for converting grams to moles?
Use:
n = m / M
where n is the number of moles, m is the mass in grams, and M is the molar mass in g/mol.
How do I calculate molar mass?
Add the atomic masses of all atoms in the chemical formula, taking the subscripts into account.
How many moles are in 18 grams of water?
The molar mass of water is approximately 18.02 g/mol.
Therefore:
18 g ÷ 18.02 g/mol ≈ 1.00 mol
Can I convert kilograms to moles?
Yes. First convert kilograms to grams, then divide by the molar mass.
Can I convert milligrams to moles?
Yes. Convert milligrams to grams first, then use:
n = m / M
Why do I need molar mass to convert grams to moles?
Molar mass provides the relationship between the mass of a substance and the amount of that substance in moles.
Is grams-to-moles conversion important for stoichiometry?
Yes. Many stoichiometry problems provide mass in grams, but chemical equations describe relationships between substances in moles. Therefore, grams often need to be converted to moles before using the mole ratio.
Key Takeaways
Converting grams to moles is straightforward once you know the molar mass.
Remember:
Moles = Mass ÷ Molar Mass
or:
n = m / M
To solve a grams-to-moles problem:
Identify the mass.
Write the correct chemical formula.
Calculate the molar mass.
Divide the mass by the molar mass.
Report the answer in moles.
This skill is essential for solving more advanced chemistry problems, especially stoichiometry and chemical reaction calculations.
Once you are comfortable converting grams to moles, the next useful skill is learning how to convert moles back into grams.

No comments