Avogadro's Number Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

What this Avogadro's number calculator does

This calculator uses Avogadro's number to convert between the amount of substance in moles, the number of particles (atoms, molecules, or formula units), and the mass of a sample in grams. It is designed for students and teachers who want fast, reliable conversions for typical chemistry problems.

You can use it in two main ways:

If you enter both moles and mass, the calculator treats the moles value as the primary input and ignores the mass, because moles already specify the amount of substance directly.

Key concepts and formulas

In chemistry, the mole is a counting unit, similar to how a dozen means 12 items. One mole corresponds to a fixed number of particles called Avogadro's number:

Avogadro's number (symbol NA) is exactly:

NA = 6.02214076 × 10 23 mol1

That means one mole of any substance contains 6.02214076 × 1023 particles.

The calculator uses three core relationships:

  1. Moles to particles

    Particles (atoms, molecules, etc.) are found by multiplying moles by Avogadro's number:

    N = NA × n

    where n is the amount of substance in moles, and N is the number of particles.

  2. Mass to moles

    If you start from mass, you first convert grams to moles using the molar mass M (in g/mol):

    n = m M

    Here m is the mass of the sample in grams, and M is the molar mass of the substance in g/mol.

  3. Mass directly to particles

    Combining the two steps above gives a direct expression for the number of particles from the mass and molar mass:

    N = NA × m M

    This is the formula the calculator uses when you provide mass and molar mass but leave moles blank.

How to use the calculator

1. If you already know the number of moles

  1. Enter the value in the Amount n (mol) field.
  2. Leave the Mass m (g) and Molar Mass M (g/mol) fields empty (optional for this mode).
  3. Click the calculate button to get the number of particles.

In this case, the calculator simply applies N = NA × n.

2. If you start from mass in grams

  1. Enter the sample's mass in the Mass m (g) field.
  2. Enter the molar mass of the substance in the Molar Mass M (g/mol) field. For example, water (H2O) has a molar mass of about 18.02 g/mol.
  3. Leave the Amount n (mol) field empty.
  4. Click the calculate button to find both the moles and the number of particles.

Internally, the calculator first computes n = m / M, then uses N = NA × n.

3. If you enter both moles and mass

When you fill in all three fields, the calculator will prioritize the moles value. It assumes that if you already know moles, that is the most direct and accurate representation of the amount of substance, so it does not recalculate moles from the mass.

Worked example: particles in 5.0 g of water

Suppose you want to know how many water molecules are present in 5.0 g of liquid water.

Step 1: Identify known values

Step 2: Convert mass to moles

Use the formula n = m / M:

n = 5.0 g / 18.02 g/mol ≈ 0.277 mol

Step 3: Convert moles to number of molecules

Apply N = NA × n:

N ≈ (6.022 × 1023 mol−1) × 0.277 mol ≈ 1.67 × 1023 molecules

Step 4: Using the calculator

  1. Enter 5.0 in the Mass m (g) field.
  2. Enter 18.02 in the Molar Mass M (g/mol) field.
  3. Leave the moles field blank.
  4. Click calculate to see the moles and the total number of molecules.

The calculator will display a moles value close to 0.277 mol and a particle count close to 1.67 × 1023 molecules, matching the hand calculation above (small differences may come from rounding).

Comparison of common use cases

The table below compares the most common scenarios you might encounter when working with Avogadro's number and moles.

Starting information What you want to find Key formula used How to use this calculator
Moles of a substance (n) Number of particles (N) N = NA × n Enter moles only. Leave mass and molar mass blank.
Mass (m) and molar mass (M) Moles (n) and number of particles (N) n = m / M, then N = NA × n Enter mass and molar mass. Leave moles blank.
Moles and mass (both given) Number of particles (N) from the moles N = NA × n (moles take precedence) Enter all fields if you like, but the result will be based on the moles value.
Number of particles (N) Moles (n) n = N / NA This calculator is focused on moles → particles. You can rearrange the formula by hand or with a separate tool if needed.

Interpreting the results

The output typically includes:

Because Avogadro's number is so large, particle counts are usually shown in scientific notation (for example, 3.4 × 1024). This is normal and reflects the huge number of particles present even in small samples.

When checking homework or lab calculations, focus on:

Assumptions, limitations, and notes

To keep the calculator simple and broadly useful for education, several assumptions are made:

Keep these points in mind when using the tool to ensure you interpret the numbers correctly and apply them appropriately in lab reports, assignments, or exam practice.

Background: why Avogadro's number matters

Avogadro's number is central to stoichiometry and chemical equations because it connects the microscopic world of atoms and molecules to measurable amounts in the lab. When you balance a chemical equation, the coefficients describe mole ratios, which can be converted into actual particle counts using NA.

For example, in the combustion of methane,

CH4 + 2 O2 → CO2 + 2 H2O

one mole of methane reacts with two moles of oxygen. In terms of particles, that means:

The same mole relationships hold regardless of the specific substance because a mole is defined by counting particles via Avogadro's number. The calculator you are using simply automates the numerical side of these conversions so you can focus on understanding the underlying chemistry.

Enter moles or mass and molar mass.

Embed this calculator

Copy and paste the HTML below to add the Avogadro's Number Calculator - Convert Moles to Molecules to your website.