ThisCalculator

Chemistry

Moles Calculation: Formulas and Worked Examples

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Moles Calculation: Formulas and Worked Examples

Calculate the amount of substance in moles from a sample’s mass and molar mass, or convert between moles and particles using Avogadro’s constant. Enter mass and molar mass to get moles, with particle count and a second mass conversion available as supporting results.

Formula

The standard mass-based calculation is:

n = m / M

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

One mole contains exactly 6.02214076 × 1023 specified entities. This is the Avogadro constant, so the particle relationship is N = n × NA, where N is the number of entities and NA is Avogadro’s constant. The calculator’s particle result applies that relationship to the moles calculated from the mass inputs. The mass result reverses the first formula: m = n × M.

For the particle conversion, “entities” may mean atoms, molecules, ions, or formula units. The kind of entity must be stated clearly: one mole of water contains one mole of water molecules, not one mole of hydrogen atoms. The supplied particle-count input is useful for the reverse conversion: divide a known count by Avogadro’s constant to find moles.

Worked Example

Using the calculator’s default inputs, the sample mass is 18 g and its molar mass is 18 g/mol.

  1. Apply the formula: n = m / M.
  2. Substitute the values: n = 18 g / 18 g/mol.
  3. Cancel grams and divide: n = 1 mol.
  4. Calculate particles: 1 mol × 6.02214076 × 1023 particles/mol = 6.02214076 × 1023 particles.
  5. Check the mass conversion: 1 mol × 18 g/mol = 18 g.

The displayed results are 1.000 mol, 602214076000000000000000 particles, and 18.000 g. The particle count is a very large integer; scientific notation is usually easier to read and does not imply that a real sample’s measured composition is exact.

What a Mole Measures

A mole is the SI unit for amount of substance. It counts specified entities in the same way that a dozen counts 12 items, but a mole counts about 602 sextillion entities. The entities can be microscopic particles, so the mole connects atomic-scale counts with quantities that can be weighed and measured in a laboratory.

The current definition fixes the Avogadro constant at exactly 6.02214076 × 1023 mol−1. A mole is not a unit of mass or volume by itself. One mole of different substances can have different masses, and its volume depends on the substance and conditions. For example, a mole of water molecules and a mole of carbon dioxide molecules contain the same number of molecules, but their molar masses differ.

Finding the Molar Mass

Molar mass is the mass of one mole of a substance. For a pure element, its value in grams per mole is numerically close to the element’s relative atomic mass on the periodic table. For a compound, add the atomic masses of all atoms in its chemical formula, including subscripts.

  • Water, H2O: 2 hydrogen atoms and 1 oxygen atom give a molar mass of about 18.015 g/mol.
  • Carbon dioxide, CO2: 1 carbon atom and 2 oxygen atoms give about 44.01 g/mol.
  • Sodium chloride, NaCl: 1 sodium atom and 1 chlorine atom give about 58.44 g/mol.

These are approximate molar masses based on standard atomic weights; values can vary slightly with isotopic composition and the precision used. For mixtures, hydrates, or substances with uncertain composition, use the appropriate composition and molar mass rather than treating the whole sample as a single pure compound.

When to Use Each Calculation

Use mass divided by molar mass when you can weigh a sample and know its chemical identity. This is common in stoichiometry, solution preparation, and comparing reactant quantities. Use particle count divided by Avogadro’s constant when a problem gives a number of atoms, molecules, ions, or formula units directly. If a solution’s concentration is given in mol/L, its amount can instead be found from n = c × V, where c is concentration in mol/L and V is volume in liters.

Choose consistent units before calculating. A mass in kilograms must be converted to grams if the molar mass is in g/mol; alternatively, use kilograms with kg/mol. Volume in milliliters must be converted to liters when using mol/L. The calculator’s mass inputs are both in grams and g/mol, so no unit conversion is needed when those units are used as labeled.

Common Errors and Limits

  • Reversing the division: moles equal mass divided by molar mass, not molar mass divided by mass.
  • Using the wrong formula mass: count every atom in the chemical formula, including repeated groups and subscripts.
  • Confusing particles: distinguish molecules from atoms or ions. A water sample’s molecule count is not the same as its total atom count.
  • Mixing units: make sure mass and molar mass use compatible mass units.
  • Rounding too early: keep extra digits during intermediate steps and round the final answer to match the precision of the measured data.

The equation is exact as a relationship, but results from experimental masses and tabulated molar masses have uncertainty. A sample may also contain impurities or a mixture, making a calculation based on one pure compound inaccurate. The calculator does not identify a substance, determine purity, or correct for measurement uncertainty; those details must come from the experiment or problem statement.

Frequently Asked Questions

How do you calculate moles from grams?
Divide the sample mass in grams by its molar mass in g/mol: n = m / M. For example, 18 g of a substance with molar mass 18 g/mol is 1 mol.

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

How do I calculate moles from a number of molecules?
Divide the number of molecules by 6.02214076 × 1023 molecules per mole. The result is the amount in moles.

Are moles and molar mass the same thing?
No. Moles measure amount of substance; molar mass is mass per mole, usually expressed in g/mol. Dividing mass by molar mass gives moles.

Can I calculate moles from volume alone?
Not generally. You also need information such as solution concentration, or for a gas, the relevant conditions and a suitable gas relationship. Volume alone does not specify an amount of substance.

Related

Formula used
in m | Sample mass | g | 18 | 0
in M | Molar mass | g/mol | 18 | 0
in N | Number of particles | particles | 6.02214076e23 | 0
out n | Amount of substance | mol | m / M | 3
out p | Particles in sample | particles | n * 6.02214076e23 | 0
out g | Mass of sample | g | n * M | 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, rounded as each result states. See how the calculators work or report an error.