calculateCalculopedia
search
science

Moles Calculator (Chemistry)

The moles calculator converts mass to moles using the molar mass, and shows the equivalent number of molecules using Avogadro's number.

verified_userReviewed by the Calculopedia editorial teamLast updated 2026-08-15

Embed on your site

Embed this calculator on your site:

<iframe src="https://calculopedia.darzh.xyz/embed/moles-calculator/" width="100%" height="700" style="border:0;border-radius:12px" loading="lazy"></iframe>

quizExample

How this calculator works, with real numbers (no JavaScript needed):

Inputs

Substance
h2o
Mass
18
Molar mass
40

Results

Moles
0.9992
Number of molecules
6.017e+23
Molar mass used
18.015

functionsThe formula

Moles = mass ÷ molar mass. Molecules = moles × 6.022 × 10²³ (Avogadro's number).

A mole is chemistry's standard counting unit: one mole contains 6.022 × 10²³ particles. The name honours Amedeo Avogadro, the Italian scientist whose early-nineteenth-century hypothesis about equal volumes of gases helped establish the idea that a fixed number of particles occupies a fixed volume — though the number itself was computed only after his work led chemists to it. Where a "dozen" is 12, a mole is 6.022 × 10²³: a number too large to picture, yet exactly right for atoms and molecules, which are too small to count any other way.

The bridge formula

Moles = mass (grams) ÷ molar mass (g/mol)

The molar mass — read off the periodic table — is the mass of exactly one mole of the substance, and it turns a weighable amount of material into a countable number of particles.

Worked example: 18 g of water

Molar mass of H₂O = (2 × 1.008) + 15.999 = 18.015 g/mol
Moles = 18 ÷ 18.015 ≈ 1.00 mole

One mole of water is about 18 mL — a modest spoonful — yet it contains 6.022 × 10²³ molecules. The calculator reports the molecule count next to the mole figure precisely because "how many actual molecules" is what most chemistry questions ultimately want.

Reading molar mass from a formula

Substance Formula Molar mass
Water H₂O 18.015 g/mol
Table salt NaCl 58.44 g/mol
Oxygen O₂ 31.998 g/mol
Carbon dioxide CO₂ 44.009 g/mol
Glucose C₆H₁₂O₆ 180.156 g/mol

Watch the subscripts: O₂ is a diatomic molecule, so its molar mass is double the atomic value in the periodic table. Multiply every subscript into its atomic mass before adding.

Molecules from moles

Molecules = moles × 6.022 × 10²³

Two moles of water means 12.04 × 10²³ molecules — 36 g in the lab, about two tablespoons — and roughly 3.6 × 10²⁴ atoms, because each water molecule contains three atoms.

One-step conversions and custom substances

The tool also accepts a custom molar mass, which covers salts, hydrates and alloys not on the quick list. Two anchor facts are worth keeping in your head: 18 g of water is about one mole, and 44 g of CO₂ is exactly one mole — both make instant eyeball checks for lab conversions. And because dissolving one mole in one liter gives a concentration of exactly 1 molar, the same numbers feed straight into concentration work:

Molarity = moles ÷ liters

Why the mole exists at all

Atoms are far too small to count individually, so chemistry counts by weight. The mole converts grams (everything you can actually measure) into particles (everything a reaction actually consumes). If a recipe needs 2 moles of ions but the reagent supplies only 1 mole of ions per formula unit, the mole calculation tells you to double the mass — and it is the same conversion whether you reason in grams, liters of solution or molecules.

Practical uses

  • Stoichiometry — translating grams of reactant into grams of product through mole ratios.
  • Concentration — molarity is moles of solute per liter of solution; moles = molarity × volume.
  • Solubility and precipitation — working out how much solid a solution yields.
  • Gas calculations — connecting moles to volumes for an ideal gas at given conditions.

Common mistakes

  • Using grams but the one-atom (atomic) molar mass for a molecule — treating O₂ as 16 instead of 32.
  • Forgetting water or counter-ions in hydrated salts, which add mass beyond the simple formula.
  • Counting Avogadro's number twice — it is already baked into the molar-mass definition.
  • Entering a "custom" molar mass in kilograms or milligrams when the calculator expects grams per mole.

For the related chemistry measure of reacting capacity, see the equivalent weight calculator.

helpFrequently asked questions

question_markHow do I calculate moles from grams?

Divide the mass in grams by the molar mass in g/mol. For 36g of water: 36 ÷ 18.015 ≈ 2.00 moles.

question_markWhat is Avogadro's number?

Avogadro's number is 6.022 × 10²³ — the number of particles in one mole of any substance.

question_markHow do I find molar mass?

Add up the atomic masses of all atoms in the molecular formula. For H₂O: 2(1.008) + 15.999 = 18.015 g/mol.

view_quiltYou might also need