Grams to moles conversion practice problems ask you to convert a mass of a substance (in grams) into an amount of substance (in moles) using its molar mass. You solve them by dividing the given mass by the molar mass, which is the mass of one mole of that substance in grams per mole. Below is a calculator that does this conversion for you, followed by step-by-step worked examples and common pitfalls to avoid.
Formula
The core conversion uses the definition of molar mass:
n = m / M
- n = amount of substance in moles (mol)
- m = mass of the substance in grams (g)
- M = molar mass in grams per mole (g/mol)
For the calculator above, the molarity is then computed as moles divided by the volume in liters:
c = n / V = (m / M) / (v / 1000)
- c = molarity in mol/L (often written M)
- V = volume in liters (L), obtained by dividing the milliliter volume by 1000
The calculator takes the mass, molar mass, and solution volume, then gives the molarity and the concentration in millimolar (mM). The default values correspond to dissolving 2.922 g of sodium chloride (NaCl, molar mass 58.44 g/mol) in water to a final volume of 250 mL.
Worked Example
Using the default values from the calculator:
- Mass of NaCl = 2.922 g
- Molar mass of NaCl = 58.44 g/mol (Na = 22.99, Cl = 35.45)
- Volume = 250 mL = 0.250 L
First, convert grams to moles:
n = 2.922 g / 58.44 g/mol = 0.05000 mol (exactly 0.05 mol)
Then calculate molarity:
c = 0.05000 mol / 0.250 L = 0.2000 mol/L
The calculator shows 0.2000 mol/L as the headline answer, and 200.00 mM as the millimolar concentration. This matches the manual calculation.
Assumptions
- The substance is pure; the mass given is entirely the compound of interest.
- The molar mass is correct for the exact formula unit (e.g., NaCl has one Na and one Cl).
- For molarity, the volume is the final solution volume after dissolution, not the volume of solvent added.
- The solution is assumed to be at a temperature where the volume is measured accurately (density effects are ignored for dilute solutions).
How to Choose the Right Molar Mass
The most common mistake in grams-to-moles problems is using the wrong molar mass. The molar mass must match the chemical formula exactly. For example:
- For water (H2O): 2(1.008) + 15.999 = 18.015 g/mol
- For sodium chloride (NaCl): 22.990 + 35.45 = 58.44 g/mol
- For glucose (C6H12O6): 6(12.011) + 12(1.008) + 6(15.999) = 180.156 g/mol
Always check the subscript numbers in the formula. A common error is using the molar mass of a single atom instead of the whole molecule. For diatomic gases like O2, the molar mass is 31.998 g/mol, not 15.999 g/mol.
Common Mistakes and How to Avoid Them
- Mixing up grams and moles: Always write the units. If you divide g by g/mol, the grams cancel and you get mol. If you multiply, you get g2/mol, which is wrong.
- Rounding too early: Round only at the final step. For example, using 58.4 instead of 58.44 changes the result slightly but can be significant in multi-step problems.
- Forgetting to convert mL to L: When calculating molarity, volume must be in liters. Divide the milliliter value by 1000 first.
- Using the wrong formula for hydrates: If a compound is a hydrate (e.g., CuSO4·5H2O), include the water molecules in the molar mass. The molar mass of CuSO4·5H2O is 249.68 g/mol, not 159.61 g/mol (anhydrous).
Practice Problem Walkthroughs
Here are three typical practice problems with step-by-step solutions.
Problem 1: How many moles are in 45.0 g of water?
Molar mass of H2O = 18.015 g/mol. n = 45.0 g / 18.015 g/mol = 2.50 mol (rounded to three significant figures).
Problem 2: What mass of carbon dioxide (CO2) contains 0.750 mol?
Molar mass of CO2 = 12.011 + 2(15.999) = 44.009 g/mol. m = 0.750 mol × 44.009 g/mol = 33.0 g.
Problem 3: You need 0.100 mol of potassium permanganate (KMnO4). How many grams should you weigh?
Molar mass of KMnO4 = 39.098 + 54.938 + 4(15.999) = 158.034 g/mol. m = 0.100 mol × 158.034 g/mol = 15.8 g.
Why Practice Problems Matter
Grams-to-moles conversions are the foundation of stoichiometry. Every balanced chemical equation works in moles, not grams. When you do a reaction, you measure reactants in grams, but the equation tells you the ratio in moles. Without converting, you cannot determine how much product to expect or how much of each reactant to use. Practicing these problems builds the habit of checking units and using molar masses correctly, which carries into molarity, limiting reactants, and gas law calculations.
Frequently Asked Questions
What is the difference between molar mass and atomic mass?
Atomic mass is the mass of a single atom in atomic mass units (u), while molar mass is the mass of one mole (6.022 × 1023 particles) in grams. Numerically they are the same for a single atom, but molar mass applies to molecules and formula units too. For example, the atomic mass of oxygen is 16.00 u, but the molar mass of O2 is 32.00 g/mol.
How do I convert moles back to grams?
Multiply the number of moles by the molar mass. For instance, 2.00 mol of NaCl (58.44 g/mol) is 2.00 × 58.44 = 116.88 g. This is the reverse of the grams-to-moles conversion.
Why do we use 6.022 × 1023 for Avogadro’s number?
Avogadro’s number is defined as the number of atoms in exactly 12 grams of carbon-12. That number is approximately 6.02214076 × 1023. It connects the macroscopic world (grams) to the microscopic world (atoms/molecules), so that one mole of any substance has that many particles.
Can I use the same method for ions or compounds?
Yes. For an ionic compound like NaCl, the molar mass is the sum of the atomic masses of Na and Cl. For a polyatomic ion like SO42−, you sum the atomic masses of S and four O atoms. The conversion works the same way.
What if the problem gives a hydrate?
Include the water molecules in the molar mass. For example, the molar mass of BaCl2·2H2O is 244.26 g/mol (Ba 137.33 + 2Cl 70.90 + 2H2O 36.03). Use that total when converting grams to moles.
Related
Formula used
in m | Mass of solute | g | 2.922 | 0 in mm | Molar mass | g/mol | 58.44 | 0.001 in v | Final solution volume | mL | 250 | 0.001 out c | Molarity | mol/L | m / mm / (v / 1000) | 4 out cmm | Concentration in millimolar | mM | c * 1000 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Chemical Reaction Equation: How to Write & Balance One1.0000 mol
- Standard Reaction Free Energy Calculator
- Rate and Extent of Reaction: Key Facts0.050 mol/L
- Rate and Extent of Chemical Reactions0.1000 mol/(L·s)
- How to Calculate Extent of Reaction0.800 mol
- Chemical Reaction Formula: How to Write & Balance2.2722 mol