Atom Count Calculator Formula
Understand the math behind the atom count calculator. Each variable explained with a worked example.
Formulas Used
Number of Atoms
num_atoms = (mass_grams / atomic_mass) * 6.022e23Moles
moles = mass_grams / atomic_massVariables
| Variable | Description | Default |
|---|---|---|
mass_grams | Mass of Element(g) | 12 |
atomic_mass | Atomic Mass(g/mol) | 12.011 |
How It Works
How to Count Atoms
Formula
N = (mass / atomic mass) × 6.022 × 10^23
Convert grams to moles, then moles to atoms using Avogadro's number.
Worked Example
How many atoms in 12 g of carbon-12?
mass_grams = 12atomic_mass = 12.011
- 01Moles = 12 / 12.011 = 0.999 mol
- 02Atoms = 0.999 × 6.022 × 10^23
- 03Atoms ~ 6.02 × 10^23
Frequently Asked Questions
How many atoms are in one mole?
6.022 × 10^23 atoms, which is Avogadro's number.
Does this work for molecules too?
For molecules, this gives the number of molecules. To get total atoms, multiply by atoms per molecule.
Why is Avogadro's number so large?
Because atoms are incredibly small. It takes about 6 × 10^23 of them to make a countable, weighable amount.
Ready to run the numbers?
Open Atom Count Calculator