The nucleus

Atomic Number and Mass Number

The atomic number Z of an atom is the number of protons in its nucleus, and the mass number A is the total number of protons and neutrons, so A = Z + N. The atomic number decides which element an atom is, while the mass number tells you which isotope of that element you have.

3D illustration of an atomic nucleus as a cluster of red proton spheres and gray neutron spheres inside a faint glow
The protons set the atomic number; protons and neutrons together set the mass number.

At a Glance

Atomic number (Z) is the number of protons in a nucleus and identifies the element. Mass number (A) is the number of protons plus neutrons, A = Z + N, so the number of neutrons is N = A - Z. For example, iron-56 has Z = 26 and A = 56, so it has 30 neutrons.

Atomic number
Z = number of protons
Mass number
A = number of protons + neutrons
Formula
A = Z + N, so N = A − Z
Notation
AZX, for example 5626Fe
Units
Both are pure whole numbers, with no unit
Electrons in a neutral atom
Equal to Z
On this page
  1. What Are Atomic Number and Mass Number?
  2. Atomic Number and Mass Number Explained Simply
  3. Why Does the Atomic Number Define the Element?
  4. How Do You Write Atomic Number and Mass Number in Nuclear Notation?
  5. How Do You Find the Number of Protons, Neutrons and Electrons?
  6. Is Mass Number the Same as Atomic Mass?
  7. What Are Isotopes, Isobars and Isotones?
  8. How Do Z and A Change in Radioactive Decay?
  9. How Do Neutron and Proton Numbers Affect Stability?
  10. How Were Atomic Number and Mass Number Discovered?
  11. Practice Atomic Number and Mass Number Problems
  12. Common Misconceptions
  13. Key Facts
  14. Quiz
  15. FAQ

What Are Atomic Number and Mass Number?

Every atom has a tiny, dense nucleus built from two kinds of particles, protons and neutrons, known together as nucleons. Two whole numbers describe what that nucleus holds.

The atomic number, written Z, counts only the protons. The mass number, written A, counts all the nucleons, protons and neutrons together. The number of neutrons, N, is simply the difference between the two.

Both numbers are counts, so they are always positive whole numbers and carry no unit. A carbon nucleus with 6 protons and 6 neutrons has Z = 6 and A = 12. Change the proton count and you have a different element; change only the neutron count and you have a different isotope of the same element.

Atomic Number and Mass Number Explained Simply

Think of a nucleus as a small bag of marbles in two colors: red for protons and gray for neutrons. The atomic number is the number of red marbles. The mass number is the number of marbles of both colors.

The red marbles give the bag its name. A bag with 8 red marbles is always oxygen, no matter how many gray ones are added. Gray marbles change how heavy the bag is and sometimes whether it holds together, but they never change its name.

So if someone tells you the atomic number, you know the element. If they also tell you the mass number, you know exactly which version of that element you are holding.

Hands building a model nucleus from red and gray balls on a desk, showing protons and neutrons counted for Z and A
Counting red balls gives the atomic number; counting all the balls gives the mass number.

Why Does the Atomic Number Define the Element?

Chemistry is controlled by electrons, and electrons are controlled by the nucleus. Each proton carries a charge of +e, about 1.602 × 10⁻¹⁹ C, so a nucleus with Z protons has a total charge of +Ze. In a neutral atom, exactly Z electrons surround it to balance that charge.

The number and arrangement of those electrons decide how the atom bonds, what color its compounds have and how it reacts. Because the electron count follows from Z, the atomic number fixes all of an element's chemistry. That is why the periodic table is ordered by Z, from hydrogen at 1 up to oganesson at 118.

The field diagram below shows the electric field around a nucleus with three protons, the nucleus of lithium. Its shape and strength depend only on the charge, so every lithium nucleus, whatever its neutron count, pulls on electrons in the same way.

Electric field lines radiating outward from a lithium nucleus with three protons, a field set only by the atomic number
The field around a nucleus depends only on its proton count, so it is the same for every isotope of an element.

How Do You Write Atomic Number and Mass Number in Nuclear Notation?

Physicists write a specific nucleus, called a nuclide, as ZAX, where X is the chemical symbol. The mass number sits at the top left and the atomic number at the bottom left. Iron-56, for example, is 2656Fe, and helium-4 is 24He.

