molecalculator

Moles & Molar Mass

Calculating Electrons, Protons, and Neutrons

Calculator No. 01-0701 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Calculate protons from an atom’s atomic number, neutrons by subtracting the atomic number from its mass number, and electrons by adjusting the proton count for the ion’s charge. Enter the atomic number, mass number, and charge below to find the numbers of each particle.

Formula

For an isotope written as AZX with charge q, the number of protons is p = Z, the number of neutrons is n = A − Z, and the number of electrons is e = Z − q. Here, Z is the atomic number (a whole-number count), A is the mass number (a whole-number count of nucleons), and q is the signed ion charge in units of the elementary charge. A positive q means electrons have been removed; a negative q means electrons have been added. The calculator treats all three inputs as numbers of particles or charge units, so no unit conversion is needed.

Worked Example

Use the default values: atomic number Z = 6, mass number A = 12, and charge q = 0.

  • Protons: p = Z = 6.
  • Neutrons: n = A − Z = 12 − 6 = 6.
  • Electrons: e = Z − q = 6 − 0 = 6.

The result is 6 protons, 6 neutrons, and 6 electrons: a neutral carbon-12 atom.

Assumptions

  • The inputs describe one atom or ion, not a sample containing many atoms.
  • Mass number is an integer for a specific isotope, not the decimal atomic weight shown on many periodic tables.
  • Ion charge is entered with its sign: for example, +2 is entered as 2 and −1 as -1.

What the Numbers Mean

An atom has a dense nucleus containing protons and neutrons, surrounded by electrons. The atomic number identifies the element: every carbon atom has 6 protons, every oxygen atom has 8, and every sodium atom has 11. Changing the proton count changes the element itself.

The mass number counts the particles in the nucleus, often called nucleons. It is the sum of protons and neutrons: A = Z + n. Therefore, rearranging gives n = A − Z. Electrons contribute very little to an atom’s mass compared with nucleons, so they are not included in the mass number.

For a neutral atom, positive proton charges and negative electron charges balance, so electrons equal protons. An ion has gained or lost one or more electrons. Its charge records the imbalance: a positive ion has fewer electrons than protons, while a negative ion has more.

How to Calculate Each Particle

  1. Find the atomic number. Look up the element on a periodic table. The atomic number Z is the number of protons.
  2. Identify the isotope’s mass number. Use a specified isotope, such as carbon-14, where 14 is the mass number. Subtract Z from A to get neutrons.
  3. Read the charge. Use the ion’s signed charge. Calculate electrons as Z − q. If no charge is given, assume the atom is neutral and set q to zero.

For example, sodium-23 has atomic number 11 and mass number 23. A neutral sodium-23 atom has 11 protons, 12 neutrons, and 11 electrons. A sodium ion with charge +1 still has 11 protons and 12 neutrons, but has 10 electrons: 11 − 1 = 10.

For a negative ion, the subtraction still works. A chloride ion, Cl−, has atomic number 17 and charge −1, so it has 17 − (−1) = 18 electrons. The minus sign in the charge is essential.

Isotopes, Ions, and Periodic-Table Values

Isotopes are atoms of the same element with different numbers of neutrons. Carbon-12 and carbon-14 both have 6 protons, but their neutron counts are 6 and 8, respectively. Their electron counts are also the same if both atoms are neutral; isotope identity alone does not determine charge.

Periodic tables commonly show an element’s standard atomic weight as a decimal, such as about 12.011 for carbon. This is a weighted average reflecting the natural abundances of isotopes, not the mass number of one atom. Do not subtract the atomic number from that decimal to calculate neutrons. First identify a particular isotope and use its integer mass number.

In isotope notation, the mass number is commonly written as a superscript to the left of the element symbol and the atomic number as a subscript. For example, 2311Na identifies sodium-23. The charge, when shown, is written as a superscript on the right of the symbol. The element symbol itself can also be used to look up Z.

Common Errors and Checks

  • Using atomic weight as mass number: an average atomic weight is not an isotope’s integer mass number. Use isotope notation or another reliable isotope-specific source.
  • Changing protons when calculating an ion: ordinary ion formation changes electrons, not the element’s proton count. Nuclear reactions are a different process.
  • Reversing the charge sign: use e = Z − q. A +2 ion has two fewer electrons than protons; a −2 ion has two more.
  • Forgetting a neutral charge: if no charge is specified, use q = 0. Then electron and proton counts are equal.

A useful check is that A must be at least Z for an ordinary nuclide, because the nucleus contains its protons plus zero or more neutrons. The electron count must also be zero or greater for a physically meaningful atom or ion. If a calculation produces a negative neutron or electron count, check that you used the right isotope, atomic number, and charge sign.

Frequently Asked Questions

How do I find the number of protons?
The number of protons is the element’s atomic number. Find the element on the periodic table; its atomic number is Z.

How do I calculate neutrons?
Subtract the atomic number from the isotope’s mass number: neutrons = A − Z. Use the mass number of a specific isotope, not the periodic table’s average atomic weight.

How do I calculate electrons in an ion?
Subtract the signed charge from the atomic number: electrons = Z − q. For a 2+ ion, subtract 2; for a 1− ion, subtract −1, which adds one electron.

How many electrons does a neutral atom have?
A neutral atom has the same number of electrons as protons, so its electron count equals its atomic number.

Do isotopes have different numbers of protons?
No. Isotopes of the same element have the same number of protons but different numbers of neutrons. Their electron counts match too if they have the same charge.

Can the mass number be a decimal?
No. Mass number counts protons and neutrons in one nucleus, so it is a whole number. A decimal on the periodic table is generally an average atomic weight, a different quantity.

Related

Formula used
in z | Atomic number | - | 6 | 0
in a | Mass number | - | 12 | 0
in q | Ion charge | elementary charge units | 0 | -10 | 10
out p | Protons | particles | z | 0
out n | Neutrons | particles | a - z | 0
out e | Electrons | particles | z - q | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →