Mole Calculator

Last Updated: October 20, 2026

Calculate moles from mass and molar mass, a particle count, or molarity and volume, and solve in reverse for mass, molarity, or volume.

Use the molar mass of the specified substance.

Optional settings

Mole Formula

This calculator uses three conversion relationships, with explicit solve choices for moles, mass, molar mass, particle count, concentration or solution volume.

Mass and moles (using molar mass):

n = m / M

Particles and moles (using Avogadro’s number):

n = N / Na

Solution and moles (using molarity and volume):

n = c × V
  • n = amount of substance (mol)
  • m = mass of the sample (g)
  • M = molar mass of the substance (g/mol)
  • N = number of particles (atoms, molecules, or ions)
  • Nₐ = Avogadro constant, exactly 6.02214076 × 1023 mol⁻¹; specify the entities counted
  • V = final volume of solution (L); c = amount concentration (mol/L)

In mass mode you divide the mass by the molar mass to get moles, and you can rearrange the same equation to solve for mass (m = n * M) or molar mass (M = m / n). In particles mode you divide the particle count by Avogadro’s number to get moles, or multiply moles by Avogadro’s number to get the particle count. For solutions, multiply amount concentration by final solution volume to get moles; rearrange for concentration (c = n / V) or volume (V = n / c). The “Solve for” selector controls which variable the calculator returns, and only the inputs needed for that choice stay visible.

Common Molar Masses and Conversion Values

The molar mass you enter is the sum of the atomic masses in the chemical formula, in grams per mole. The table below lists molar masses for common substances so you can check your input.

SubstanceFormulaMolar mass (g/mol)
WaterH2O18.02
Table saltNaCl58.44
Carbon dioxideCO244.01
GlucoseC6H12O6180.16
Sulfuric acidH2SO498.08

The table below gives the defining Avogadro constant and related reference quantities. Gas molar volume is not used by this calculator.

QuantityValue
Avogadro’s numberExactly 6.02214076 × 1023 mol⁻¹
1 mole of an ideal gas at 0 °C and 1 atmApproximately 22.4 L (not universal for real gases)
Molarity (M)moles per liter of solution

Example Problems

Example 1. You have 10 g of sodium chloride (NaCl), which has a molar mass of 58.44 g/mol. To find the moles, divide the mass by the molar mass: n = 10 / 58.44 = 0.171 mol. Select “Moles from mass” to check this result.

Example 2. You have 0.5 mol of a compound dissolved in 2 L of solution. To find the molarity, divide moles by volume: c = 0.5 / 2 = 0.25 mol/L. Select “Concentration from moles” to confirm.

FAQ

What is a mole in chemistry?
A mole is a counting unit for particles. One mole contains exactly 6.02214076 × 1023 specified entities. It links the mass of a sample you can weigh to the number of atoms or molecules it contains.

How do you find molar mass?
Add the atomic masses of every atom in the chemical formula, using the values from the periodic table. For water (H2O) you add two hydrogen atoms (about 1.008 each) and one oxygen atom (about 16.00) to get 18.02 g/mol. Enter that value in the molar mass field.

Can this calculator convert moles back to mass or particles?
Yes. The “Solve for” selector includes each conversion. In mass mode you can solve for moles, mass, or molar mass. In particles mode you can solve for moles or the number of particles. In solution mode you can solve for moles, molarity, or volume.

Mole Calculator screenshot