Because the symbol already tells you the element, the atomic number is sometimes left off, as in 56Fe. In everyday writing people use the hyphen form instead: iron-56 or Fe-56, where the number after the name is always the mass number, never the atomic number.

The notation also covers single particles. A proton is 11p, a neutron is 01n and an electron in a nuclear equation is −10e. Writing every particle this way makes nuclear equations easy to check.

Example 2 Writing the symbol for a gold nucleus

A gold nucleus contains 79 protons and 118 neutrons. What is its mass number?

  1. Given:
    • atomic number (number of protons): Z=79
    • number of neutrons: N=118
  2. Formula: A=Z+N
  3. Substitute: Z=79,N=118
  4. Answer: A=197

This is the only stable isotope of gold, so every gold ring is made of atoms with this same mass number.

How Do You Find the Number of Protons, Neutrons and Electrons?

Three quick rules cover almost every question:

  • Protons equal the atomic number Z, read from the periodic table or the bottom-left number in the notation.
  • Neutrons equal the mass number minus the atomic number: N=A−Z.
  • Electrons equal Z in a neutral atom. For an ion, subtract the positive charge or add the negative charge.

A sodium ion, Na⁺, has Z = 11, so it has 11 protons but only 10 electrons. A chloride ion, Cl⁻, has 17 protons and 18 electrons. Neither ion has a different atomic number from its neutral atom, because ionization moves electrons, not protons. More on charged atoms is on our ion page.

The two numbers are linked by one simple relation. Here it is with each symbol and the rearranged forms for finding N or Z.

A=Z+N
What each symbol means
SymbolQuantitySI unit
Amass number (number of nucleons)dimensionless (1)
Zatomic number (number of protons)dimensionless (1)
Nnumber of neutronsdimensionless (1)

Rearranged to find another variable:

N=A−ZZ=A−N

Example 1 Neutrons in an iron nucleus

The most common form of iron is iron-56, and iron has atomic number 26. How many neutrons does an iron-56 nucleus contain?

  1. Given:
    • mass number (number of nucleons): A=56
    • atomic number (number of protons): Z=26
  2. Formula: N=A−Z
  3. Substitute: A=56,Z=26
  4. Answer: N=30

Iron-56 is one of the most tightly bound nuclei in nature, which is part of why iron is so common in the universe.

Is Mass Number the Same as Atomic Mass?

No, although the two are close. The mass number is a count of nucleons and is always a whole number. The atomic mass is a measured mass, usually given in atomic mass units (u), and is almost never a whole number.

Two effects create the gap. First, a proton is about 1.00728 u and a neutron about 1.00866 u, so nucleons do not weigh exactly 1 u each. Second, when nucleons bind into a nucleus, some mass is converted into binding energy, so a nucleus weighs a little less than its parts.

The atomic mass printed on the periodic table adds a third effect: it is an average over the element's natural isotopes. Chlorine is a mix of chlorine-35 and chlorine-37, which is why its listed value is about 35.45 rather than a whole number. A single atom, though, always has a whole-number mass number.

What Are Isotopes, Isobars and Isotones?

Comparing Z, A and N between two nuclei gives three useful family names:

  • Isotopes share the same Z but have different A. Chlorine-35 and chlorine-37 are isotopes.
  • Isobars share the same A but have different Z. Carbon-14 and nitrogen-14 both have 14 nucleons but are different elements.
  • Isotones share the same N. Carbon-13 and nitrogen-14 each have 7 neutrons.

Isobars matter in radioactive decay, because beta decay turns a nucleus into its neighboring isobar: the mass number stays fixed while the atomic number shifts by one.

How Do Z and A Change in Radioactive Decay?

Radioactive decay rearranges the nucleus, and each type of decay leaves a fingerprint on Z and A. In alpha decay the nucleus throws out a helium-4 nucleus, so Z falls by 2 and A falls by 4. In beta-minus decay a neutron turns into a proton, so Z rises by 1 while A stays the same. Gamma emission releases energy only, leaving both numbers unchanged.

Two bookkeeping rules always hold: the total of the top numbers is the same on both sides of a nuclear equation, and so is the total of the bottom numbers. These rules come from conservation of nucleon number and conservation of charge. The table below lists each decay type with an example, and the decay curve further down shows tritium, a hydrogen nucleus with Z = 1 and A = 3, slowly decaying away.

For a side-by-side view of the three classic radiation types, see alpha vs beta vs gamma radiation.

Example 3 Neutrons left after an alpha decay

