Calcy Mate Logo
Chemistry Calculators

Atom Calculator

Find protons, neutrons, and electrons from atomic number, mass number, and charge — or work backward from composition.

CalcyMate
CreatorCalcyMate

Every piece of matter in the universe — from the air you breathe to the screen you're reading this on — is made of atoms. An atom calculator breaks any atom down to its three subatomic particles: protons, neutrons, and electrons. Enter the atomic number (Z), mass number (A), and charge — and get the full atomic composition instantly. It works for neutral atoms like sodium (Z=11, A=23, charge 0) and ions like sulfide anion (Z=16, A=32, charge −2).

Understanding how protons define identity, neutrons determine isotopes, and electrons determine charge is the foundation of all chemistry. Explore all online chemistry calculators for atomic mass, molar mass, electronegativity, and more.

Every element. Every isotope. Every ion. They're all just different combinations of three particles — protons, neutrons, and electrons.

The atom calculator takes three inputs — atomic number, mass number, and charge — and tells you exactly how many of each particle that atom contains. Neutral atom or charged ion, it handles both in one step.

Let's break down what atoms actually are and how the calculation works.

What Is an Atom?

An atom is the fundamental building block of all ordinary matter — the smallest unit of an element that still retains that element's chemical properties.

Every atom consists of:

  • A dense nucleus at the center — containing protons and neutrons

  • A cloud of electrons orbiting the nucleus in shells

Atoms are incredibly small — a single human hair is about one million carbon atoms wide. Yet everything around you is made of them.

Structure of an Atom — The Three Subatomic Particles

Protons

  • Charge: Positive (+1)

  • Location: Inside the nucleus

  • Key role: The number of protons = the atomic number (Z) = defines which element the atom is

  • Example: Any atom with 6 protons is carbon. Always. No exceptions.

Neutrons

  • Charge: Neutral (0)

  • Location: Inside the nucleus alongside protons

  • Key role: Adds to the atom's mass without changing its identity

  • Different neutron counts = different isotopes of the same element

Electrons

  • Charge: Negative (−1)

  • Location: Orbiting the nucleus in shells or electron clouds

  • Key role: Determines charge state — equal electrons and protons = neutral atom

  • Mass: Negligible — electrons contribute almost nothing to total atomic mass

Key Atomic Concepts You Need to Know

Atomic Number (Z)

Z = Number of protons in the nucleus

  • Defines the element's identity — no two elements share the same atomic number

  • Determines position on the periodic table

  • In a neutral atom: Z also equals the number of electrons

Mass Number (A)

A = Protons (Z) + Neutrons (N)

  • Always a whole number

  • Different from atomic mass (which is a weighted decimal average)

  • Changes between isotopes of the same element

Charge

  • Neutral atom: Protons = Electrons → charge = 0

  • Positive ion (cation): Lost electrons → charge = +1, +2, etc.

  • Negative ion (anion): Gained electrons → charge = −1, −2, etc.

Ions

When an atom gains or loses electrons, it becomes an ion — a charged particle. It's still the same element (same protons), but with a different electron count.

The Atom Calculation Formulas

Number of Protons = Atomic Number (Z)

Number of Neutrons = Mass Number (A) − Atomic Number (Z)

Number of Electrons = Atomic Number (Z) − Charge

  • For neutral atoms: Electrons = Z

  • For cations (positive charge): Electrons = Z − charge

  • For anions (negative charge): Electrons = Z + |charge|

How the Atom Calculator Works

Inputs

  • Atomic number (Z) — the number of protons; identifies the element

  • Mass number (A) — total protons + neutrons

  • Charge — 0 for neutral atoms, positive for cations, negative for anions (e.g., 0 or −2)

Outputs — Atomic Composition

  • Number of protons — equals Z always

  • Number of neutrons — equals A minus Z

  • Number of electrons — equals Z minus charge

Worked Examples — Step by Step

Example 1 — Neutral Sodium Atom (Na)

Z = 11, A = 23, Charge = 0

  1. Protons = Z = 11

  2. Neutrons = A − Z = 23 − 11 = 12

  3. Electrons = Z − charge = 11 − 0 = 11

Sodium has 11 protons, 12 neutrons, and 11 electrons. Perfectly neutral.

Example 2 — Sulfide Anion (S²⁻)

Z = 16, A = 32, Charge = −2

  1. Protons = Z = 16

  2. Neutrons = A − Z = 32 − 16 = 16

  3. Electrons = Z − (−2) = 16 + 2 = 18

Sulfur gained 2 electrons — giving it 18 electrons and a −2 charge. Same element, different electron count.

Example 3 — Calcium Ion (Ca²⁺)

Z = 20, A = 40, Charge = +2

  1. Protons = 20

  2. Neutrons = 40 − 20 = 20

  3. Electrons = 20 − 2 = 18

Calcium lost 2 electrons — now positively charged with 18 electrons remaining.

Neutral Atom vs Ion — Quick Comparison

Property

Neutral Atom

Cation (+)

Anion (−)

Protons

Z

Z

Z

Neutrons

A − Z

A − Z

A − Z

Electrons

Z

Z − charge

Z + charge

Overall charge

0

Positive

Negative

Example

Na (Z=11)

Na⁺ (10e⁻)

S²⁻ (18e⁻)

Atomic Number vs Mass Number — Key Differences

 

Atomic Number (Z)

Mass Number (A)

What it counts

Protons only

Protons + Neutrons

Changes between elements?

Yes — defines element

Yes

Changes between isotopes?

No

Yes

Found on periodic table?

Yes

No (atomic mass shown instead)

Always whole number?

Yes

Yes

Fun Fact That'll Make You Laugh 😄

Atoms are 99.9999999999996% empty space.

If you scaled a hydrogen atom up to the size of a football stadium, the nucleus would be about the size of a marble sitting in the center.

Everything you've ever touched, sat on, eaten, or built — is essentially empty space held together by electromagnetic forces convincing itself it's solid. Physics is just a very convincing illusion. 😂

FAQs

How do you calculate the number of neutrons in an atom?

Subtract the atomic number from the mass number: Neutrons = A − Z. Example: Carbon-14 has A=14 and Z=6, so neutrons = 14 − 6 = 8 neutrons.

How do you find the number of electrons in an ion?

For a neutral atom, electrons equal protons. For ions, adjust by the charge: Electrons = Z − charge. A positive charge means electrons lost; a negative charge means electrons gained. Example: O²⁻ (Z=8, charge=−2) has 8 + 2 = 10 electrons.

What is the difference between atomic number and mass number?

Atomic number (Z) counts only protons — it defines which element the atom is and never changes for that element. Mass number (A) counts protons plus neutrons — it changes between isotopes of the same element.

What makes two atoms isotopes of each other?

Same number of protons (same element), different number of neutrons. Carbon-12 and Carbon-14 are both carbon (6 protons) but have 6 and 8 neutrons respectively — making them isotopes with different mass numbers and different stability.

What is an ion and how does it form?

An ion is an atom that has gained or lost one or more electrons, giving it a net electrical charge. Losing electrons creates a positive ion (cation). Gaining electrons creates a negative ion (anion). The element's identity doesn't change — only the electron count and charge do.

Atomic number
Mass number
Charge
Number of protons
Number of neutrons
Number of electrons

Check our examples: