How Do You Calculate the Number of Protons, Neutrons, and Electrons in an Atom?

To calculate the number of protons, neutrons, and electrons in an atom, you need to know its atomic number, mass number, and electrical charge. These values reveal how many of each subatomic particle the atom contains.

The rules are straightforward:

  • Protons: The atomic number tells you how many protons an atom has.
  • Neutrons: Subtract the atomic number from the mass number.
  • Electrons: For a neutral atom, the number of electrons equals the number of protons. For a charged atom, adjust the electron count according to its charge.

For example, a neutral carbon-12 atom has 6 protons, 6 neutrons, and 6 electrons. Carbon’s atomic number is 6, and its mass number is 12. Because the atom has no overall electrical charge, its six positive protons balance its six negative electrons.

Understanding these calculations begins with the structure of an atom and the information provided by the periodic table.

Understand the three main subatomic particles

Atoms consist of a tiny central nucleus surrounded by electrons. The nucleus contains protons and, in most atoms, neutrons. Electrons occupy regions around the nucleus called orbitals, which describe where electrons are likely to be found.

Each of these particles has distinct properties that determine how an atom behaves.

Protons carry a positive electrical charge. The number of protons defines the element. Every carbon atom has six protons, every oxygen atom has eight, and every gold atom has 79. Changing the number of protons changes the atom into a different element.

Neutrons have no electrical charge. They contribute to an atom’s mass and help influence the stability of its nucleus. Atoms of the same element can contain different numbers of neutrons, producing different forms of that element called isotopes.

Electrons carry a negative electrical charge. They occupy regions outside the nucleus and play a central role in chemical bonding, electricity, and many other chemical processes. An atom can gain or lose electrons without changing its elemental identity.

Protons and neutrons have approximately the same mass, while an electron has much less mass. As a result, nearly all an atom’s mass comes from its nucleus.

Use the atomic number to find the number of protons

The atomic number is the number assigned to each element on the periodic table. It equals the number of protons in the nucleus of every atom of that element.

This is the most reliable starting point for calculating an atom’s subatomic particles.

For example:

  • Hydrogen has atomic number 1, so every hydrogen atom has 1 proton.
  • Nitrogen has atomic number 7, so every nitrogen atom has 7 protons.
  • Sodium has atomic number 11, so every sodium atom has 11 protons.
  • Calcium has atomic number 20, so every calcium atom has 20 protons.

The atomic number does not change when an atom gains or loses electrons or when the number of neutrons varies. Those changes affect the atom’s charge or isotope, not its elemental identity.

If you know an element’s name or symbol, locate it on the periodic table and find its atomic number. That number gives you the proton count directly.

Calculate the number of neutrons using the mass number

The mass number is the total number of protons and neutrons in an atom’s nucleus. To find the number of neutrons, subtract the atomic number from the mass number.

The formula is:

Number of neutrons = Mass number − Atomic number

Suppose an atom of sodium-23 has a mass number of 23. Sodium’s atomic number is 11, so it contains 11 protons.

The calculation is:

23 − 11 = 12 neutrons

Therefore, sodium-23 has 11 protons and 12 neutrons.

The mass number must be a whole number because it counts particles. It is usually written after an element’s name or symbol, as in carbon-12, sodium-23, and uranium-238.

An important distinction is that the mass number is not the same as the atomic mass commonly displayed on the periodic table. The mass number refers to one specific isotope and counts its protons and neutrons. The atomic mass shown on most periodic tables is generally a weighted average of the masses of an element’s naturally occurring isotopes, expressed in atomic mass units. It is often a decimal.

For instance, chlorine’s standard atomic weight is approximately 35.45, but individual chlorine atoms have mass numbers of 35 or 37 for its two stable isotopes. You should not subtract chlorine’s atomic number from 35.45 to calculate the neutrons in a particular chlorine atom. First identify the isotope and its whole-number mass number.

Calculate the number of electrons

The number of electrons depends on whether the atom is electrically neutral or has a net electrical charge.

In a neutral atom, the total positive charge from protons balances the total negative charge from electrons. Because each proton carries one unit of positive charge and each electron carries one unit of negative charge, a neutral atom has equal numbers of protons and electrons.

For example, a neutral oxygen atom has 8 protons and 8 electrons. Its eight positive charges and eight negative charges cancel, giving it no net electrical charge.

For a neutral atom:

Number of electrons = Atomic number

The calculation becomes slightly different when an atom gains or loses electrons. A charged atom is called an ion.

A positively charged ion, or cation, has lost one or more electrons. Since it has fewer negatively charged electrons than positively charged protons, its overall charge is positive.

A negatively charged ion, or anion, has gained one or more electrons. Its additional negative charges give it an overall negative charge.

To calculate the electron count for an ion, use its charge:

  • For a positive ion, subtract the charge magnitude from the atomic number.
  • For a negative ion, add the charge magnitude to the atomic number.