Uranium-238 (Z = 92) emits an alpha particle and becomes a thorium nucleus with mass number 234 and atomic number 90. How many neutrons does the thorium nucleus have?

  1. Given:
    • mass number (number of nucleons): A=234
    • atomic number (number of protons): Z=90
  2. Formula: N=A−Z
  3. Substitute: A=234,Z=90
  4. Answer: N=144

Uranium-238 had 146 neutrons, so the alpha particle carried away exactly two of them along with two protons.

How each type of radioactive decay changes Z and A
Decay typeChange in ZChange in AExample
Alpha (α)−2−4Uranium-238 → thorium-234
Beta-minus (β⁻)+10Thorium-234 → protactinium-234
Beta-plus (β⁺)−10Carbon-11 → boron-11
Electron capture−10Potassium-40 → argon-40 (one of its branches)
Gamma (γ)00Excited nucleus → same nuclide, lower energy
Neutron emission0−1Helium-5 → helium-4
Source: Changes follow conservation of charge and nucleon number · Retrieved October 2026
Decay curve of tritium, hydrogen-3, halving about every 12.3 years as it turns into helium-3
Tritium (Z = 1, A = 3) decays to helium-3 (Z = 2, A = 3): the atomic number rises by one while the mass number stays the same.

How Do Neutron and Proton Numbers Affect Stability?

Not every combination of Z and N holds together. Protons repel each other electrically, and neutrons help by adding strong nuclear attraction without adding charge. Light nuclei are stable with roughly equal numbers of each, such as carbon-12 with 6 and 6.

Heavier nuclei need extra neutrons to dilute the growing repulsion. Iron-56 has about 1.15 neutrons per proton, gold-197 about 1.49 and uranium-238 about 1.59, as the table shows. Too many or too few neutrons and the nucleus becomes radioactive. Lead-208, with 82 protons and 126 neutrons, is the heaviest nucleus that is known not to decay. Our page on nuclear stability goes further.

Atomic number, neutron number and mass number of common nuclides
NuclideAtomic number Z (protons)Neutrons NMass number ANeutrons per proton
Hydrogen-11010
Helium-42241.00
Lithium-73471.33
Carbon-1266121.00
Nitrogen-1477141.00
Sodium-231112231.09
Aluminum-271314271.08
Chlorine-351718351.06
Chlorine-371720371.18
Iron-562630561.15
Silver-10747601071.28
Gold-197791181971.49
Lead-208821262081.54
Uranium-238921462381.59
Source: Neutron numbers and ratios computed with N = A − Z · Retrieved October 2026

How Were Atomic Number and Mass Number Discovered?

Early periodic tables were ordered by atomic mass, which caused a few awkward swaps. After Ernest Rutherford showed in 1911 that atoms have a small positive nucleus, the young British physicist Henry Moseley measured the X-rays given off by many elements in 1913. He found that the X-ray frequency rose in a regular pattern with a whole number that matched each element's position, giving the atomic number a physical meaning: the charge of the nucleus.

The mass number made full sense only after James Chadwick discovered the neutron in 1932. Before that, nobody could explain why helium's nucleus weighed about four times as much as a proton but carried only twice the charge. Chadwick's experiment, described on our neutron discovery page, settled it: the extra mass comes from neutral neutrons.

Practice Atomic Number and Mass Number Problems

Counting protons, neutrons and electrons becomes automatic after a dozen examples. Our atomic structure worksheets have printable sets with answer keys, and the nuclear physics formula sheet gathers A = Z + N with the decay and binding energy formulas. For the bigger picture of electrons and shells, read structure of the atom.

Common Misconceptions

Myth: The mass number is the same as the atomic mass on the periodic table.

Physics: The mass number is a whole-number count of nucleons in one nucleus. The periodic table value is a measured, averaged mass in atomic mass units and is rarely a whole number.

Myth: Adding or removing electrons changes the atomic number.

Physics: Electrons do not affect Z. An ion has the same atomic number as its neutral atom, only a different electron count.

Myth: The number after an element's name, as in carbon-14, is its atomic number.

Physics: That number is always the mass number. Carbon's atomic number is 6 in every one of its isotopes.

Myth: Changing the number of neutrons turns an atom into a different element.

Physics: Only the proton count sets the element. Extra or missing neutrons give a different isotope of the same element.

