molecalculator

Moles & Molar Mass

Moles Formula: Calculate Amount from Mass or Particles

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

Amount from mass 1.0000 mol
Amount from particles
1.0000 mol
Result, rounded to 4 decimal places
Sample mass
18.015 g
Set in the form below
Molar mass
18.015 g/mol
Set in the form below
You enter
Sample mass (g), Molar mass (g/mol), Number of particles (particles)
You get
Amount from mass (mol), Amount from particles (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.

Use the moles calculator to convert a sample’s mass into amount of substance, or convert a known number of particles into moles. Enter the values you have and, for a mass calculation, the substance’s molar mass; the calculator returns moles (mol) and a useful equivalent in millimoles.

Formula

The standard mass formula is n = m / M. Here, n is the amount of substance in moles (mol), m is sample mass in grams (g), and M is molar mass in grams per mole (g/mol). Dividing grams by grams per mole leaves moles.

For a particle count, use n = N / NA, where N is the number of specified entities (such as atoms, molecules, or formula units) and NA is the Avogadro constant, exactly 6.02214076 × 1023 entities/mol. The calculator’s first result is the amount calculated from mass; its second result is the amount calculated from the particle count. Use the result that matches the information you entered.

The molar-mass input is specific to the substance and must be in g/mol. For water, for example, calculate it from the formula and atomic weights: H2O has 2(1.008) + 15.999 = 18.015 g/mol. For compounds, add the atomic masses for every atom shown in the chemical formula, including subscripts. If the molar mass is already provided by a reliable course reference or data table, enter that value.

Worked Example

The calculator defaults use a sample mass of 18.015 g, a molar mass of 18.015 g/mol, and a particle count of 6.02214076 × 1023.

  1. Calculate amount from mass: n = m / M.
  2. Substitute the default values: n = 18.015 g / 18.015 g/mol = 1.0000 mol.
  3. Calculate amount from particles: n = N / NA = (6.02214076 × 1023 particles) / (6.02214076 × 1023 particles/mol) = 1.0000 mol.

Both default calculations give 1.0000 mol. The two results are independent: the first uses mass and molar mass, while the second uses particle count.

Assumptions

  • The mass and molar mass refer to the same pure substance, and mass is entered in grams.
  • The particle count refers to a clearly identified entity, such as molecules or atoms; it is not mixed between entity types.
  • The calculator uses the exact SI Avogadro constant. It does not account for impurities, hydration, or uncertainty in a measured mass or molar mass.

What You’ll Need

  • For a mass calculation: the sample mass in grams and the substance’s molar mass in g/mol.
  • For a particle calculation: the number of entities and a clear definition of what each entity is.
  • A calculator or the calculator fields above. If working in a lab, follow your lab method, the safety data sheet (SDS) and your supervisor.

Step-by-Step

  1. Choose the information you have. If you know a sample’s mass and its chemical identity, use the mass formula. If you already know the number of particles, use the particle formula. You do not need to use both.
  2. Find the molar mass when using mass. Use the chemical formula to count atoms, then add their atomic masses. For carbon dioxide, CO2, the calculation is 12.011 + 2(15.999) = 44.009 g/mol. Use the same units as the calculator: g/mol.
  3. Put mass and molar mass in compatible units. The calculator expects grams and g/mol. Convert milligrams to grams by dividing by 1,000; convert kilograms to grams by multiplying by 1,000. Do not enter a mass in milligrams as though it were grams.
  4. Enter the values. Type the sample mass in “Sample mass” and the molar mass in “Molar mass.” For a particle-based calculation, enter the number of particles in “Number of particles.” That field should contain a count, not a mass or a concentration.
  5. Read the matching result. “Amount from mass” is the mass divided by molar mass. “Amount from particles” is the entity count divided by Avogadro’s constant. Check which inputs you used before copying a result.
  6. Keep sensible precision. Report no more significant figures than your measurements support. A calculator can display several decimal places, but those digits are not necessarily justified by the precision of a balance reading or reference molar mass.
  7. Check the scale. As a quick check, a mass equal to the molar mass represents 1 mol. A particle count equal to Avogadro’s constant also represents 1 mol. If your result is far from what you expect, inspect units, formula subscripts, and the selected particle type.

Common Mistakes

  • Reversing the division: the mass formula is mass divided by molar mass, not molar mass divided by mass.
  • Mixing units: grams divided by g/mol gives moles. If the mass is in mg or kg, convert it first or the answer will be off by a factor of 1,000.
  • Using the wrong molar mass: water, hydrogen peroxide, and other compounds can have similar-looking formulas but different molar masses. Count every atom and subscript.
  • Confusing entities: one mole of atoms is not the same count as one mole of molecules if each molecule contains multiple atoms. Identify whether the given count means atoms, molecules, ions, or formula units.
  • Rounding too early: retain useful digits while adding atomic masses and divide only after obtaining the molar mass. Round the final reported answer to match the data.
  • Assuming a real sample is pure: the formula gives the amount for the mass and molar mass entered. Impurities, water content, or a mixture can make that result differ from the actual amount of the target substance.

Tips

  • Write the units beside each value before calculating. They provide a quick way to catch a unit mismatch.
  • For a chemical formula, multiply each element’s atomic mass by its subscript. Parentheses apply to everything inside them; for example, in Ca(OH)2, there are two O atoms and two H atoms.
  • Use scientific notation for very large particle counts. For example, 3.011 × 1023 entities is half of Avogadro’s constant, or 0.5 mol.
  • For a measured sample, the mass formula applies to the portion of the sample represented by that measurement. If only a fraction of a mixture is the substance of interest, account for its composition separately.

Troubleshooting

  • The result is 1,000 times too large or too small: check whether the mass was entered in mg or kg instead of g. Convert before entering it.
  • The amount seems implausible: verify the molar mass and chemical formula. A missing subscript or an omitted atom can significantly change the answer.
  • The particle result is unexpectedly tiny: enter the full particle count, including powers of ten. Check that the input is not a concentration, such as particles per litre.
  • The calculator rejects a value: use a nonnegative mass or particle count. A negative amount of material is not physically meaningful for these calculations.
  • You have a solution concentration instead of a mass or count: this calculator does not directly find moles from concentration alone. You also need the solution volume; for molarity, use n = C × V with volume in litres.

Frequently Asked Questions

What is the formula for finding moles?
For a known mass, use n = m / M. For a known particle count, use n = N / NA.

How do I find moles from grams?
Divide the mass in grams by the substance’s molar mass in g/mol. For example, 10.0 g of a substance with a molar mass of 20.0 g/mol is 0.500 mol.

How do I calculate molar mass?
Add the atomic masses of all atoms in the chemical formula, multiplying each by its subscript. The result is in g/mol when standard atomic weights are used.

How many particles are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities. State whether the entities are atoms, molecules, ions, or another defined unit.

Can I find moles without molar mass?
Yes, if you know the number of entities and divide it by Avogadro’s constant. If you only know mass, you need the substance’s molar mass.

Is a mole the same as a molecule?
No. A mole is an amount containing Avogadro’s number of entities. A molecule is one kind of entity; one mole of molecules contains Avogadro’s number of molecules.

Related

Formula used
in m | Sample mass | g | 18.015 | 0
in mm | Molar mass | g/mol | 18.015 | 0.001
in n | Number of particles | particles | 6.02214076e23 | 0
out mol | Amount from mass | mol | m / mm | 4
out mmol | Amount from particles | mol | n / 6.02214076e23 | 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 →