Convert a sample’s mass in grams into the amount of substance in moles using its molar mass. Enter the mass and molar mass to calculate moles; the result is useful for chemistry problems and lab-planning arithmetic.
Formula
The grams-to-moles formula is:
n = m / M
- n is the amount of substance, in moles (mol).
- m is the sample mass, in grams (g).
- M is the substance’s molar mass, in grams per mole (g/mol).
Divide the mass by the molar mass. The units cancel as g ÷ (g/mol) = mol. For example, a substance with a molar mass of 10 g/mol has 1 mol in a 10 g sample. This calculator treats the mass and molar mass as inputs; the molar mass must correspond to the substance and formula being considered.
Worked Example
Use the calculator’s default values: mass m = 10 g and molar mass M = 58.44 g/mol.
- Write the formula: n = m / M.
- Substitute the values: n = 10 g / 58.44 g/mol.
- Calculate: n = 0.1711157 mol.
- Round the headline result to four decimal places: 0.1711 mol.
The sample therefore contains 0.1711 mol of the substance, based on the entered molar mass. The displayed result is rounded; calculations using the unrounded value may differ slightly at later steps.
Assumptions
- The sample is a single, identified substance with the molar mass entered in the calculator.
- The entered mass is the mass of that substance, not the mass of a container or an entire mixture.
- The result is a mathematical amount of substance; it does not account for purity, moisture, impurities, or measurement uncertainty.
What You’ll Need
- The sample mass in grams. If it is given in another unit, convert it to grams first: 1 kg = 1,000 g and 1 mg = 0.001 g.
- The correct molar mass in g/mol, found from a reliable reference or calculated from the substance’s chemical formula and atomic weights.
- A calculator, or this page’s calculator, for the division.
Step-by-Step
- Identify the substance. Confirm its chemical formula and, if relevant, whether it is a hydrate, salt, or a particular form of a compound. Different forms can have different molar masses. Do not use a molar mass for a similar-sounding substance.
- Find the molar mass. For a pure compound, add the atomic masses of all atoms in its formula. For example, water, H2O, has a molar mass of about 2 × 1.008 + 15.999 = 18.015 g/mol. Use the formula’s subscripts to count each atom, and use atomic weights consistently.
- Measure or obtain the sample mass. Use the mass of the substance alone. If a container was weighed with the sample, subtract the empty container’s mass. Record the unit and avoid mixing grams with milligrams or kilograms.
- Convert mass to grams. The formula on this page expects grams. Convert before dividing: for example, 250 mg = 0.250 g. Keep enough digits for the precision of the original measurement.
- Divide mass by molar mass. Substitute the values into n = m / M. If the sample is 5.00 g and its molar mass is 100.0 g/mol, then n = 5.00 / 100.0 = 0.0500 mol.
- Check the units and result. Grams divided by grams per mole gives moles. A smaller sample mass should produce fewer moles; a larger molar mass should produce fewer moles for the same mass.
- Round appropriately. Report the result with precision supported by the measurements and molar mass. Do not add digits just because a calculator displays them. Retain extra digits during intermediate calculations and round at the end.
This calculation is useful when a problem gives mass but asks for chemical amount, or when converting a weighed quantity into a quantity for a stoichiometry calculation. Bench work should follow your lab method, the safety data sheet (SDS), and your supervisor.
Common Mistakes
- Multiplying instead of dividing. To get moles from grams, divide by g/mol. Multiplying mass by molar mass does not give moles.
- Using the wrong molar mass. Check the complete formula, including parentheses, subscripts, waters of hydration, and the form specified by the problem.
- Leaving the mass in another unit. Entering 250 as grams when the sample is 250 mg makes the answer 1,000 times too large.
- Confusing molar mass with molecular mass. Molar mass is expressed in g/mol. Relative molecular mass is a dimensionless ratio; its numerical value may be similar, but the units and meaning differ.
- Ignoring mixtures or purity. The simple formula assumes the entered mass is the mass of the substance of interest. For a mixture or impure material, the amount of the target component cannot be determined from total mass alone without additional composition or purity information.
- Rounding too early. Keep unrounded values through the calculation, then round the final answer to a sensible number of significant figures.
Tips
- Write the units alongside every value before calculating. This makes unit errors easier to spot.
- For an element, use its atomic molar mass; for a compound, sum the atomic masses according to the chemical formula.
- Use a consistent atomic-weight convention if precision matters. Standard atomic weights may be reported with different rounding in different references.
- Keep the unrounded mole value for any later stoichiometry work, and round only the final reported answer.
- As a quick check, compare the mass with the molar mass: a mass below one molar mass gives less than one mole; a mass above it gives more than one mole.
Troubleshooting
The answer seems much too large or small: Check whether the mass was entered in grams, not milligrams or kilograms, and verify the molar mass units are g/mol. Recheck the division and the chemical formula.
The result is zero: The entered mass may be zero or too small to display at the selected decimal precision. Increase the displayed precision if available, or express the value in scientific notation while preserving its units.
The calculator rejects the molar mass: It requires a positive value. Confirm that you entered a number in g/mol, not a formula, a mass, or a value in kg/mol.
You have a solution or mixture rather than a pure sample: Total solution mass alone is not enough to calculate moles of a dissolved substance. You also need the amount or concentration of that component, or other information that establishes its share of the sample.
Your answer differs from a textbook answer: Compare the molar mass and rounding used. Check whether the textbook specifies a hydrate, isotope composition, purity correction, or a different atomic-weight precision.
Frequently Asked Questions
What is the formula for converting grams to moles?
Divide mass in grams by molar mass in g/mol: n = m / M.
How do I find molar mass?
Add the atomic masses of every atom in the substance’s chemical formula, accounting for subscripts and parentheses. Express the total in g/mol.
Can I convert grams to moles without knowing the substance?
No. You need its molar mass, which depends on the identity and formula of the substance.
How many moles are in one gram?
It depends on the substance. One gram contains 1 / M moles, where M is its molar mass in g/mol.
Should I round the answer?
Yes, to reflect the precision of the input measurements and molar mass. Keep extra digits during working and round the final result.
Does this formula work for a mixture?
Only if you know the mass of the specific component and its molar mass. A mixture’s total mass alone does not reveal the moles of each substance.
Related
Formula used
in m | Sample mass | g | 10 | 0 in mm | Molar mass | g/mol | 58.44 | 0.001 out n | Amount of substance | mol | m / mm | 4 out mmg | Molar mass | g/mol | mm | 3
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
- Molecules to Grams Calculator: Convert with Molar Mass18.0150 g
- How Many Protons Are in Potassium (K)?19 protons
- Moles of Electrons: Formula and Calculator
- Molecules to Liters Calculator: Convert Using Molarity0.1000 L
- How to Calculate mL to Moles: Formula and Calculator0.1250 mol
- Free Energy Change Calculation: ΔG Formula and Example-24.907 kJ/mol