To convert grams to moles, divide the mass in grams by the molar mass of the substance (in grams per mole). For example, 2.922 g of sodium chloride (NaCl, molar mass 58.44 g/mol) is 0.0500 mol. Enter the mass and molar mass below to get the number of moles instantly.
Formula
The core conversion is:
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)
Molar mass is the mass of one mole of a substance. For a compound, add the atomic masses of all atoms in its formula. The periodic table gives atomic masses in g/mol, so the number you see for an element is exactly its molar mass.
The calculator above also computes molarity, which is moles per liter of solution. It divides the mass by the molar mass to get moles, then divides by the volume in liters (mL ÷ 1000).
Worked Example
Using the default values from the calculator: 2.922 g of NaCl, molar mass 58.44 g/mol, dissolved in 250 mL of water.
Step 1: Find moles of NaCl.
n = 2.922 g ÷ 58.44 g/mol = 0.05000 mol
Step 2: Convert volume to liters.
V = 250 mL ÷ 1000 = 0.250 L
Step 3: Calculate molarity.
c = 0.05000 mol ÷ 0.250 L = 0.2000 mol/L
Step 4: Convert to millimolar.
cmm = 0.2000 mol/L × 1000 = 200.0 mM
The calculator shows 0.2000 mol/L and 200.00 mM, matching these steps.
Assumptions
- The substance is pure; impurities are not accounted for.
- Molar mass is the standard formula weight from IUPAC atomic weights.
- For molarity, the final volume is used, not the volume of solvent added. This is the standard convention.
- Temperature and pressure do not affect the mass-to-mole conversion for solids or liquids.
How to Find Molar Mass
You need the molar mass before you can convert grams to moles. Here is the process:
- Write the chemical formula. For example, glucose is C6H12O6.
- Look up each element’s atomic mass on the periodic table: C = 12.011, H = 1.008, O = 15.999.
- Multiply each atomic mass by the number of atoms in the formula: 6×12.011 + 12×1.008 + 6×15.999.
- Add them up: 72.066 + 12.096 + 95.994 = 180.156 g/mol.
For hydrated salts, include the water molecules in the formula. Copper(II) sulfate pentahydrate (CuSO4·5H2O) has five water molecules, so you add 5 × 18.015 g/mol to the anhydrous mass.
Common Mistakes and How to Avoid Them
The most frequent error is mixing up the direction of the conversion. To go from grams to moles, you divide by molar mass. To go from moles to grams, you multiply by molar mass. Writing the units helps: g ÷ (g/mol) = mol.
Another common mistake is using the wrong molar mass. For example, using 58.44 for NaCl is correct, but using 58.44 for sodium chloride dihydrate (which does not exist as a common hydrate) would be wrong. Always verify the formula, including any water of hydration.
Rounding errors also matter in lab work. If you round 58.44 to 58, a 2.922 g sample gives 0.05038 mol instead of 0.05000 mol — a 0.8% error. Keep at least three significant figures in molar masses for quantitative work.
For gases, remember that the ideal gas law uses moles, not grams. If you have a gas at STP, you can also convert volume to moles using 22.414 L/mol, but this only works for ideal gases at 0 °C and 1 atm.
Why This Conversion Matters
Stoichiometry is the quantitative relationship between reactants and products in a chemical reaction. Balanced equations give ratios in moles, not grams. To predict how much product you will get, you must convert your measured mass to moles first.
For example, consider the reaction: 2 H2 + O2 → 2 H2O. If you have 4.00 g of H2 (molar mass 2.016 g/mol), that is 1.98 mol. The equation says you need half that many moles of O2, so 0.99 mol. Converting back to grams: 0.99 mol × 32.00 g/mol = 31.7 g of O2 required.
In solution chemistry, molarity (mol/L) is the standard concentration unit. Preparing a 0.500 M solution of KCl requires 0.500 mol of KCl per liter. Since KCl has a molar mass of 74.55 g/mol, you weigh out 37.3 g and dissolve to a final volume of 1.00 L.
When to Use This Calculator
Use this conversion whenever you have a mass and need moles. Common scenarios include:
- Preparing solutions of known molarity
- Calculating theoretical yield from a balanced equation
- Finding the limiting reagent in a reaction
- Determining empirical formulas from combustion analysis
- Converting between mass and amount for gases using the ideal gas law
The calculator also gives molarity, which is useful when you know the final solution volume. If you only need moles, ignore the volume field and read the first result.
Limits of the Conversion
The grams-to-moles conversion assumes you have a pure substance. Real reagents often contain impurities or water. For analytical work, you may need to correct for purity. For example, a 98% pure sample of NaOH: if you weigh 1.00 g, the actual NaOH content is 0.98 g, so moles = 0.98 ÷ 40.00 = 0.0245 mol, not 0.0250 mol.
For volatile liquids, weighing is tricky because evaporation changes the mass. Use a sealed container or weigh quickly. For hygroscopic substances (like NaOH), they absorb water from air, so the mass you weigh includes water. Dry them first or use a desiccator.
The molar mass of a compound is fixed, but isotopic variations exist. For most purposes, the standard atomic weights are accurate enough. Only in high-precision isotope chemistry would you use isotopic masses.
Frequently Asked Questions
How do I convert moles to grams?
Multiply the number of moles by the molar mass. For example, 0.250 mol of NaCl × 58.44 g/mol = 14.6 g. This is the reverse of the grams-to-moles conversion.
What is molar mass in simple terms?
It is the mass of one mole of a substance, expressed in grams per mole. Numerically, it equals the sum of the atomic masses of all atoms in the chemical formula. One mole contains Avogadro’s number (6.022 × 1023) of particles.
Why do I divide by molar mass instead of multiplying?
Because the units must cancel. Grams divided by grams per mole leaves moles. If you multiply, you get g²/mol, which is not a useful unit. Always check that your final units make sense.
Can I convert grams to moles without a periodic table?
You need the molar mass, which comes from atomic masses. Some common ones you may memorize: H = 1.008, C = 12.011, N = 14.007, O = 15.999, Na = 22.990, Cl = 35.45. For any compound, add them up. The calculator here lets you enter the molar mass directly if you already know it.
What is the difference between molar mass and molecular weight?
They are numerically identical but have different units. Molecular weight is dimensionless (e.g., 58.44 for NaCl), while molar mass has units of g/mol. In practice, chemists use them interchangeably.
Does temperature affect the conversion?
For solids and liquids, no. Mass and molar mass do not change with temperature. For gases, temperature affects volume but not the mass-to-mole relationship. If you use the ideal gas law, temperature matters for finding volume from moles, but the conversion itself is temperature-independent.
When working in a lab, always follow your lab method, the safety data sheet (SDS) and your supervisor. Weigh solids on a calibrated balance, use the correct molar mass for your specific reagent, and record units carefully.
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 Dubai: Real Cost Comparison8,954.58 AED
- PPP Calculator India vs UK: Real Cost Comparison103.63 GBP