molecalculator

Moles & Molar Mass

Moles from Grams: Formula and Worked Example

Calculator No. 01-0526 · Updated · Formula and assumptions shown below

Amount of substance 0.1711 mol
Mass
10 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass (g), Molar mass (g/mol)
You get
Amount of substance (mol)
Rounding
4 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This calculator converts a sample’s mass in grams into the amount of substance in moles. Enter the mass and the substance’s molar mass; the result is the number of moles, calculated using the standard mass-to-moles formula.

Formula

Divide mass by molar mass:

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).

The grams cancel: g ÷ (g/mol) = mol. For a pure compound, calculate its molar mass by adding the standard atomic weights of all atoms in its chemical formula. For example, water, H2O, has a molar mass of 2(1.008) + 15.999 = 18.015 g/mol. The calculator treats molar mass as an input because it depends on the substance.

Worked Example

Find the amount of sodium chloride (NaCl) in 10 g. The calculator’s default molar mass is 58.44 g/mol, based on Na 22.990 and Cl 35.45.

  1. Write the formula: n = m / M.
  2. Substitute the defaults: n = 10 g / 58.44 g/mol.
  3. Calculate: n = 0.1711157 mol.
  4. Rounded to the calculator’s four decimal places: 0.1711 mol.

This is the amount of NaCl represented by the given mass. It does not mean the sample contains only 0.1711 individual particles; a mole is a very large counting unit.

Assumptions

  • The entered mass is for the substance whose molar mass you enter.
  • The sample is treated as pure, with a known and applicable molar mass.
  • Mass and molar mass use compatible units: grams and grams per mole.

What You’ll Need

  • The mass of the sample, in grams.
  • The correct molar mass for the substance, in g/mol. Find it from a reliable periodic table and the substance’s chemical formula, or use a stated value from your course or lab method.
  • A calculator, or the calculator above.

If your mass is not in grams, convert it before using the formula. For example, divide milligrams by 1000 to get grams, or multiply kilograms by 1000 to get grams. Keep track of whether the stated substance is an element, a molecule, an ionic compound, or a hydrate: these can have different formula units and molar masses.

Step-by-Step

  1. Identify the substance. Write down its name and chemical formula. Check that the formula matches the material described in the problem or on its label. For instance, anhydrous copper sulfate and hydrated copper sulfate do not have the same molar mass.
  2. Record the mass in grams. Use the mass of the sample itself, not the mass of its container. If the mass is provided in another unit, convert it to grams first. Do not round during a unit conversion unless instructed.
  3. Find the molar mass. For a chemical formula, count each type of atom and multiply its count by its standard atomic weight. Add the contributions to obtain g/mol. Parentheses multiply the atoms inside them, and a dot in a hydrate formula indicates additional water molecules. Use the appropriate formula and convention for the actual substance.
  4. Set up the division. Write moles = mass in grams ÷ molar mass in grams per mole. Put the mass on top and the molar mass below it. This arrangement gives the desired unit of mol.
  5. Calculate the result. Divide the mass by the molar mass. For example, if a 5.00 g sample has a molar mass of 100.0 g/mol, then n = 5.00 / 100.0 = 0.0500 mol.
  6. Round sensibly and label the answer. Follow the significant-figure instructions for your assignment or method. Include “mol” in the final result. Retain extra digits in intermediate calculations, then round once at the end.
  7. Check whether the answer is plausible. A mass smaller than the molar mass corresponds to less than one mole; a mass equal to the molar mass corresponds to one mole. A larger mass corresponds to more than one mole. This quick check can reveal a flipped division or unit error.

If you are doing bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.

Common Mistakes

  • Multiplying instead of dividing: Moles are mass divided by molar mass, not mass multiplied by molar mass.
  • Mixing units: A mass in milligrams cannot be divided directly by a molar mass in g/mol. Convert the mass to grams first, or convert both quantities consistently.
  • Using the wrong formula or molar mass: A subscript, charge, hydrate, or molecular form can change the molar mass. Count atoms carefully.
  • Confusing atomic mass with molar mass: The numerical values often match, but atomic mass is expressed in atomic mass units per particle; molar mass is expressed in g/mol.
  • Rounding too early: Early rounding can shift the final answer, especially in multi-step calculations. Keep guard digits until the last step.
  • Assuming a weighed mixture is pure: The simple formula gives the moles of the named substance only when the mass represents that substance. Impurities or a stated purity require additional information.

Tips

  • Write units beside every value before calculating. The cancellation of grams is a useful way to catch an incorrect setup.
  • For a compound, make a small atom-count table before adding atomic weights. This helps prevent missing a subscript or multiplying a parenthesized group incorrectly.
  • Keep the calculator’s full result on screen until you have decided how many significant figures the question requires.
  • Use a periodic table’s stated atomic weights and follow any course-specific rounding convention. Different displayed precision can cause small differences in the final digits.
  • Remember the reverse check: multiplying calculated moles by molar mass should recover the original mass, apart from rounding.

Troubleshooting

  • The answer seems far too large or small: Check that the mass is in grams and molar mass is in g/mol. Then confirm you divided mass by molar mass rather than the reverse.
  • The calculator rejects a value: Mass cannot be negative, and molar mass must be positive. Enter a valid positive value and use a decimal point if needed.
  • Your answer differs slightly from a textbook: Compare the molar mass used, including atomic-weight precision, and compare rounding rules. Recalculate without rounding intermediate values.
  • You cannot determine the molar mass: Confirm the full chemical formula, including waters of hydration and parentheses. If the material is a mixture or its composition is unknown, mass alone is not enough to determine its moles.
  • The problem gives percent purity: First determine the mass of the pure substance using the stated purity fraction, then divide that pure-substance mass by its molar mass. Do not apply this adjustment unless the problem provides a purity value.

Frequently Asked Questions

What is the formula for finding moles from grams?
Divide the mass in grams by the molar mass in grams per mole: n = m / M.

How do I find molar mass?
Add the atomic weights for every atom in the chemical formula, accounting for subscripts and groups. The result is in g/mol.

Can I use milligrams instead of grams?
Yes, after converting: 1000 mg = 1 g. Convert the mass to grams before dividing by a molar mass in g/mol.

Can grams alone tell me the number of moles?
No. You also need the substance’s molar mass. The same mass of two different substances can represent different amounts in moles.

Can moles be less than one?
Yes. A result such as 0.25 mol simply means one quarter of a mole of the specified substance.

Should I round the molar mass?
Use the precision required by the question or method. Keep extra digits during the calculation and round the final answer appropriately.

Related

Formula used
in m | Mass | g | 10 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
out n | Amount of substance | mol | m / mm | 4

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

The whole Moles & Molar Mass section →