Consider magnesium, which has atomic number 12. A neutral magnesium atom has 12 electrons. When it forms a magnesium ion with a 2+ charge, it loses two electrons:

12 − 2 = 10 electrons

The Mg²⁺ ion therefore has 12 protons and 10 electrons.

Now consider chlorine, which has atomic number 17. A neutral chlorine atom has 17 electrons. A chloride ion, Cl⁻, has gained one electron:

17 + 1 = 18 electrons

The Cl⁻ ion has 17 protons and 18 electrons.

Remember that a charge of 2+ indicates a loss of two electrons, while a charge of 2− indicates a gain of two electrons. The charge tells you the difference between the number of protons and electrons, not the number of protons or neutrons.

Use the periodic table and isotope notation together

The periodic table provides the atomic number, which identifies the proton count. However, calculating neutrons requires the mass number of a particular isotope. Calculating electrons also requires knowing whether the atom is neutral or charged.

An isotope can be written in a form such as carbon-14 or with nuclear notation, in which the mass number appears at the upper left of the element symbol and the atomic number appears at the lower left.

For example, carbon-14 has an atomic number of 6 and a mass number of 14. Its particle counts are:

  • Protons: 6
  • Neutrons: 14 − 6 = 8
  • Electrons: 6, if the atom is neutral

If carbon-14 has a charge of 1−, it has gained one electron, giving it 7 electrons instead. Its proton and neutron counts remain unchanged.

When reading the periodic table, avoid confusing the element’s atomic number with its displayed atomic mass. The atomic number is always a whole number and identifies the element. The displayed atomic mass is usually a decimal and does not necessarily represent the mass number of any individual atom.

If a problem gives only the element and its atomic number, you can determine the number of protons. You can also determine the electron count if the atom is specified as neutral. To calculate the exact number of neutrons, you need the mass number or enough information to identify the isotope.

Work through examples of different atoms

Applying the same rules to several elements helps show how the calculations work in practice.

Atom or ionAtomic numberMass numberChargeProtonsNeutronsElectrons
Hydrogen-1110101
Carbon-126120666
Oxygen-168160888
Sodium-2311230111211
Magnesium-24 ion12242+121210
Chlorine-35 ion17351−171818
Calcium-40 ion20402+202018

Each row follows the same process. The atomic number gives the proton count, the mass number minus the atomic number gives the neutron count, and the charge determines whether the electron count matches, falls below, or exceeds the proton count.

For example, calcium-40 has 20 protons and 20 neutrons. A neutral calcium atom would also have 20 electrons. If it forms a Ca²⁺ ion, it loses two electrons and has 18 remaining. The nucleus does not change during this ordinary ion formation, so the proton and neutron counts stay the same.

Understand why isotopes and ions have different particle counts

Isotopes and ions differ in ways that are easy to confuse, but they involve different parts of an atom.

Isotopes differ in their number of neutrons. Every carbon isotope has six protons, but carbon-12 has six neutrons while carbon-14 has eight. Both are carbon because they have the same atomic number. Their different neutron counts give them different mass numbers and can affect nuclear stability.

Ions differ in their number of electrons. A sodium atom and a sodium ion both have 11 protons. A neutral sodium atom has 11 electrons, whereas Na⁺ has 10. The electron loss creates a positive charge but does not turn sodium into another element.

These distinctions matter because atomic identity, mass, and electrical charge are related but separate properties. Protons determine which element an atom is. Protons and neutrons together determine its mass number. The balance between protons and electrons determines its net electrical charge.

In ordinary chemical reactions, atoms can gain, lose, or share electrons, but their nuclei generally remain unchanged. Changes in the number of protons or neutrons involve nuclear processes rather than ordinary chemical bonding.

Check your answer using the atom’s charge and mass number

After calculating the particle counts, you can verify whether the numbers are consistent.

First, add the protons and neutrons. Their total must equal the stated mass number. If an atom has 11 protons and 12 neutrons, for example, its mass number is 23.

Next, compare the proton and electron counts. If the numbers are equal, the atom is neutral. If there are more protons than electrons, the atom has a positive charge. If there are more electrons than protons, it has a negative charge.

For an ion, the net charge in units of the elementary charge is the number of protons minus the number of electrons. An atom with 12 protons and 10 electrons has a charge of 2+, while one with 17 protons and 18 electrons has a charge of 1−.

These checks help catch common errors, such as adding the atomic number to the mass number instead of subtracting it, treating a periodic-table decimal as a mass number, or assuming that a charged ion has the same number of electrons as protons.

The essential method is simple: use the atomic number to find protons, subtract it from the mass number to find neutrons, and use the atom’s charge to determine electrons. Once you know those three pieces of information, you can calculate the subatomic particle counts for most introductory chemistry problems.

Looking For Something Else?