molecalculator

Moles & Molar Mass

Moles in Chemistry: Formula and Calculator

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

Amount of substance 1.0000 mol
Number of particles
6.022 × 1023 particles
Result, rounded to a whole number
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)
You get
Amount of substance (mol), Number of particles (particles)
Rounding
4 dp · 0 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 finds the amount of substance, or number of moles, from a sample’s mass and molar mass. Enter the mass in grams and molar mass in grams per mole to get the amount in moles, plus the equivalent number of particles.

Formula

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

To convert moles to a count of specified particles, use N = n × NA, where N is the number of particles and NA is the Avogadro constant, exactly 6.02214076 × 1023 mol−1. Specify what counts as a particle: it may be an atom, molecule, ion, or formula unit, depending on the substance and question.

Worked Example

The calculator’s defaults represent 18.015 g of water, whose molar mass is 18.015 g/mol.

  1. Use the mass formula: n = m / M.
  2. Substitute the defaults: n = 18.015 g / 18.015 g/mol = 1.0000 mol.
  3. For the particle count, multiply by Avogadro’s constant: N = 1.0000 mol × 6.02214076 × 1023 mol−1 = 6.022 × 1023 particles.

The first result is 1.0000 mol; the particle count is displayed to zero decimal places in the calculator, which may appear as a large whole number.

Assumptions

  • The sample’s stated mass is the mass of the substance being counted, not the mass of a container or an uncorrected mixture.
  • The molar mass matches the substance’s chemical formula and the units are g/mol.
  • The particle count treats each mole as containing exactly 6.02214076 × 1023 specified entities.

What a Mole Measures

A mole is the SI unit for amount of substance. It provides a link between the microscopic scale of atoms and molecules and measurable laboratory quantities such as mass. One mole contains exactly 6.02214076 × 1023 specified entities. The value is exact by definition; it is not an experimentally estimated constant.

The word “entities” matters. A mole of water means a mole of H2O molecules. A mole of sodium chloride is conventionally described as a mole of NaCl formula units, not intact isolated molecules in the solid. One mole of NaCl formula units corresponds to one mole of sodium ions and one mole of chloride ions after complete dissociation. The amount of each kind of particle depends on the chemical formula and, for solutions, what dissociation or reaction is being considered.

Choosing the Right Moles Formula

The mass formula is useful when you know the sample’s mass and molar mass. Other problems supply a different measured quantity, so choose a relationship that matches the information given:

  • Mass: n = m / M, with mass and molar mass expressed in compatible units.
  • Number of particles: n = N / NA, where N is the count of atoms, molecules, ions, or other specified entities.
  • Solution concentration: n = cV, where c is molar concentration in mol/L and V is solution volume in L.
  • Ideal gas: n = PV / (RT), where pressure, volume, gas constant, and absolute temperature must use mutually consistent units. This relation assumes ideal-gas behavior.

These are not interchangeable shortcuts: each requires different known quantities and assumptions. In a reaction problem, the mass formula can find the starting moles, but a balanced chemical equation is needed to relate reactants and products.

Finding Molar Mass and Reading the Result

Molar mass is the mass of one mole of a substance. For a molecular formula, calculate it by adding the standard atomic weight of each element multiplied by its subscript. For water, H2O, using H = 1.008 and O = 15.999 g/mol gives M = 2 × 1.008 + 15.999 = 18.015 g/mol. For a compound with parentheses, multiply every atom inside the parentheses by the outside subscript before summing.

After calculating, check whether the answer makes physical sense. If the sample mass is about the same numerical size as its molar mass in g/mol, the amount is about one mole. A result of 0.5 mol means half a mole of the specified entities; it does not mean half a gram. Keep enough digits during intermediate calculations, then round the final answer to a precision justified by the measurements. A calculator may show more digits than the balance or supplied data support.

Common Errors and Limits

  • Mixing units: If mass is in milligrams, convert it to grams before using a molar mass in g/mol: 1,000 mg = 1 g. Alternatively, convert the molar mass to matching units.
  • Using the wrong molar mass: Check every subscript, parenthesis, and hydrate dot. A hydrate’s water molecules contribute to the formula mass.
  • Confusing atoms and molecules: One mole of CO2 contains one mole of CO2 molecules, but three moles of atoms in total: one mole of carbon atoms and two moles of oxygen atoms.
  • Treating a mixture as pure: The mass formula gives moles of the named substance only if the mass is attributable to that substance. For an impure sample, use its composition or purity information.
  • Rounding too early: Carry extra digits through the calculation and round once at the end. Reported precision should reflect the input measurements.

The calculation does not by itself determine how much substance reacts, whether a reaction goes to completion, or how much product can be isolated. Those questions require additional information, such as a balanced equation, limiting-reactant analysis, purity, or reaction yield. For bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.

Frequently Asked Questions

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

How many particles are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities, such as atoms, molecules, ions, or formula units.

Can moles be calculated from molarity and volume?
Yes. Use n = cV, with concentration in mol/L and volume in L. Convert milliliters to liters by dividing by 1,000.

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

Why do I need molar mass?
Molar mass converts a measurable mass into an amount in moles. Its value depends on the chemical formula and is usually calculated from the elements’ standard atomic weights.

Related

Formula used
in m | Sample mass | g | 18.015 | 0
in mm | Molar mass | g/mol | 18.015 | 0
out n | Amount of substance | mol | m / mm | 4
out p | Number of particles | particles | n * 6.02214076e23 | 0

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 →