Number of Atoms Calculator

Enter sample mass and molar mass to instantly calculate the number of atoms using Avogadro's number.

Use the Number of Atoms Calculator

Sample Parameters

Mass of the sample in grams.

Molar mass of the substance (from the periodic table or formula).

Leave as 1 to count molecules. Use 3 for H₂O (2 H + 1 O), for example.

Quick Examples

Result

Enter values and click Calculate.

Copied to clipboard!

Summary

This calculator determines how many atoms are present in a given sample by combining the mole concept with Avogadro's number (6.02214076 × 10²³ atoms/mol). Enter the sample's mass in grams and its molar mass in grams per mole, and the tool computes the result instantly. The full step-by-step derivation is shown so you can follow the chemistry behind the answer.

How it works

  1. Enter the sample mass in grams (e.g., 18 g for water).
  2. Enter the molar mass in g/mol (e.g., 18.015 g/mol for H₂O).
  3. Optionally enter the number of atoms per formula unit (default 1 for monatomic elements).
  4. The tool divides mass by molar mass to get the number of moles.
  5. Moles are multiplied by Avogadro's number (6.02214076 × 10²³) to get atom count.
  6. The result is displayed in scientific notation with a full step-by-step breakdown.

Use cases

  • Quickly solve stoichiometry homework problems.
  • Verify hand-calculated atom counts in lab reports.
  • Understand the scale of matter at the atomic level.
  • Convert sample masses to molar quantities in chemistry coursework.
  • Cross-check textbook examples involving Avogadro's number.
  • Prepare for AP Chemistry or university-level exams.

Frequently Asked Questions

Last updated: 2026-06-04 · Reviewed by Nham Vu