Key Facts

  • The atomic number Z is the number of protons in a nucleus and identifies the element.
  • The mass number A is the total number of protons and neutrons in the nucleus.
  • The number of neutrons is found with N = A − Z.
  • A neutral atom has as many electrons as its atomic number.
  • Nuclides are written with the mass number at the top left and the atomic number at the bottom left of the symbol.
  • Mass number is a whole-number count, while atomic mass is a measured mass in atomic mass units.
  • Alpha decay lowers Z by 2 and A by 4; beta-minus decay raises Z by 1 and leaves A unchanged.
Did you know? Hydrogen-1 is the only nucleus with a mass number equal to its atomic number and no neutrons at all; its nucleus is just a single proton.

Quick Quiz: How Well Do You Know Atomic Number and Mass Number?

6 questions. Tap an answer to check it.

  1. An atom has 17 protons and 20 neutrons. What is its mass number?

  2. Which number determines what element an atom is?

  3. How many neutrons are in sodium-23 (Z = 11)?

  4. In alpha decay, how do Z and A change?

  5. Carbon-14 and nitrogen-14 have the same:

  6. A Mg²⁺ ion has Z = 12. How many electrons does it have?

Frequently Asked Questions

What is the difference between atomic number and mass number?

The atomic number counts only the protons in a nucleus and tells you which element the atom is. The mass number counts protons and neutrons together and tells you which isotope of that element you have. Oxygen always has atomic number 8, but its mass number can be 16, 17 or 18 depending on how many neutrons are present.

How do you find the mass number of an atom?

Add the number of protons to the number of neutrons: A = Z + N. If you know the isotope name, the mass number is the number after the hyphen, as in sodium-23. If you are given a nuclide symbol, it is the small number at the top left. Electrons are not included, because their mass is tiny compared with nucleons.

How do you find the number of neutrons?

Subtract the atomic number from the mass number: N = A - Z. Look up the atomic number on the periodic table if it is not given. For aluminum-27, the atomic number is 13, so the nucleus contains 27 - 13 = 14 neutrons. The same subtraction works for every nuclide, from hydrogen to uranium.

What is the symbol for atomic number and mass number?

The atomic number is written Z and the mass number is written A. The neutron number uses N. In nuclear notation, A appears as a superscript and Z as a subscript to the left of the chemical symbol, so iron-56 is written with 56 on top and 26 below, in front of Fe. The letter Z is usually traced to the German word Zahl, meaning number.

Does the atomic number ever change?

In chemical reactions, never: atoms swap and share electrons, but protons stay put. In nuclear processes it can. Alpha decay lowers Z by 2, beta-minus decay raises it by 1, and beta-plus decay or electron capture lowers it by 1. Whenever Z changes, the atom becomes a different element, which is how uranium slowly turns into lead over billions of years.

Can two different elements have the same mass number?

Yes. Nuclei with the same mass number but different atomic numbers are called isobars. Carbon-14 and nitrogen-14 both contain 14 nucleons, but carbon has 6 protons and nitrogen has 7. In fact, carbon-14 turns into nitrogen-14 through beta decay, keeping the same mass number while its atomic number goes up by one.

Why is the mass number always a whole number?

Because it is a count. You cannot have part of a proton or part of a neutron in a nucleus, so the total number of nucleons is always an integer. Atomic masses, by contrast, are measured masses that include the slight differences between proton and neutron mass and the mass lost as binding energy, so they are rarely whole numbers.

How many electrons does an atom have?

A neutral atom has the same number of electrons as protons, so the electron count equals the atomic number. Ions break this rule: a positive ion has lost electrons and a negative ion has gained them. A calcium ion with a 2+ charge, for example, has 20 protons but only 18 electrons, while its atomic number remains 20.

What element has atomic number 1?

Hydrogen has atomic number 1, meaning every hydrogen nucleus has exactly one proton. Ordinary hydrogen has mass number 1 and no neutrons. Its heavier isotopes are deuterium, with mass number 2, and tritium, with mass number 3. Tritium is radioactive and decays into helium-3, raising its atomic number from 1 to 2 while keeping its mass number.

Sources

Constants come from NIST CODATA 2022 (public domain) and unit definitions from the BIPM SI Brochure (CC BY 4.0). Text, diagrams and illustrations are original work by Physics Tribune.

Physics Tribune Editorial Team
Written by our editors and checked against NIST and BIPM reference data. Every worked example is recomputed in code. Read our editorial policy. Last updated October 2026.