Every atom is built from three kinds of particle: protons and neutrons packed into a tiny nucleus, and electrons moving in shells around it. Three numbers describe any atom or ion completely: how many protons it has, how many neutrons it has, and how many electrons it has. This free atom calculator works out all three from the atomic number, the mass number and the ionic charge, and it names the element those numbers belong to.
At the defaults, carbon-12, with atomic number 6, mass number 12 and charge 0, the answer is 6 protons, 6 neutrons and 6 electrons, a neutral atom of carbon. Change any one input and the picture changes with it: the nucleus grows or shrinks, its mix of proton and neutron balls changes, and the electron shells gain or lose dots.
Protons equal the atomic number, neutrons equal the mass number minus the atomic number, and electrons equal the atomic number minus the charge. Charge is limited to -3 to +3, which covers the ions you meet in school and university chemistry. The diagram uses the simplified Bohr picture of electron shells, not orbitals.
Please check the inputs: the atomic number must be a whole number from 1 to 118, the mass number must be a whole number at least as large as the atomic number, and the charge must be a whole number from -3 to +3.
| Atom | Z | A | Protons | Neutrons | Electrons |
|---|
At the defaults, Carbon-12, the C-12 row is highlighted. Every row uses the same three formulas: protons equal Z, neutrons equal A minus Z, and electrons equal Z minus the charge, with a charge of 0 for every atom in this table.
ADVERTISEMENT
Founder & CEO, Techraxy
Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.
User Ratings:
ADVERTISEMENT
ADVERTISEMENT
An atom calculator is a tool that turns the three numbers that define an atom into its particle counts. The atomic number, written Z, is the number of protons in the nucleus, and it is what fixes the element: 6 protons always means carbon, 11 protons always means sodium, with no exceptions. The mass number, written A, is the total number of nucleons, protons plus neutrons, in one specific isotope. The ionic charge, written q, says how many electrons the atom has gained or lost.
The three formulas are short. Protons equal the atomic number, p = Z. Neutrons equal the mass number minus the atomic number, n = A – Z. Electrons equal the atomic number minus the charge, e = Z – q. A neutral atom has equal protons and electrons, so its charges cancel exactly. An ion has gained or lost electrons only, never protons or neutrons: losing electrons gives a positive ion, called a cation, and gaining electrons gives a negative ion, called an anion.
Atoms of the same element with different neutron counts are isotopes of that element. Carbon-12 and carbon-14 are both carbon, because both have 6 protons, but carbon-12 has 6 neutrons and carbon-14 has 8. The mass number is what tells them apart. The calculator takes the mass number as given, for one specific isotope, and it does not look up the most common isotope or the average atomic mass of the element.
The calculator covers all 118 confirmed elements, hydrogen at Z = 1 through oganesson at Z = 118, with the names and symbols approved by IUPAC, the International Union of Pure and Applied Chemistry. The names of the four heaviest elements, nihonium, moscovium, tennessine and oganesson, were approved by IUPAC in 2016. Element spellings follow IUPAC: aluminium, caesium and sulfur.
Enter the atomic number Z, from 1 to 118. Then enter the mass number A, which must be at least as large as the atomic number, because the mass number counts the protons as well as the neutrons. Then enter the ionic charge, from -3 to +3, leaving it at 0 for a neutral atom. The calculator updates as you type, and the Calculate button runs it again at any time.
Read the results in order. The element line names the element and gives its symbol. The isotope line writes the isotope as the element name, the mass number and the isotope symbol, for example Carbon-12 (12C). Then come the three counts: protons, neutrons and electrons, followed by the nucleon count, which repeats the mass number. The net charge line says whether the atom is neutral, a cation or an anion, with the charge in brackets.
The diagram shows the atom as a Bohr model: a nucleus of blue proton balls and grey neutron balls, with amber electron dots on rings around it. The nucleus grows with the mass number, the ball mix follows the proton to neutron ratio, and the rings fill from the inside out with capacities 2, 8, 18, 32, 32, 18, 8. The diagram is a simplified picture, not a scale drawing: real electrons occupy orbitals, not neat rings, and a real nucleus is far smaller relative to the atom than the picture shows.
The Compare Atoms tab puts eight common atoms side by side, hydrogen-1, helium-4, carbon-12, nitrogen-14, oxygen-16, sodium-23, iron-56 and gold-197, with the protons, neutrons and electrons of each. The row matching the atom you entered is highlighted, so you can check your result against a familiar atom at a glance.
The formulas are protons equal Z, neutrons equal A minus Z, and electrons equal Z minus q. Written out for the defaults, carbon-12 with Z = 6, A = 12 and q = 0: protons equal 6, neutrons equal 12 minus 6, which is 6, and electrons equal 6 minus 0, which is 6. The charge is 0, so the atom is neutral, and Z = 6 means the element is carbon.
The mass number check is part of the formula, not an afterthought. Because A counts protons plus neutrons, A can never be smaller than Z. If you enter a mass number below the atomic number, the calculator stops with the message that the mass number cannot be smaller than the atomic number, and the result fields are dashed out until the inputs are fixed.
The charge formula works the same way for ions. A positive charge means electrons were lost, so the electron count falls below the proton count. A negative charge means electrons were gained, so the electron count rises above the proton count. The charge can never exceed the atomic number in the positive direction, because that would give a negative number of electrons, and the calculator stops with an error if you try.
Take oxygen-16, with atomic number 8, mass number 16 and charge 0. First the protons: p = Z = 8. Then the neutrons: n = A – Z = 16 – 8 = 8. Then the electrons: e = Z – q = 8 – 0 = 8. The atom is neutral, because the charge is 0, and Z = 8 means the element is oxygen, so the isotope is oxygen-16 (16O). The nucleus holds 8 protons and 8 neutrons, and the 8 electrons fill two shells, 2 in the first and 6 in the second.
The same three steps work for an ion. Take the sodium ion Na+, with atomic number 11, mass number 23 and charge +1. Protons: p = Z = 11. Neutrons: n = A – Z = 23 – 11 = 12. Electrons: e = Z – q = 11 – 1 = 10. The sodium atom lost one electron, so it has 11 protons but only 10 electrons, and it is a cation with a +1 charge. The chloride ion Cl-, with atomic number 17, mass number 35 and charge -1, goes the other way: 17 protons, 35 – 17 = 18 neutrons, and 17 – (-1) = 18 electrons, an anion with a -1 charge.
The first benefit is identifying the element from a single number. The atomic number is the element: give the calculator Z = 26 and it answers iron, Z = 79 and it answers gold, Z = 92 and it answers uranium. Students who are learning the periodic table can check any element from hydrogen to oganesson without turning pages, and the symbol comes with the name, which matters for the eleven symbols that do not match their English names, such as Na for sodium, Fe for iron and Au for gold.
The second benefit is checking isotope arithmetic at a glance. Isotope questions always come down to the same subtraction, neutrons equal A minus Z, and the common slip is to subtract the wrong way or to confuse the mass number with the atomic mass on the periodic table. The calculator shows the subtraction written out, so carbon-14 gives 14 – 6 = 8 neutrons, and uranium-238 gives 238 – 92 = 146 neutrons, with the working visible.
The third benefit is getting ion electron counts right. The electron count of an ion is the step students get wrong most often, because the sign feels backwards: a positive ion has fewer electrons, not more. The calculator states the rule plainly, electrons equal Z minus the charge, and shows it working: Na+ has 10 electrons, Cl- has 18, and a neutral atom always has exactly as many electrons as protons.
The fourth benefit is seeing the atom, not just the numbers. The diagram makes the structure concrete: the nucleus grows as the mass number grows, the proton and neutron balls change their mix, and the electron shells fill up ring by ring. Watching the shells fill as the electron count rises from 1 for hydrogen to 92 for uranium is a faster way to learn shell capacities than reading a list of them.
Use the atomic number Z, the mass number A and the charge q. Protons equal Z, neutrons equal A minus Z, and electrons equal Z minus q. For carbon-12, with Z = 6, A = 12 and q = 0, that gives 6 protons, 12 – 6 = 6 neutrons, and 6 – 0 = 6 electrons. For an ion, the charge changes only the electron count: Na+ has 11 protons, 12 neutrons and 10 electrons.
The atomic number, Z, is the number of protons in the nucleus, and it fixes which element the atom is. The mass number, A, is the total number of protons plus neutrons in one specific isotope. The two are linked by the neutron count: neutrons equal A minus Z. Two atoms with the same atomic number but different mass numbers are isotopes of the same element, such as carbon-12 and carbon-14.
Each element has exactly one atomic number, and the periodic table is ordered by it, from hydrogen at 1 to oganesson at 118. Look up the number in the table and you have the element and its symbol. This calculator carries the full table of 118 elements, so entering Z = 26 gives iron (Fe) and entering Z = 79 gives gold (Au) without any further step.
A neutral sodium atom has 11 protons and 11 electrons. The sodium ion Na+ has lost one electron, so it has 11 protons but only 10 electrons, and the missing negative charge leaves it with a +1 charge. The formula is electrons equal Z minus the charge: 11 – 1 = 10. A positive ion always has fewer electrons than protons, and a negative ion always has more.
No. Neutrons change only the isotope, never the element. Carbon-12 and carbon-14 are both carbon because both have 6 protons; they differ only in neutrons, 6 against 8. Only the proton count decides the element, so changing the number of protons is the only way to change one element into another. Changing the electron count changes the charge, giving an ion of the same element.
The Atom — with the structure of the atom, protons and neutrons in the nucleus, electrons in shells, and the atomic number as the proton count that defines the element.
The Atomic number — with Z as the number of protons, the mass number A as protons plus neutrons, and the periodic table ordered by atomic number from hydrogen to oganesson.
The Periodic Table of the Elements — the official table from the International Union of Pure and Applied Chemistry, with the element names, symbols and atomic numbers used here.
The Periodic Table of Elements — from the National Institute of Standards and Technology, with the element names, symbols and atomic numbers.
The Ion — with cations formed by losing electrons, anions formed by gaining electrons, and the electron count of an ion following from its charge.
This calculator works out proton, neutron and electron counts from the atomic number, mass number and charge you enter, using the standard formulas, and it is for learning, homework and checking isotope and ion questions only. It takes the mass number as given for one specific isotope: it does not look up the most common isotope of an element, and the mass number is not the same as the average atomic mass printed on the periodic table, which is a weighted average over all the natural isotopes. The charge is limited to -3 to +3, which covers the ions met in school and university chemistry, but ions with larger charges exist, for example in transition metal compounds. The diagram is a simplified Bohr model with electrons on rings: real electrons occupy orbitals, the shells are not hard rings, and a real nucleus is far smaller relative to the atom than the picture shows. Always check a result against your course notes or textbook before quoting it in assessed work.
Last updated: 29 November 2026
ADVERTISEMENT
ADVERTISEMENT