Formula Reference
This calculator applies verified chemistry equations consistent with IUPAC standards and peer-reviewed references.
Related Concepts
Pro Tip
Always use whole-number mass numbers when calculating neutrons — periodic table decimal values are weighted averages, not single-isotope masses.
All chemistry calculators on this site are expert-verified. Always confirm results with your textbook or instructor for exam use.
Related Expert Tools
More precision tools in the same niche.
Atom Calculator Logic
What Is the Atom Calculator?
The Atom Calculator determines the number of protons, neutrons, and electrons in any atom or ion using two fundamental relationships from atomic theory: the atomic number defines the proton count, the mass number equals protons plus neutrons, and the ionic charge shifts the electron count up or down from the neutral value. Entering any two of the three core properties (atomic number, mass number, and charge) is sufficient to derive all six subatomic particle quantities. According to the Royal Society of Chemistry periodic table, every element is uniquely identified by its atomic number, making the proton count the single most important figure in atomic structure.
The calculator supports two input modes. The element picker mode lets you select from a list of common elements and automatically fills the atomic number and standard mass number, which you can override for isotope-specific calculations. Manual entry mode accepts any atomic number from 1 to 118 alongside a custom mass number, covering all elements in the periodic table including synthetic and radioactive species.
The Three Core Equations
Every atom calculation reduces to three equations. First, protons equal the atomic number: p = Z. The atomic number is fixed for a given element and does not change in any chemical reaction. Second, neutrons equal the mass number minus the atomic number: n = A - Z. This relationship explains why isotopes of the same element, which share an atomic number but differ in mass number, have different neutron counts. Carbon-12 has 6 neutrons while carbon-14 has 8 neutrons, yet both are carbon because Z = 6 in both cases. Third, electrons equal the atomic number minus the ionic charge: e = Z - z. For a neutral atom z = 0 so electrons equal protons. For a cation z is positive and the electron count falls below the proton count. For an anion z is negative and the electron count rises above the proton count.
Atoms vs Ions: What Changes and What Stays Fixed
A common point of confusion in introductory chemistry is understanding which particle counts can change and which cannot. Protons are locked in the nucleus and define the element. No chemical reaction adds or removes protons. Neutrons are also locked in the nucleus under normal chemical conditions and define the isotope. Electrons, by contrast, exist in shells around the nucleus and are routinely transferred between atoms in ionic bonding and redox reactions. When sodium (Z=11) loses one electron to chlorine (Z=17), it becomes Na+ with 10 electrons and chlorine becomes Cl- with 18 electrons. The Khan Academy overview of atomic structure explains this distinction clearly for students encountering it for the first time.
As a result, when working with ionic compounds in a chemistry problem, look into whether the formula specifies a charge. An element symbol with a superscript charge such as Fe3+ means the iron atom has lost 3 electrons, bringing its electron count from 26 down to 23. The calculator handles this automatically when you set the charge field to +3.
Isotopes and Why Mass Number Matters
The standard atomic mass printed on most periodic tables is not the mass of any single atom. It is a weighted average across all naturally occurring stable isotopes of that element, weighted by their natural abundance. Chlorine, for example, has a periodic table mass of approximately 35.45 because natural chlorine is roughly 75% chlorine-35 and 25% chlorine-37. When a chemistry problem specifies a particular isotope, such as Cl-35 or Cl-37, the mass number given is exact and the neutron count follows directly. The NIST Atomic Weights and Isotopic Compositions database provides reference data for all stable and long-lived radioactive isotopes.
Accuracy and Limitations
The subatomic particle counts produced by this calculator are exact given valid inputs because they follow from integer arithmetic: protons equal Z, neutrons equal A minus Z, electrons equal Z minus z. There is no approximation in these three relationships. The approximate atom mass in amu is calculated from published particle mass constants (proton 1.007276 amu, neutron 1.008665 amu, electron 0.000549 amu) and is accurate to three decimal places for the specific isotope entered. This value differs from the periodic table atomic weight because the periodic table gives a natural-abundance average rather than a single-isotope mass.
The calculator does not assess nuclear stability. Entering a neutron-to-proton ratio that corresponds to a radioactive isotope will return a valid particle count but will not flag the isotope as unstable. For stability assessment, carry out a check against a nuclear chart such as the National Nuclear Data Center NuDat database. The element picker covers 30 common elements. For less common elements, use manual entry mode with the atomic number and mass number from your periodic table. Given that manual entry accepts any Z from 1 to 118, all published elements including synthetic transuranic elements are supported.
The Most Common Atom Calculator Mistake in Chemistry Class
The single most frequent error when working out subatomic particle counts is confusing atomic mass with mass number. Atomic mass is a decimal value representing the weighted average of isotope masses. Mass number is always a whole integer representing the exact proton plus neutron count for one specific isotope. If you enter 35.45 as the mass number for chlorine, the neutron calculation returns 18.45, which is not physically meaningful. Always use a whole-number mass number when calculating neutrons. If you are working from a periodic table and the mass shown is a decimal, round to the nearest integer to get the most common isotope, or use the specific isotope mass number from your problem. Building up this habit early prevents the same error from carrying forward into stoichiometry and nuclear chemistry problems later in the course.
Frequently Asked Questions
Muhammad Shahbaz Siddiqui
Founder, TheCalculatorsHub
How I used the Atom Calculator to catch an isotope mix-up in a student worksheet
In March 2026, I was reviewing a chemistry worksheet sent in by a reader who was studying for a GCSE exam. One question asked for the number of neutrons in a chlorine-35 atom, and the student had answered 18.45 by subtracting the atomic number (17) from the periodic table atomic mass (35.45). The answer looked plausible but was wrong in a specific way that reveals a very common misconception: the student had used the average atomic mass rather than the mass number of the specific isotope.
I ran chlorine-35 through this calculator with Z=17, A=35, and charge=0. The result was immediately clear: 17 protons, 18 neutrons, 17 electrons. The periodic table value of 35.45 is a weighted average of chlorine-35 (75.77% natural abundance) and chlorine-37 (24.23%), as documented in the NIST Atomic Weights and Isotopic Compositions database. When a question specifies an isotope by name (chlorine-35, carbon-14, uranium-238), the number after the hyphen is the mass number, which is always a whole integer. The periodic table decimal is never the right input for a neutron count calculation.
The student corrected the worksheet using the calculator to work through five more isotope questions, and all five answers came out as whole integers as expected. The key insight was building up the habit of distinguishing mass number from atomic mass before entering a value, which the calculator enforces by design because it only accepts integer inputs for the mass number field.
