molecalculator

Moles & Molar Mass

Moles Formula: Calculate the Amount of Substance

Calculator No. 01-2901 · 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.

The formula for the number of moles is n = m / M: divide a sample’s mass by its molar mass. Enter the mass in grams and molar mass in grams per mole to calculate the amount of substance in moles; the calculator also estimates how many particles that amount contains.

Formula

The standard mass-based formula is n = m / M, where 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. Here, N is the number of particles and NA is Avogadro’s constant, exactly 6.02214076 × 1023 mol−1. The particle can mean atoms, molecules, ions, or another explicitly defined entity.

Worked Example

For the calculator’s default inputs, the sample mass is 18.015 g and the molar mass is 18.015 g/mol. The mass-based calculation is:

n = m / M = 18.015 g / (18.015 g/mol) = 1.0000 mol

Then the particle count is:

N = n × NA = 1.0000 mol × 6.02214076 × 1023 mol−1 = 6.022 × 1023 particles

The example uses water’s molar mass, 18.015 g/mol, based on the conventional atomic weights H = 1.008 and O = 15.999 g/mol: 2(1.008) + 15.999 = 18.015 g/mol. The particle result refers to water molecules. Displayed digits are rounded; the calculation uses the entered values and exact Avogadro constant.

Assumptions

  • The mass is the mass of the substance itself, not the total mass of a mixture or container.
  • The molar mass describes the formula unit or molecule being counted and is entered in g/mol.
  • The particle count assumes each mole corresponds to the chosen type of entity; identify whether you mean molecules, atoms, or ions.
  • No reaction, purity correction, or uncertainty correction is applied.

What a Mole Measures

A mole is the SI unit for amount of substance. It gives a convenient way to count extremely large numbers of small entities: one mole contains exactly 6.02214076 × 1023 specified entities. The number is fixed, but the mass of one mole depends on what the entities are.

For example, one mole of water molecules and one mole of carbon atoms contain the same number of entities, but they do not have the same mass. Their molar masses differ because water molecules and carbon atoms have different masses. The mole is therefore a counting unit, while grams measure mass.

In chemical equations, coefficients express ratios of moles, not necessarily ratios of grams. Converting a measured mass to moles lets you compare a sample with a reaction’s stoichiometric ratios. For example, a balanced equation can show how many moles of one reactant correspond to a given number of moles of another.

How to Find Molar Mass

For a pure compound, calculate its molar mass by adding the atomic masses of every atom in its chemical formula. Use the appropriate standard atomic weights and multiply each element’s atomic weight by its subscript. Parentheses and hydrate notation must also be counted correctly.

For water, H2O, the calculation is 2 × 1.008 + 15.999 = 18.015 g/mol. For carbon dioxide, CO2, it is 12.011 + 2 × 15.999 = 44.009 g/mol. These examples use conventional abridged standard atomic weights; values may differ slightly depending on the reference and the substance’s isotopic composition.

For an element that occurs naturally as a mixture of isotopes, its standard atomic weight is generally an abundance-weighted value. A specific isotope instead has its own isotope mass. Make sure the value you enter matches the chemical entity and convention used in the problem.

Choosing a Formula for the Given Data

The mass formula is not the only way to calculate moles. Choose the relationship that fits what is known:

  • Mass and molar mass: n = m / M. This is the formula used by the calculator.
  • Number of particles: n = N / NA, where N is the counted number of entities.
  • Solution concentration: n = cV, where concentration c is in mol/L and solution volume V is in L. Convert millilitres to litres by dividing by 1000.
  • Gas data: for an ideal gas, n = PV / (RT), using pressure P, volume V, absolute temperature T, and a consistent value and unit system for R.

These formulas express the same quantity through different measurements, but their assumptions and units matter. In the gas formula, for example, temperature must be in kelvin and the pressure, volume, and gas constant must use compatible units. Real gases can depart from ideal behaviour, especially under conditions where the ideal-gas approximation is poor.

Common Errors and Limits

  • Reversing the division: divide mass by molar mass, not molar mass by mass. A result in moles has units g ÷ (g/mol).
  • Mixing units: if mass is in milligrams, convert it to grams before using a molar mass in g/mol; 1 g = 1000 mg.
  • Using the wrong formula mass: distinguish a molecular formula from an empirical formula, and account for waters of hydration or counterions when they are part of the stated substance.
  • Confusing particles: one mole of a molecular compound counts molecules. To find the number of atoms of a particular element, also account for how many such atoms each molecule contains.
  • Rounding too early: keep guard digits during intermediate calculations and round the final answer to a precision supported by the measurements.

The simple mass calculation assumes the entered mass belongs to the stated substance. If a sample is a solution, mixture, or impure solid, its total measured mass is not automatically the mass of the desired chemical. A purity or composition correction may be needed, and it must come from reliable information about that sample. Likewise, calculated digits do not imply that a balance measurement or molar mass is exact.

This calculator is for general chemistry and study arithmetic. For bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.

Frequently Asked Questions

What is the formula for the number of moles?
When mass and molar mass are known, use n = m / M. Divide the mass in grams by the molar mass in grams per mole.

How do I calculate moles from grams?
Find the substance’s molar mass, then divide the sample’s mass in grams by that value. For instance, 9.0075 g of water is 9.0075 / 18.015 = 0.5000 mol.

How many particles are in one mole?
Exactly 6.02214076 × 1023 specified entities are in one mole. State which entity is being counted, such as molecules, atoms, or ions.

Can moles be calculated from molarity and volume?
Yes. Use n = cV, with concentration in mol/L and volume in litres. If the volume is in millilitres, divide by 1000 before multiplying.

Are moles and molar mass the same thing?
No. Moles measure an amount of substance; molar mass is the mass of one mole of that substance, usually expressed in g/mol. They are related by n = m / M.

Related

Formula used
in m | Sample mass | g | 18.015 | 0
in mm | Molar mass | g/mol | 18.015 | 0.001
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 →