Skip to content
CalcTide logo
Education & Math

Mole Calculator

18.015 grams of water equals exactly 1 mole, because water has a molar mass of 18.015 grams per mole. This mole calculator handles the core chemistry relationship n = m / M, where n is the amount of substance in moles, m is the mass in grams, and M is the molar mass in grams per mole. Pick what you want to solve for, then enter the two values you know. In moles mode you enter a mass and a molar mass to find how many moles you have. In mass mode you enter moles and a molar mass to find the mass in grams. In molar mass mode you enter a mass and a number of moles to work out the molar mass of the substance. Every result also reports the number of individual particles, atoms, molecules, or formula units, by multiplying the moles by Avogadro's number, 6.02214076 times ten to the twenty third. The tool checks that each value is a finite number greater than zero so you never divide by zero or get a meaningless negative amount.

Education & MathBy

Quick answer

One mole is the amount of a substance that contains 6.02214076 times ten to the twenty third particles, a value known as Avogadro's number.

What this tells you

  • One mole is the amount of a substance that contains 6.02214076 times ten to the twenty third particles, a value known as Avogadro's number.
  • Moles equal mass in grams divided by molar mass in grams per mole, written as n = m / M.
  • To find mass, rearrange the formula to m = n times M, multiplying moles by molar mass.
  • To find molar mass, rearrange to M = m / n, dividing the mass by the number of moles.
  • Molar mass in grams per mole is numerically equal to the substance's molecular or formula weight in atomic mass units.
  • Multiplying moles by Avogadro's number converts the amount of substance into a raw count of atoms, molecules, or ions.

How to Use

  1. 11. Choose what you want to solve for in the mode selector: moles, mass, or molar mass.
  2. 22. In moles mode, enter the mass in grams and the molar mass in grams per mole of your substance.
  3. 33. In mass mode, enter the number of moles and the molar mass to get the mass in grams.
  4. 44. In molar mass mode, enter the mass in grams and the number of moles to get the molar mass.
  5. 55. Read the primary result for the solved quantity, then check the secondary rows for the values you entered and the number of particles counted from Avogadro's number.

How It Works

Formula

n = m / M, m = n × M, M = m / n, particles = n × 6.02214076e23

The mole equation ties three quantities together. n is the amount of substance in moles, m is the mass in grams, and M is the molar mass in grams per mole. Starting from n = m / M you can rearrange to solve for whichever value is unknown. Multiply moles by molar mass to recover mass, or divide mass by moles to recover molar mass. Once you know the number of moles, multiplying by Avogadro's number, 6.02214076 times ten to the twenty third, gives the total count of individual particles. The calculator requires every divisor and every entered value to be a finite positive number, since a zero molar mass, a zero mole count, or a negative mass has no physical meaning in this relationship.

Calculation note: values are processed in the order shown above, using the current input units.

Worked Examples

Grams of water to moles

Modemoles
Mass Grams36.03
Molar Mass18.015
Result2 mol

Water has a molar mass of 18.015 grams per mole. Dividing 36.03 grams by 18.015 grams per mole gives 2 moles of water. Multiplying 2 moles by Avogadro's number reports about 1.204e+24 molecules.

Moles of sodium chloride to grams

Modemass
Moles2
Molar Mass58.44
Result116.88 g

Table salt, sodium chloride, has a molar mass of 58.44 grams per mole. Multiplying 2 moles by 58.44 grams per mole gives 116.88 grams. This is how you weigh out a target number of moles on a balance.

Finding an unknown molar mass

ModemolarMass
Mass Grams100
Moles2.5
Result40 g/mol

If a sample weighs 100 grams and you know it contains 2.5 moles, dividing 100 grams by 2.5 moles gives a molar mass of 40 grams per mole, which matches sodium hydroxide.

A small amount of carbon

Modemoles
Mass Grams3
Molar Mass12.011
Result0.2498 mol

