Chemistry tool

Moles Calculator

This moles calculator finds the number of moles from what you've got. Start from a mass with its molar mass, or from a solution's molarity and volume, and you'll get the moles plus the particle count. It also flips the other way to turn moles back into grams. Everything updates as you type, so it's quick for stoichiometry or lab prep. It's free and loads instantly in the page, so nothing you type is uploaded.

  • Moles from mass
  • From a solution
  • Grams from moles
  • Particle count
  • Avogadro number

Last updated July 28, 2026 n = mass / molar mass By Muhammad Younus, Calcowa

Moles
0.9989 mol
6.016e23
Particles
18
Mass (g)
18.02
Molar mass

Need the molar mass? Build it from a formula with our molar mass tool. One mole is 6.022 times 10 to the 23rd particles, so the particle count climbs fast.

The basics

How do you calculate the number of moles?

A mole is chemistry's way of counting particles, and the number of moles tells you how much substance you've got in those terms. The everyday formula is moles equals mass divided by molar mass: weigh the substance in grams, divide by its molar mass in grams per mole, and you've got the moles. For example, 18 grams of water divided by its molar mass of 18.02 is just about 1 mole. When you're working with a solution instead of a solid, there's a second route, since moles equals the molarity times the volume in liters, so 0.5 molar over 2 liters is also 1 mole. And because the relationship flips, you can turn moles back into grams by multiplying by the molar mass, which is how you weigh out a reaction written in moles. Behind all of it sits Avogadro's number, 6.022 times 10 to the 23rd, the count of particles in one mole, so the tool shows that particle count too. This tool runs whichever formula matches what you know, and it'll fill in the rest the moment you type your values.

moles = mass ÷ molar mass  |  moles = molarity × liters
Step by step

Finding moles, step by step

Here's the routine for 18 grams of water, and it's just three steps:

  1. 1

    Pick what you haveYou have a mass, so choose that mode.

  2. 2

    Enter mass and molar mass18 grams of water, molar mass 18.02 grams per mole.

  3. 3

    Divide for moles18 over 18.02 is about 1 mole, or 6.02e23 molecules.

Quick reference

Moles in 100 grams

Here's how many moles 100 grams of a few substances works out to. It's just 100 divided by the molar mass, so a heavier molecule gives fewer moles, and you'll see that play out below. If yours doesn't match, it's usually the molar mass that's off.

SubstanceMolar massMoles in 100 g
Water18.025.55 mol
Carbon dioxide44.012.27 mol
Table salt58.441.71 mol
Glucose180.160.56 mol
Pick the right route

Which formula do you use for moles?

There isn't one moles formula, there are four, and the one you reach for depends on what you already know. Here's the whole set in a single view, so you can match your data to the right equation before you type a thing.

What you haveFormulaQuick example
Mass and molar massn = mass / molar mass36 g water / 18.02 = 2 mol
A solutionn = molarity × liters0.5 M × 2 L = 1 mol
A gas volume at STPn = liters / 22.411.2 L / 22.4 = 0.5 mol
A particle countn = particles / Avogadro1.2044e24 / 6.022e23 = 2 mol

Moles from a gas volume

This is the one people miss. For an ideal gas at standard temperature and pressure, one mole fills 22.4 liters, so you just divide the volume in liters by 22.4 and skip the molar mass entirely. That's why 11.2 liters of any ideal gas at STP is 0.5 mole. If the gas isn't at STP, temperature and pressure change the volume, so switch to the full ideal gas law where moles equals PV over RT.

Moles from molecules or milliliters

To go from a raw particle count to moles, divide by Avogadro's number, so 1.2044 times 10 to the 24th molecules comes out to 2 moles. And if your volume is in milliliters, divide by 1000 to get liters first, then use the solution route: 500 milliliters at 2 molar is 0.5 liter times 2, which is 1 mole. Need the concentration itself? The molarity calculator works that out from moles and volume.

FAQ

Frequently asked questions

You pick what you have, then enter the values. From a mass it divides the grams by the molar mass to get moles. From a solution it multiplies the molarity by the volume in liters. It can also go the other way, turning moles back into grams. It then shows the number of particles too. Everything loads instantly in the page, so you'll see the moles update as you type, and nothing you type is uploaded.

The usual route is moles equals mass divided by molar mass. You weigh the substance in grams, look up its molar mass in grams per mole, then divide. So 18 grams of water, with a molar mass of 18.02, is about 1 mole. If you have a solution instead, moles equals the molarity times the volume in liters, so 0.5 molar across 2 liters is also 1 mole. The calculator runs whichever route fits what you know.

A mole is just a counting unit for atoms and molecules, like a dozen is for eggs, except it's a huge number: 6.022 times 10 to the 23rd, called Avogadro's number. Chemists use it because atoms are far too small and numerous to count one by one. One mole of any substance contains that many particles, and it weighs the substance's molar mass in grams, which ties grams, moles, and particle counts neatly together.

Multiply the moles by the molar mass. Since moles equals grams over molar mass, flipping it gives grams equals moles times molar mass. So 2 moles of water at 18.02 grams per mole weighs 36.04 grams. Switch this tool to the grams mode, enter the moles and the molar mass, and it does that multiplication for you. It's the step you need whenever a recipe or reaction is written in moles but you're measuring on a scale.

Avogadro's number is 6.022 times 10 to the 23rd, the count of particles in one mole. It's enormous because atoms are tiny, so even a teaspoon of water holds a staggering number of molecules. To turn moles into a particle count you multiply by this number, and to go back you divide. This tool shows the particle count alongside the moles, so you can see just how many atoms or molecules your sample really contains.

It depends on whether you mean a gas or a solution. For an ideal gas at standard temperature and pressure, moles equals the volume in liters divided by 22.4, so 11.2 liters is 0.5 mole and you don't even need the molar mass. For a solution, moles equals the molarity times the volume in liters, so 0.5 molar across 2 liters is 1 mole. Pick the solution mode here for the second case, and use the 22.4 rule or our ideal gas law tool for the first.

Divide the number of molecules by Avogadro's number, since that's how many particles sit in one mole. So 1.2044 times 10 to the 24th molecules works out to 2 moles. This calculator does the reverse for you as well, showing the particle count next to the moles, so you can read the count that matches any mass or solution you enter.

Convert the milliliters to liters first by dividing by 1000, then use the solution route. So 500 milliliters is 0.5 liter, and at 2 molar that's 1 mole. Enter the volume in liters in the solution mode above, and it multiplies by the molarity for you. Milliliters on their own don't give moles, since you still need the concentration or a molar mass to tie volume to amount.

Yes, it's completely free, with no sign-up, and it runs right in your browser, so nothing you type is uploaded. Choose your starting point, type the values, and read the moles, grams, or particle count in a tap. Bookmark it for stoichiometry, lab prep, or chemistry homework, and pair it with the molar mass tool, which gives you exactly the number this one needs to turn grams into moles.

Keep going

Related tools

More chemistry tools.

Working through a reaction?

Find the moles above, or build a molar mass from any formula.

Molar mass