Atom Calculator - Atomic Number, Mass, Ions
Atom calculator computes atomic number, mass number, charge, protons, neutrons, electrons, and ion classification from any three atom inputs.
Atom Calculator
Results
What Is the Atom Calculator?
An atom calculator solves the atomic composition of any atom or ion from three small integers: the atomic number Z, the mass number A, and the ionic charge z. The atom calculator is built for first-year chemistry and physics homework where the question is 'how many protons, neutrons, and electrons does this atom have,' and it returns the integer counts and ion classification in one panel.
- • General chemistry homework: Compute the protons, neutrons, and electrons of sodium, sulfur, calcium, or any other element for a problem set that lists Z, A, and charge.
- • Ion shorthand: Translate notation such as S2- or Ca2+ into electron and proton counts without re-deriving the algebra for each example.
- • Isotope labelling: Read the mass number of an isotope such as carbon-13 or sodium-23 and confirm how many neutrons the nucleus contains.
- • Range check: Confirm an isotope sits inside the 1 to 118 IUPAC range and flag impossible mass numbers that fall below Z before building a balanced equation.
An atom is the smallest unit of ordinary matter that still carries the chemistry of an element, made of positively charged protons, electrically neutral neutrons, and negatively charged electrons. The proton count is fixed for each element and defines it on the periodic table, while the neutron count varies between isotopes and the electron count varies between ions. These three counts are the language of every atomic composition problem in a first-year course.
Once you know the proton count, the next step in the same atomic physics unit is orbital radius and photon wavelength, and the Bohr Model Calculator covers the hydrogen-like ion formulas that pair with this composition work.
How the Atom Calculator Works
The calculator applies three definitions that are universally used in chemistry and physics: the atomic number is the proton count, the mass number is the proton-plus-neutron count, and the net ionic charge is the proton count minus the electron count. Each output is a direct evaluation of one of those definitions.
- Z (atomic number): Number of protons in the nucleus. Defines which element the atom is. Valid range 1 to 118 per the IUPAC periodic table.
- A (mass number): Sum of protons and neutrons. Always a positive integer and never smaller than Z.
- z (ionic charge): Net charge of the atom. Zero means neutral, positive means a cation, negative means an anion.
- p (protons): Count of protons. Always equals Z.
- n (neutrons): Count of neutrons. Computed as A - Z.
- e (electrons): Count of electrons around the nucleus. Computed as Z - z.
All three inputs feed a single pure function that returns the protons, neutrons, electrons, nucleon total, and ion classification. The three definitions are invertible in principle, so from particle counts you can recover Z, A, and z on paper, but the form itself only accepts Z, A, and z.
According to the IUPAC Periodic Table of Elements, the atomic number Z is the number of protons in the nucleus and ranges from 1 for hydrogen to 118 for oganesson, the heaviest element with a confirmed discovery, which is the upper bound the calculator enforces.
Neutral sodium atom Na (Z=11, A=23, z=0)
Z = 11, A = 23, z = 0
p = Z = 11; n = A - Z = 23 - 11 = 12; e = Z - z = 11 - 0 = 11
p = 11, n = 12, e = 11, classification = Neutral atom
Sodium-23 has 11 protons, 12 neutrons, and 11 electrons, matching the most abundant sodium isotope in nature.
According to the periodic table overview (IUPAC reference: https://iupac.org/what-we-do/periodic-table/), the atomic number Z is the number of protons in the nucleus and ranges from 1 for hydrogen to 118 for oganesson, the heaviest element with a confirmed discovery.
According to NIST Atomic Weights and Isotopic Compositions, the mass number A equals the total number of protons and neutrons in the nucleus and is the integer used in isotope names such as sodium-23 or carbon-13.
After you confirm the proton and neutron counts, the Mole Molar Mass Calculator uses the published atomic mass to convert between moles and grams for the same first-year chemistry stoichiometry problems.
Key Concepts Explained
Four ideas govern every atom: the atomic number, the mass number, the difference between ions and neutral atoms, and the isotope family. Each idea maps to a single output on the calculator.
Atomic number Z
The atomic number is the count of protons in the nucleus and is what identifies the element. Every atom of a given element has the same Z, no matter where on Earth or in the universe it was made.
Mass number A
The mass number is the total count of protons plus neutrons. Because electrons weigh about 1,836 times less than a proton, the electron mass contributes less than 0.1 percent of the atomic mass and is ignored.
Ions: cations and anions
A cation has more protons than electrons and a positive charge, while an anion has more electrons than protons and a negative charge. The ionic charge z in the calculator drives the electron count and the classification.
Isotopes
Atoms of the same element with different neutron counts are isotopes. Sodium-23 and sodium-22 are both sodium but have 12 and 11 neutrons respectively. The mass number tells you which isotope you have.
These four ideas let you read any chemical notation. The atomic symbol with a left subscript and left superscript gives Z and A directly; a right superscript gives the ionic charge. The mass number is an integer count, not the measured atomic mass; real atomic masses differ slightly because of binding energy and the small electron mass.
Stoichiometry needs the standard atomic weight from NIST atomic weights rather than the integer mass number, and the Grams to Moles Calculator converts between grams and moles for the balanced equation once that measured weight is in hand.
How to Use This Calculator
Enter the atomic number, mass number, and ionic charge of the atom to study. The result panel updates in real time as you change any field, and the Reset button restores the sodium defaults.
- 1 Enter the atomic number: Type the Z value of the element from the periodic table, between 1 (hydrogen) and 118 (oganesson).
- 2 Enter the mass number: Type A as the integer count of protons plus neutrons in the specific isotope you want.
- 3 Enter the ionic charge: Type z as the net charge on the atom: 0 for a neutral atom, +1 for a singly charged cation, -2 for a doubly charged anion, and so on.
- 4 Read the particle counts: The result panel reports p, n, and e derived from the three definitions, with ion classification (Neutral atom, Cation, or Anion) set from the sign of z.
- 5 Compare with a textbook example: Try one of the worked examples (sodium Na, sulfide S2-, calcium Ca2+) to confirm the panel matches the textbook answer.
For sodium-23, leave Z = 11, A = 23, z = 0. The result panel should show 11 protons, 12 neutrons, 11 electrons, classification Neutral atom, and 23 total nucleons. Switch to sulfide by setting Z = 16, A = 32, z = -2 and you should see 16 protons, 16 neutrons, 18 electrons, classification Anion.
The ionic charge rule used here (electrons = Z - z) is the same convention used for hydrogen and hydroxide ion concentrations, so the pH pOH Calculator covers the acid-base side of the same general chemistry course.
Benefits of Using This Calculator
The atom calculator is useful when a chemistry, physics, or biology question asks for atomic composition and you want a quick answer without rebuilding the formulas by hand.
- • Direct integer answers: Returns the proton, neutron, and electron counts as whole numbers, matching the integer answers a chemistry textbook expects.
- • Cation and anion classification: Labels the species as a neutral atom, cation, or anion from the sign of the ionic charge, so the sign convention is never ambiguous.
- • Three worked examples included: Sodium, sulfide, and calcium are pre-described in the page so you can sanity-check the calculator against a known isotope.
- • Built-in range checks: Rejects mass numbers smaller than Z, atomic numbers outside 1 to 118, and charges outside the published stable-ion range so impossible inputs cannot slip through silently.
- • IUPAC range support: Covers the full range of confirmed elements up to oganesson (Z = 118), matching the published IUPAC periodic table.
For one-off homework problems the calculator delivers the answer in seconds, and the worked examples make it easy to confirm your work without a spreadsheet. For larger stoichiometry, look up the standard atomic weight for the isotope and pair that measured value with a moles or grams-to-moles tool to move from atomic composition to chemical quantities.
Factors That Affect Results
Three input factors change every output, and the calculator surfaces a few model caveats worth knowing before quoting a result.
Atomic number Z
Drives the proton count and sets the identity of the element. Changing Z switches the answer to a different element even if mass and charge stay the same.
Mass number A
Drives the neutron count through n = A - Z. Switching from A = 23 to A = 24 for sodium moves the nucleus from 12 to 13 neutrons without changing the element.
Ionic charge z
Drives the electron count through e = Z - z and sets the ion classification. A positive z gives a cation, a negative z gives an anion, and z = 0 gives a neutral atom.
Choice of isotope
Different isotopes of the same element share Z but differ in A and therefore in neutron count. Sodium-22 and sodium-23 are both sodium but have different n values.
- • The calculator reports integer particle counts, not measured atomic mass. Real atomic masses differ slightly from the integer mass number because of binding energy and the small electron mass.
- • Electron configuration is not modeled. The output only reports the total electron count from e = Z - z and does not assign those electrons to specific shells, so excited-state and open-shell species give the same integer answer as a closed-shell ground state.
- • Beyond element 118 the published IUPAC table has no confirmed entries, so the calculator caps Z at 118.
Stoichiometry needs the standard atomic weight from NIST atomic weights, not the integer mass number; the integer A is the nucleon count, while the standard atomic weight in g/mol is what feeds a moles or grams-to-moles tool. For atoms with the same Z and A but different energy states, such as metastable nuclear isomers, the calculator returns the same composition.
As published by Wikipedia - Atom, an atom is the smallest unit of ordinary matter that forms a chemical element and is composed of protons, neutrons, and electrons.
Mass percent of each element in a compound depends on the atomic mass values that follow from the composition reported here, and the Percent Composition Calculator shows how those percentages sum to 100 percent in a real compound.
Frequently Asked Questions
Q: What does the atom calculator compute?
A: The atom calculator takes the atomic number Z, mass number A, and ionic charge z of any atom or ion and returns the number of protons, neutrons, electrons, total nucleons, and ion classification.
Q: How do you find the number of protons, neutrons, and electrons in an atom?
A: Protons equal the atomic number Z. Neutrons equal the mass number A minus Z. Electrons equal Z minus the ionic charge z, so e = Z - z in any ion.
Q: What is the difference between atomic number and mass number?
A: The atomic number Z counts only protons and identifies the element, while the mass number A counts protons plus neutrons and identifies a specific isotope. Sodium has Z = 11 and its dominant isotope has A = 23.
Q: How do you calculate the charge of an ion from protons and electrons?
A: Subtract the electron count from the proton count: z = p - e. Calcium with 20 protons and 18 electrons has z = +2; sulfide with 16 protons and 18 electrons has z = -2.
Q: What is the mass number of a helium atom that has 2 neutrons?
A: Helium has Z = 2, so A = p + n = 2 + 2 = 4. That isotope is helium-4, the dominant helium isotope in nature and the form used in balloon gas.
Q: What is the atomic number for 6 protons, 7 neutrons, and 6 electrons?
A: Z equals the proton count, so Z = 6, which is carbon. A = 6 + 7 = 13, which makes this the carbon-13 isotope used in NMR spectroscopy.