Skip to main content
🧪 Stoichiometry

Moles Calculator

Enter any two of moles, mass and molar mass and find the third with n = m/M. Also gives the number of atoms or molecules from Avogadro's number.

n = m / M
Solve any of n, m, M
Particle count
Grams ↔ moles
100% Free
🧪 Open Full Chemical Calculator 📖 Read the Guide

Moles — Quick answer

Moles are mass divided by molar mass — the bridge between grams you can weigh and the particle count you actually want.

n = m / M · m = n·M · M = m / n
particles = n × 6.022×10²³ (Avogadro)

Worked example: 58.44 g NaCl, M = 58.44 g/mol. n = 58.44/58.44 = 1 mol6.022×10²³ formula units.

Molar masses of common substances

SubstanceMolar mass1 mole =
Water (H₂O)18.0 g/mol18.0 g
Salt (NaCl)58.44 g/mol58.44 g
CO₂44.0 g/mol44.0 g

Used for: stoichiometry, lab prep, reaction yields, solution making.

🧪 Moles Calculator

Enter any two of moles, mass and molar mass — leave the one you want blank.

Moles
Mass
Molar mass
Number of particles

⚠️ Molar mass comes from the chemical formula (sum of atomic masses). Make sure your mass and molar mass use the same substance, and that mass is in grams.

Chemistry happens between particles — atoms and molecules — but we can only weigh things in grams. The mole bridges that gap: it is a fixed, huge count of particles (6.022×10²³) chosen so that one mole of any substance weighs its molar mass in grams. So to turn a weighed mass into a usable particle count, you divide by the molar mass: n = m/M. That one step is the foundation of stoichiometry, letting you scale recipes, predict yields and make solutions of exactly the right strength.

Reviewed: June 19, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: the mole concept and Avogadro's number.

The mole equations

Moles from mass
n = m / M
Mass & molar mass
m = n × M · M = m / n
Number of particles
N = n × NA,   NA = 6.022×10²³ mol⁻¹

Mass m is in grams and molar mass M in grams per mole, so the moles n are dimensionless counts of "how many molar units." The molar mass is read straight from the formula — add the atomic masses of every atom — which is why water (18 g/mol) and carbon dioxide (44 g/mol) have the values they do. Multiplying moles by Avogadro's number scales up to the actual number of atoms or molecules, a figure far too large to count any other way.

Worked example — weighing out salt

Scenario: You weigh 58.44 g of sodium chloride (NaCl), molar mass 58.44 g/mol. How many moles and formula units is that?

Moles
n = m / M = 58.44 / 58.44 = 1 mole
Particles
N = 1 × 6.022×10²³ = 6.022×10²³ formula units

Exactly one mole — 6.022×10²³ NaCl units. Weigh out half that, 29.22 g, and you have 0.5 mol; weigh 117 g and you have ~2 mol, because moles scale directly with mass. If instead you knew you needed 0.25 mol of water, the mass would be n×M = 0.25 × 18.0 = 4.5 g. The molar mass is the single conversion factor running both directions.

Frequently Asked Questions

How do you calculate the number of moles?

n = m / M (mass ÷ molar mass). 58.44 g NaCl ÷ 58.44 g/mol = 1 mol.

What is a mole?

A count of 6.022×10²³ particles (Avogadro's number), defined so one mole weighs the molar mass in grams.

How do I convert grams to moles?

moles = grams ÷ molar mass; reverse: grams = moles × molar mass. 18 g water ÷ 18 g/mol = 1 mol.

What is molar mass?

Mass of one mole (g/mol), = sum of atomic masses in the formula. H₂O = 18.0, CO₂ = 44.0 g/mol.

How many atoms in a mole?

6.022×10²³. Convert mass → moles (n=m/M), then × Avogadro's number for the particle count.

Ready to perform complete calculations?

Use the full AI Calculator suite for chemistry and stoichiometry with a professional PDF report.

🧪 Open Full Calculator — Free

No registration required · 350+ engineering calculators · PDF report export