Moles Calculator

Quick answer

A moles calculator uses the rule moles equals mass divided by molar mass. Enter any two of moles, mass and molar mass and leave the third blank. Dividing 18 grams of water by its molar mass of 18 grams per mole gives 1 mole.

Updated 2026-09-09By Shakeel MuzaffarReviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Chemistry
The amount of substance, in moles. Leave blank to solve for it.
The mass of the sample, in grams. Leave blank to solve for it.
The molar mass, in grams per mole, from the periodic table. Leave blank to solve for it.
Result
--
Solved for--
Number of particles--

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)

How to Use the Moles Calculator

  1. Enter any two of amount, mass and molar mass.
  2. Take the molar mass from the periodic table (grams per mole).
  3. Leave the one you want to find blank.
  4. Read the result and the number of particles it represents.

Here is what each result means:

ResultWhat it means
ResultThe value you left blank, solved from the other two.
Solved forWhether it found amount, mass or molar mass.
Number of particlesThe moles multiplied by Avogadro number.

What Is a Mole?

A mole is the chemist's way of counting particles. One mole is exactly 6.022 times 10 to the power of 23 particles, a number called Avogadro number. Because atoms and molecules are far too small and numerous to count directly, the mole lets chemists work with amounts they can actually weigh on a balance.

The link between a countable amount and a weighable mass is the molar mass, measured in grams per mole. The molar mass of a substance equals the sum of the atomic masses of its atoms, read from the periodic table. Water, for example, has a molar mass of about 18 grams per mole, so 18 grams of water is one mole.

The central rule is simple: the number of moles equals the mass divided by the molar mass. This single relationship turns a mass you can measure into a number of moles you can use in a chemical equation, which is why it is one of the first and most important calculations in chemistry.

How Does the Moles Calculator Work?

It rearranges one relation to solve for whichever value you leave blank.

Formula: n = mass / molar mass, so mass = n x molar mass and molar mass = mass / n
  1. For the amount, divide the mass by the molar mass.
  2. For the mass, multiply the amount by the molar mass.
  3. For the molar mass, divide the mass by the amount.

Moles feed into concentration and gas problems; see the molarity calculator and ideal gas law calculator.

Moles Example

You have 18 grams of water, molar mass 18 grams per mole.

Calculation: n = mass / molar mass = 18 / 18 = 1 mole, which contains about 6.022 times 10 to the power of 23 molecules. To find the mass of 2 moles of a substance with molar mass 40, multiply: 2 times 40 is 80 grams.

The Three Forms of the Mole Rule

One relation, rearranged for whatever you need to find.

To findUse
Amountmass divided by molar mass
Massamount times molar mass
Molar massmass divided by amount

All three come from moles equals mass over molar mass, so any two of the values give the third. This makes the mole rule the bridge between the mass you weigh in the lab and the number of particles that take part in a reaction.

Comparing Molar Masses of Common Substances

The molar mass depends on which atoms make up the substance.

SubstanceFormulaMolar mass (g/mol)
WaterH2Oabout 18
Carbon dioxideCO2about 44
Sodium chlorideNaClabout 58.5
GlucoseC6H12O6about 180

To find a molar mass, add up the atomic masses of every atom in the formula. Glucose, with six carbons, twelve hydrogens and six oxygens, comes to about 180 grams per mole, so 180 grams of glucose is one mole.

What Affects the Amount in Moles

The Mass

A larger mass of the same substance contains more moles, in direct proportion.

The Molar Mass

A heavier molar mass means fewer moles for the same mass, since each mole weighs more.

The Substance

The same mass of two different substances contains different numbers of moles because their molar masses differ.

When to Use a Moles Calculator

Chemistry Homework

Convert between mass and moles for any substance in a problem.

Stoichiometry

Find the moles that react or form, then relate them through a balanced equation.

Laboratory Work

Weigh out the right mass to get a target number of moles.

Common Mistakes

1. Wrong Molar Mass

Add up the atomic masses of every atom in the formula, including subscripts, from the periodic table.

2. Mass in the Wrong Unit

Use grams. Convert kilograms or milligrams to grams first.

3. Confusing Moles and Molecules

One mole is Avogadro number of particles, about 6.022 times 10 to the power of 23, not a single molecule.

4. Forgetting Subscripts

Water is H2O, so count two hydrogen atoms, not one, when finding its molar mass.

5. Zero Molar Mass or Amount

Solving for moles or molar mass cannot divide by zero.

Accuracy and Limitations

The relation is exact; only the displayed decimals are rounded, and very large or small results are shown in scientific notation.

What it calculates accurately

  • Amount, mass or molar mass from the other two
  • The number of particles via Avogadro number
  • Any consistent set of units

What it does not do

  • Work out the molar mass from a chemical formula
  • Balance chemical equations
  • Convert between grams and kilograms for you
  • Handle mixtures of substances

How We Compute Moles

Method
The relation moles = mass / molar mass, rearranged for the value you leave blank.
Inputs used
Any two of amount, mass and molar mass.
Constant
Avogadro number 6.02214076 x 10^23 per mole, for the particle count.
Assumptions
Mass in grams; molar mass in grams per mole; a single pure substance.
Rounding
Five decimals, or scientific notation for very large or small results.
Edge cases
A molar mass of zero when solving for moles, or an amount of zero when solving for molar mass, is not allowed.

Frequently Asked Questions

What is a mole in chemistry?

A mole is a fixed number of particles, exactly 6.022 times 10 to the power of 23, called Avogadro number. It lets chemists relate a weighable mass to a countable number of atoms or molecules.

How do you calculate the number of moles?

Divide the mass in grams by the molar mass in grams per mole. For 18 grams of water with a molar mass of 18, that is 18 divided by 18, which is 1 mole.

How do I find mass from moles?

Multiply the amount in moles by the molar mass. Leave the mass field blank and enter amount and molar mass, and the calculator solves for it.

What is molar mass?

Molar mass is the mass of one mole of a substance, in grams per mole. It equals the sum of the atomic masses of all the atoms in the formula, read from the periodic table.

How do I find the molar mass of a compound?

Add up the atomic masses of every atom in the formula, including subscripts. Water, H2O, is about 2 times 1 plus 16, which is 18 grams per mole.

What is Avogadro number?

Avogadro number is 6.022 times 10 to the power of 23, the number of particles in one mole. This calculator uses it to report how many particles an amount contains.

What units should I use?

Grams for mass and grams per mole for molar mass, giving an amount in moles. Convert other mass units to grams before entering them.

How is this different from molarity?

Moles measure the amount of a substance. Molarity measures concentration, the moles of solute per liter of solution. You often find moles first, then use them to work out molarity.

Is my information saved?

No. The calculation runs in your browser and nothing you enter is stored or sent anywhere, unless you choose Save, which keeps the result only on this device.

Sources

Related Guides

Related Calculators

Looking for more science tools?

Explore all math calculators

This calculator relates moles, mass and molar mass by moles = mass / molar mass. Enter any two and leave the third blank. Mass is in grams, molar mass in grams per mole and the amount in moles. The molar mass of a compound is the sum of the atomic masses of its atoms, taken from the periodic table. Spotted an error? Let us know.

Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.