molecalculator

Reactions & Stoichiometry

Moles Calculator: Equation, Formula, and Examples

Calculator No. 05-0172 · Updated · Formula and assumptions shown below

Amount of substance 0.9992 mol
Number of particles
6.017 × 1023 particles
Result, rounded to 3 decimal places
Sample mass
18 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 · 3 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.

The equation for calculating moles from a sample’s mass is n = m ÷ M, where n is amount in moles, m is mass in grams, and M is molar mass in grams per mole. Enter a compound’s mass and molar mass in the calculator below to find its amount in moles and number of particles.

Formula

The mass-based equation is:

n = m / M

  • n = amount of substance, in moles (mol).
  • m = sample mass, in grams (g).
  • M = molar mass, in grams per mole (g/mol).

The units cancel as they should: g ÷ (g/mol) = mol. The calculator also estimates the number of particles using N = n × NA, where N is a count of specified entities and the exact Avogadro constant, NA, is 6.02214076 × 1023 mol−1. For a compound, “particles” usually means molecules; for an ionic substance, it may mean formula units. The equation alone does not change one kind of entity into another.

Worked Example

For the calculator’s default values, a sample has a mass of 18 g and a molar mass of 18.015 g/mol. These are approximately the values for water, H2O, using standard atomic weights H = 1.008 and O = 15.999 g/mol.

  1. Calculate the molar mass: 2(1.008) + 15.999 = 18.015 g/mol.
  2. Divide mass by molar mass: n = 18 g ÷ 18.015 g/mol = 0.99917 mol (rounded to four decimal places).
  3. Calculate the number of molecules: N = 0.99917 mol × 6.02214076 × 1023 mol−1 ≈ 6.0171 × 1023 molecules.

The main answer is 0.9992 mol. The particle count is an estimate based on the entered mass and molar mass; it is not a practical way to count individual molecules.

Assumptions

  • The entered mass is the mass of the substance whose amount is being calculated, not the mass of a container or an unaccounted-for mixture.
  • The molar mass corresponds to the substance’s actual chemical formula and form.
  • The particle-count output refers to the entities appropriate to the substance, such as molecules or formula units.
  • No reaction, purity correction, or composition adjustment is included. Enter a corrected mass or molar mass separately if the problem requires one.

What a Mole Measures

A mole is the SI unit for amount of substance. It represents exactly 6.02214076 × 1023 specified entities. Those entities can be atoms, molecules, ions, electrons, or other defined particles. Because the count in one mole is enormous, chemists commonly work with moles as a bridge between the microscopic number of particles and quantities that can be measured in the laboratory.

Moles are not the same as grams. A mole always contains the same number of specified entities, but its mass depends on what those entities are. One mole of water has a mass close to 18.015 g, while one mole of sodium chloride has a much larger mass because its formula units are heavier.

Choosing the Right Moles Equation

Mass is only one route to an amount in moles. Choose the equation that matches the information given in the problem:

  • Mass and molar mass: n = m/M. Use this for a weighed sample when its molar mass is known.
  • Solution concentration and volume: n = cV, where concentration c is in mol/L and volume V is in L. Convert millilitres to litres by dividing by 1000.
  • Number of particles: n = N/NA. Divide the particle count by Avogadro’s constant.
  • Ideal gas data: n = PV/(RT), with pressure, volume, and absolute temperature in units consistent with the chosen gas constant. This assumes ideal-gas behavior.

These equations calculate the same quantity from different kinds of measurements. They are not interchangeable unless the necessary data and assumptions are available. For example, concentration alone does not determine moles: the solution volume is also needed.

Finding Molar Mass and Avoiding Errors

Find a compound’s molar mass by adding the atomic masses for every atom in its chemical formula. Subscripts apply to the element immediately before them, and parentheses multiply all atoms inside them. For example, the formula Ca(OH)2 contains one calcium atom, two oxygen atoms, and two hydrogen atoms. Its molar mass is approximately 40.078 + 2(15.999 + 1.008) = 74.092 g/mol.

  • Check units before dividing. If mass is in milligrams, convert to grams by dividing by 1000, or convert molar mass to matching units. Do not divide a value in milligrams directly by a value in g/mol.
  • Use the correct formula and chemical form. Hydrates, salts, and compounds with different charge or composition can have different molar masses.
  • Keep precision through the calculation. Round the final answer to match the precision justified by the measurements. Premature rounding can shift results in multi-step stoichiometry.
  • Check the result’s scale. A mass in grams divided by a molar mass in g/mol should yield a plausible number of moles. A tiny sample can still contain many particles.

If the sample is not pure, the simple equation gives the moles represented by the total entered mass as though all of it were the stated substance. For a known mass fraction, first multiply the sample mass by that fraction to obtain the substance’s mass. The calculator does not determine purity or identify an unknown material.

Frequently Asked Questions

What is the simplest equation for moles?
For a known mass and molar mass, use n = m/M. Divide the mass in grams by the molar mass in grams per mole.

How do I calculate moles from grams?
Look up or calculate the substance’s molar mass, then divide the sample’s mass in grams by that value. For instance, 10.0 g of a substance with molar mass 20.0 g/mol is 0.500 mol.

How do I calculate moles from molarity?
Multiply molarity in mol/L by solution volume in L: n = cV. Convert volume from mL to L by dividing by 1000 before multiplying.

How many particles are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities, according to the defined Avogadro constant. State whether the entities are atoms, molecules, ions, or another kind of particle.

Can moles be calculated without molar mass?
Yes, if other suitable information is available, such as particle count, solution concentration and volume, or gas pressure, volume, and temperature. With mass alone, molar mass or equivalent composition information is necessary.

Is a mole the same as a molecule?
No. A mole is an amount containing a fixed number of entities; a molecule is one possible entity. One mole of a molecular substance contains Avogadro’s number of its molecules.

Related

Formula used
in m | Sample mass | g | 18 | 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 | 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

The whole Reactions & Stoichiometry section →