This grams-to-moles converter calculates the number of moles from the mass of a substance and its molar mass. You enter the mass in grams and the molar mass in grams per mole (g/mol), and it returns the amount in moles. The calculator also shows the result in millimoles for convenience when working with smaller quantities.
Formula
The core conversion is: moles = mass (g) ÷ molar mass (g/mol). In symbols: 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. The molar mass is the mass of one mole of a substance, numerically equal to its atomic or molecular weight expressed in grams. For a compound, you add the atomic weights of all atoms in its formula. For example, sodium chloride (NaCl) has a molar mass of 22.990 + 35.45 = 58.44 g/mol.
The calculator also computes molarity (concentration) when you provide a final solution volume in milliliters. Molarity (mol/L) = moles ÷ volume in liters. The volume is converted from milliliters to liters by dividing by 1000.
Worked Example
Using the default values: you have 2.922 g of NaCl (molar mass 58.44 g/mol) and want to know how many moles that is, and what concentration you get if you dissolve it in 250 mL of water.
- Calculate moles: n = 2.922 g ÷ 58.44 g/mol = 0.0500 mol (exactly 0.0500 when rounded to 4 decimal places).
- Convert volume to liters: 250 mL ÷ 1000 = 0.250 L.
- Calculate molarity: c = 0.0500 mol ÷ 0.250 L = 0.2000 mol/L (0.2000 M).
- Convert to millimolar: 0.2000 mol/L × 1000 = 200.00 mM.
The calculator gives the same results: 0.0500 mol, 0.2000 M, and 200.00 mM.
Assumptions
- The molar mass is assumed to be for the pure substance, with standard isotopic abundance.
- For molarity, the volume is the final volume of the solution after dissolving, not the volume of solvent added.
- Temperature and pressure are not considered because they do not affect mass-to-mole conversions for solids or liquids.
- For gases, this conversion assumes ideal behavior if you later use the mole amount in gas law calculations.
How to Use the Converter
To convert grams to moles, you need two pieces of information: the mass of the substance (in grams) and its molar mass (in g/mol). The molar mass is usually found on a periodic table for elements, or calculated from the chemical formula for compounds. For example, the molar mass of water (H₂O) is 2×1.008 + 15.999 = 18.015 g/mol. If you have 36.03 g of water, the number of moles is 36.03 ÷ 18.015 = 2.000 mol.
When you also enter a solution volume, the calculator gives the molarity. This is useful when preparing solutions in a lab: you weigh a mass of solute, dissolve it in a solvent, and then adjust the volume to a known value. The molarity tells you the concentration in moles per liter.
Common Mistakes and Unit Mix-ups
The most frequent error is using the wrong molar mass. For hydrated compounds (like CuSO₄·5H₂O), you must include the water molecules in the molar mass. Another mistake is confusing grams with milligrams or kilograms. Always convert to grams first: 1 mg = 0.001 g, 1 kg = 1000 g.
For molarity, a common error is using the volume of solvent added instead of the final volume. When you dissolve a solid in water, the final volume is usually slightly larger than the solvent volume. Always use a volumetric flask to make the final volume exact.
Rounding too early can also cause errors. Keep at least 4 significant figures during intermediate steps. For example, if you round the molar mass of NaCl to 58.4 instead of 58.44, a 2.922 g sample gives 0.0500 mol instead of 0.0500 mol (the difference is small here, but for larger masses it can be significant).
Why Moles Matter in Chemistry
The mole is the SI base unit for amount of substance. One mole contains exactly 6.02214076 × 10²³ elementary entities (Avogadro’s number). This allows chemists to count atoms and molecules by weighing them, because the mass of one mole of any substance in grams is numerically equal to its atomic or molecular weight. For example, 12.011 g of carbon contains the same number of atoms as 15.999 g of oxygen, because both are one mole.
Stoichiometry relies on mole ratios from balanced chemical equations. If you know the mass of a reactant, you can convert to moles, use the ratio to find moles of product, and then convert back to mass. This is the foundation of quantitative chemistry.
Alternatives and Related Conversions
Besides grams to moles, you may need to convert moles to grams (multiply by molar mass), or convert between moles and number of particles (multiply or divide by Avogadro’s number). For solutions, molarity (mol/L) is the standard concentration unit; you can also calculate molality (mol/kg of solvent) or mass percent. For gases, you can use the ideal gas law (PV = nRT) to convert between moles, pressure, volume, and temperature.
This converter handles the mass-to-mole step directly. If you know the molarity and volume, you can also find moles by multiplying: moles = molarity × volume (in liters).
Frequently Asked Questions
How do I find the molar mass of a compound?
Add the atomic weights of all atoms in the chemical formula. For example, for sulfuric acid (H₂SO₄): 2×1.008 (H) + 32.06 (S) + 4×15.999 (O) = 98.08 g/mol. Use the most accurate atomic weights from a periodic table.
Can I convert grams to moles for any substance?
Yes, as long as you know its molar mass. For elements, use the atomic weight; for compounds, use the molecular weight. For ionic compounds like NaCl, the formula weight is used, which is the same concept.
What is the difference between molar mass and molecular weight?
They are numerically the same for molecular compounds. Molecular weight is the sum of atomic weights of atoms in a molecule (unitless), while molar mass is that value expressed in grams per mole. For ionic compounds, the term formula weight is used, but the value is the same.
Why do I need to convert grams to moles?
Chemical reactions happen between particles (molecules, atoms, ions) in fixed ratios. Since you cannot count particles directly, you weigh them. Moles allow you to relate the mass of a substance to the number of particles, enabling you to use balanced equations to predict yields.
Does temperature affect the grams-to-moles conversion?
No, for solids and liquids, mass and molar mass are independent of temperature. For gases, the number of moles is also independent, but if you use the ideal gas law, temperature and pressure affect volume, not the mole count.
How do I convert moles back to grams?
Multiply the number of moles by the molar mass: grams = moles × molar mass. For example, 0.5 mol of NaCl (58.44 g/mol) is 0.5 × 58.44 = 29.22 g.
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
- HDB Resale Flat Price Calculator: How It Works
- Convert ppb to ppt Calculator1,000 ppt
- Cpp Calculator: What It Is & How to Use It0.2000 mol/L
- Convert ppb to µg/m³: Formula & Calculator188,061.401 µg/m³
- Convert Micrograms to ppb: Quick & Accurate5.00 ppb
- Convert µg/kg to ppb: Exact Formula & Examples2.9220 ppb