To convert grams to moles of a compound, divide the mass in grams by the compound’s molar mass (in g/mol). For example, 2.922 g of sodium chloride (NaCl, molar mass 58.44 g/mol) equals 0.05000 mol. This simple division is the core of stoichiometry, letting you translate a weighed amount of a substance into the number of particles or reacting units it contains.
Formula
The conversion uses the fundamental relationship between mass, molar mass, and amount of substance:
n = m / M
- n = amount of substance in moles (mol)
- m = mass of the compound in grams (g)
- M = molar mass of the compound in grams per mole (g/mol)
The molar mass is the mass of one mole of the compound, numerically equal to the sum of the atomic weights of all atoms in its chemical formula. For a solution, you often need the number of moles to calculate molarity (c = n / V), where V is the volume in liters.
Worked Example
Using the default values from the calculator: you have 2.922 g of NaCl and want to know the molarity when dissolved in 250 mL of water.
- Find the molar mass of NaCl: Na = 22.99 g/mol, Cl = 35.45 g/mol, so M = 22.99 + 35.45 = 58.44 g/mol.
- Convert grams to moles: n = 2.922 g / 58.44 g/mol = 0.05000 mol (rounded to 4 significant figures).
- Convert volume to liters: V = 250 mL / 1000 = 0.250 L.
- Calculate molarity: c = 0.05000 mol / 0.250 L = 0.2000 mol/L.
The calculator shows 0.2000 mol/L (or 200.0 mM), matching the step-by-step result.
Assumptions
- The compound is pure and the molar mass is taken from standard atomic weights.
- The solution volume is the final volume after dissolving, not the volume of solvent added.
- For molarity, the solute dissolves completely and the temperature is assumed to be around 25 °C (density changes with temperature are ignored).
How to Find the Molar Mass of Any Compound
The molar mass comes from the chemical formula. Write the formula, count each element’s atoms, multiply each atomic weight by its subscript, and sum them. Use the IUPAC standard atomic weights (e.g., H = 1.008, C = 12.011, O = 15.999). For hydrates, include the water molecules in the formula (e.g., CuSO₄·5H₂O has 5 extra H₂O units). For ionic compounds like NaCl, use the empirical formula, not a molecular formula.
When to Use This Conversion
You use grams-to-moles whenever you need to relate a weighed mass to a chemical reaction or a solution concentration. Typical situations include:
- Preparing a solution of known molarity (as in the calculator above).
- Calculating how many moles of a reactant you have for stoichiometry.
- Finding the number of molecules or formula units (multiply moles by Avogadro’s number, 6.022 × 1023).
- Converting between masses of different substances in a balanced equation (via mole ratios).
Common Mistakes and How to Avoid Them
- Forgetting to convert mL to L: Always divide volume in mL by 1000 before using it in molarity calculations.
- Using the wrong molar mass: Check the formula and the atomic weights. For example, confusion between anhydrous and hydrated salts changes the molar mass significantly.
- Rounding too early: Keep at least 4 significant figures in intermediate steps to avoid errors in the final answer.
- Confusing mass and moles: Grams is a measure of mass; moles is a count of particles. You cannot directly compare them without the molar mass.
Limits of the Formula
The conversion n = m/M is exact for pure substances. However, the molar mass you use is an average based on natural isotopic abundances, so for a specific sample the actual mass per mole may vary slightly. For solutions, the molarity calculation assumes the solute does not change the solution volume significantly and that the solution is ideal (no volume contraction or expansion). For very concentrated solutions, the final volume may differ from the sum of solute and solvent volumes.
Frequently Asked Questions
How many grams are in one mole of water?
Water (H₂O) has a molar mass of 18.015 g/mol (2 × 1.008 + 15.999). So one mole of water weighs 18.015 grams. This is the same number as the molar mass, but expressed in grams.
Can I convert grams to moles without knowing the formula?
No. The molar mass depends on the exact chemical formula. If you only know the mass and not what the substance is, you cannot determine the number of moles. You need at least the empirical formula or the identity of the compound.
What is the difference between molar mass and molecular weight?
In practice, they are used interchangeably. Molecular weight is the sum of atomic weights in a molecule (in atomic mass units, u), while molar mass is the same number expressed in grams per mole. For example, CO₂ has a molecular weight of 44.01 u and a molar mass of 44.01 g/mol.
How do I convert moles back to grams?
Multiply the number of moles by the molar mass. For instance, 0.25 mol of NaCl (58.44 g/mol) is 0.25 × 58.44 = 14.61 g. This is the reverse of the grams-to-moles conversion.
Why do we use Avogadro’s number in mole conversions?
One mole is defined as exactly 6.02214076 × 1023 elementary entities (atoms, molecules, ions, etc.). This huge number links the macroscopic mass (grams) to the microscopic count of particles. So after converting grams to moles, you can multiply by Avogadro’s number to get the number of molecules or formula units.
Does the conversion work for gases and liquids?
Yes, the grams-to-moles conversion works for any pure substance in any state—solid, liquid, or gas. For gases, you might also use the ideal gas law (PV = nRT) to find moles from pressure, volume, and temperature, but if you have the mass, the molar mass method is simpler.
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
- QPP Calculator Canada: How It Works & How to Use It
- PPP Calculator World Bank: How It Works & How to Use It2,000.00
- PPP Calculator: India vs USA Cost Comparison1,000.00 USD
- PPP Calculator USD to INR: How It Works2,335 INR
- PPP Calculator India vs UK: Real Cost Comparison103.63 GBP
- PPP Calculator India vs Dubai: Real Cost Comparison8,954.58 AED