Carbon has a molar mass of 12.011 grams per mole. Dividing 3 grams by 12.011 grams per mole gives about 0.2498 moles, which corresponds to roughly 1.504e+23 carbon atoms.

Molar Masses of Common Substances

Approximate molar masses you can drop straight into the calculator.

SubstanceFormulaMolar Mass (g/mol)
WaterH2O18.015
CarbonC12.011
Sodium chlorideNaCl58.44
Carbon dioxideCO244.01
GlucoseC6H12O6180.16
Oxygen gasO232.00
Sodium hydroxideNaOH40.00

Molar masses are rounded to common textbook values and depend on the standard atomic weights used by your source.

What a mole actually counts

A mole is simply a counting unit, like a dozen or a gross, but scaled up to handle the enormous number of particles in even a tiny sample of matter. One dozen is 12 items. One mole is 6.02214076 times ten to the twenty third items. Chemists use it because atoms and molecules are far too small and far too numerous to count one by one, so grouping them into moles makes the math manageable.

The link between moles and grams is the molar mass. The molar mass of a substance in grams per mole is numerically the same as its molecular or formula weight in atomic mass units, which you get by summing the standard atomic weights of every atom in the formula. Because of this match, weighing out one molar mass in grams always gives you exactly one mole of that substance, no matter how large or small its individual particles are.

This calculator moves freely among the three quantities so you can start from whatever you know. In a lab you often measure mass on a balance and want moles for a reaction ratio. In a homework problem you might know moles and need the mass to weigh out. When identifying an unknown compound, you may measure both mass and moles and solve for the molar mass to narrow down what the substance is.

Work with solution strength using the concentration calculator

Common mistakes

  • Confusing molar mass with molecular mass units. Molar mass is expressed in grams per mole, while molecular mass is in atomic mass units, even though the two share the same number.
  • Entering a molar mass of zero. Molar mass sits in the denominator when solving for moles, so it must be a positive number or the result is undefined.
  • Mixing up mass and moles when picking a mode. Double check that the value you type into the mass field is actually in grams, not already a mole count.
  • Forgetting to balance the chemical formula before looking up a molar mass. The molar mass depends on the exact formula, so C6H12O6 and CH2O have very different values.
  • Assuming particles always means atoms. The particle count applies to whatever unit the formula describes, which may be molecules, ions, or formula units rather than single atoms.

Embed this calculator on your site

Drop this single line where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use with attribution.

<script src="https://calctide.com/embed.js" data-tool="mole-calculator" async></script>

Preview the embed at /embed/mole-calculator/.

Frequently Asked Questions

Convert grams to moles by dividing the mass in grams by the molar mass in grams per mole. For example, 36.03 grams of water divided by its molar mass of 18.015 grams per mole gives 2 moles. Choose moles mode in this calculator, enter the mass and molar mass, and it does the division for you.
Convert moles to grams by multiplying the number of moles by the molar mass in grams per mole. For example, 2 moles of sodium chloride times 58.44 grams per mole equals 116.88 grams. Use mass mode, enter moles and molar mass, and read the mass result.
Avogadro's number is 6.02214076 times ten to the twenty third, the exact count of particles in one mole of any substance. This calculator multiplies your mole amount by this value to report the total number of atoms, molecules, or formula units present.
Find molar mass by dividing the mass in grams by the number of moles, since M = m / n. For instance, 100 grams that make up 2.5 moles gives a molar mass of 40 grams per mole. Pick molar mass mode and enter both values to solve it.
Molar mass and molecular weight share the same number, but the units differ. Molar mass is measured in grams per mole and molecular weight in atomic mass units. You can read a molecular weight straight off a formula and use it as the molar mass in grams per mole here.
The calculator rejects zero and negative values because they have no physical meaning in the mole equation. Dividing by a zero molar mass or a zero mole count is undefined, and a negative mass or amount cannot exist, so the tool returns a validation message instead of a false result.
It estimates mole calculator outputs using the visible inputs and formula assumptions on this page.

Explore More in Education & Math