Skip to main content
Skip to calculator
Advertisement

Last updated: July 3, 2026

Atom Calculator

Quick Answer

The atom calculator determines atomic composition from Z, A, and charge. It uses protons = Z, neutrons = A − Z, and electrons = Z − charge. A positive charge represents lost electrons, while a negative charge represents gained electrons. The tool also interprets common elements from atomic number and can infer Z from proton count or A from protons plus neutrons.

To calculate an atom's composition, protons equal the atomic number, neutrons equal mass number minus atomic number, and electrons equal atomic number minus ionic charge. For carbon twelve, Z is six and A is twelve, so it has six protons, six neutrons, and six electrons.

Key Takeaways

  • Atomic number Z equals the number of protons and identifies the element.
  • Mass number A equals protons plus neutrons, so neutrons = A − Z.
  • Electron count equals Z − charge; positive charge lowers electrons and negative charge raises them.
  • Isotopes of the same element have the same protons but different neutrons.
  • The calculator can also infer Z from proton count or A from protons plus neutrons.
Helpful
Not helpful
Save as image
Share
Embed
Cite
Write feedback

Formula

protons = Z; neutrons = A − Z; electrons = Z − charge

Where:

  • Z=Atomic number(count)
  • A=Mass number(count)
  • q=Ionic charge (positive for cations, negative for anions)(charge units)
  • p⁺=Number of protons(count)
  • n⁰=Number of neutrons(count)
  • e⁻=Number of electrons(count)
Atom Composition — Protons, Neutrons, and ElectronsA Bohr-style atom shows a nucleus with protons and neutrons, two electron shells, the formulas protons equals Z, neutrons equals A minus Z, and electrons equals Z minus charge, plus a worked carbon-12 example with six protons, six neutrons, and six electrons.Atom Composition from Z, A, and ChargeCount the nucleus first; adjust electrons only for ionic chargepnnpBohr-style atom: nucleus plus electron shellsCore Relationsprotons = Zneutrons = A − Zelectrons = Z − chargeWorked Example: 12CZ = 6, A = 12, charge = 0p⁺ = 6, n⁰ = 12 − 6 = 6e⁻ = 6 − 0 = 6 → neutral carbon atom
Atom Calculator — protons, neutrons, electrons, isotope notation, and ionic charge

Worked Examples

Carbon-12 neutral atom

Carbon-12 has Z = 6, A = 12, and no ionic charge.

  1. 1Protons equal the atomic number: p⁺ = Z = 6.
  2. 2Neutrons equal mass number minus atomic number: n⁰ = A − Z = 12 − 6 = 6.
  3. 3Neutral charge means electrons equal protons: e⁻ = Z − 0 = 6.
  4. 4The particle is neutral carbon-12, written ¹²C.
Final Answer: 6

Sodium ion Na⁺

A sodium-23 cation has lost one electron, so charge = +1.

  1. 1Protons: p⁺ = Z = 11.
  2. 2Neutrons: n⁰ = A − Z = 23 − 11 = 12.
  3. 3Electrons: e⁻ = Z − charge = 11 − (+1) = 10.
  4. 4The particle is sodium-23 cation, ²³Na⁺.
Final Answer: 12

Chloride ion Cl⁻

A chlorine-35 anion has gained one electron, so charge = −1.

  1. 1Protons: p⁺ = 17.
  2. 2Neutrons: n⁰ = 35 − 17 = 18.
  3. 3Electrons: e⁻ = 17 − (−1) = 18.
  4. 4The particle is chlorine-35 anion, ³⁵Cl⁻.
Final Answer: 18

Oxygen-16 neutral atom

Oxygen-16 is the most abundant oxygen isotope.

  1. 1Protons: p⁺ = Z = 8.
  2. 2Neutrons: n⁰ = A − Z = 16 − 8 = 8.
  3. 3Electrons: e⁻ = 8 − 0 = 8.
Final Answer: 8

Uranium-238 neutral atom

Uranium-238 has a heavy nucleus with many more neutrons than protons.

  1. 1Protons: p⁺ = 92.
  2. 2Neutrons: n⁰ = 238 − 92 = 146.
  3. 3Electrons: e⁻ = 92 for a neutral atom.
Final Answer: 146

Introduction

The atom calculator turns the three essential nuclear bookkeeping numbers — atomic number (Z), mass number (A), and ionic charge — into a complete atom or ion composition. It reports protons, neutrons, electrons, and a plain-language particle interpretation. The same relationships connect isotope notation, nuclear chemistry, periodic-table identity, and ionic charge. For adjacent tasks, compare isotope masses with the atomic mass calculator and electron arrangements with the electron configuration calculator. Authoritative terminology follows IUPAC and isotope data conventions used by NIST.

Core atom relationships

Atomic number Z is the number of protons in the nucleus. Mass number A is the integer total of protons plus neutrons for a specific isotope. Ionic charge tells how many electrons have been removed or added: positive charge means fewer electrons (cation), negative charge means more electrons (anion). Therefore the calculator uses p⁺ = Z, n⁰ = A − Z, and e⁻ = Z − charge.

Carbon-12:

Z=6 and A=12, so 6 protons and 6 neutrons.

Na⁺:

Z=11 and charge +1, so 10 electrons.

Cl⁻:

Z=17 and charge −1, so 18 electrons.

A valid isotope has A ≥ Z because neutrons cannot be negative.

How to use the atom calculator

Enter atomic number and mass number for the default forward calculation. Add charge only if the particle is an ion. If a textbook problem gives proton count instead of Z, enter the proton count and leave Z as 0; the calculator identifies Z from protons. If it gives protons and neutrons, leave A as 0 and enter both values so A is inferred from p⁺ + n⁰.

The primary answer is the neutron count because isotope identity often depends on A − Z, while secondary outputs show protons and electrons.

Atoms versus ions

A neutral atom has equal numbers of protons and electrons. A cation has lost electrons, so its charge is positive and electrons = Z − positive charge. An anion has gained electrons, so its charge is negative and subtracting a negative charge increases the electron count. This electron count is the starting point for tools such as the electron configuration calculator and for redox calculations such as the nernst equation calculator.

Reading isotope symbols

Isotope notation places the mass number as a leading superscript before the element symbol, such as ¹²C, ²³Na⁺, or ³⁵Cl⁻. The element symbol is determined by Z, while A selects the isotope of that element. The calculator includes a built-in Z-to-symbol map for the first 20 elements and uranium so common examples can be named directly.

ParticleZAchargep⁺n⁰e⁻
¹²C6120666
²³Na⁺1123+1111210
³⁵Cl⁻1735−1171818
¹⁶O8160888

Validity checks and chemical meaning

The calculation is integer bookkeeping, but the inputs must still be physically meaningful. Z must be positive for a real element, A should be at least as large as Z, and electrons cannot be negative. Heavy nuclides usually require more neutrons than protons because additional neutrons help offset proton-proton repulsion in the nucleus. For measured isotope masses rather than integer mass numbers, use the molar mass calculator or mole calculator to connect atoms to laboratory amounts.

Where the numbers come from

Atomic numbers come from the periodic table and are exact identifiers of elements. Mass numbers identify specific nuclides and are commonly listed by nuclear-data centers. Standard atomic weights, by contrast, are natural-abundance averages and may be non-integers. For deeper data, consult Brookhaven National Nuclear Data Center, NIST Chemistry WebBook, and IUPAC atomic weights.

Quick Reference Card

Atom Composition Quick Reference

Quick referenceAtom Calculator

p⁺ = Z; n⁰ = A − Z; e⁻ = Z − q

Valid range: Z = 1–118 for known elements; A ≥ Z; electrons ≥ 0

Common Values

¹²C neutral6 p⁺, 6 n⁰, 6 e⁻
²³Na⁺11 p⁺, 12 n⁰, 10 e⁻
³⁵Cl⁻17 p⁺, 18 n⁰, 18 e⁻
¹⁶O neutral8 p⁺, 8 n⁰, 8 e⁻
²³⁸U neutral92 p⁺, 146 n⁰, 92 e⁻

Watch Out

  • Do not confuse mass number A with average atomic mass from the periodic table.
  • Use positive charge for cations and negative charge for anions.
  • A smaller than Z gives a negative neutron count and is not physically valid.
  • Electrons cannot be negative; very large positive charges may be invalid for real ions.

Pro Tips

  • If only proton count is given, use it as Z because protons define the element.
  • If protons and neutrons are given, add them to get mass number A.
  • Check neutral atoms by confirming protons equal electrons.
  • Write isotope notation as mass number plus element symbol, such as ¹²C or ²³Na⁺.

FAQs

How do I find neutrons from atomic number and mass number?

Subtract atomic number from mass number: neutrons = A − Z. Carbon-12 has A=12 and Z=6, so it has 6 neutrons.

Why does positive charge reduce the electron count?

Positive ions are cations formed by losing electrons. A +1 charge means one fewer electron than the neutral atom, so electrons = Z − 1.

Can two atoms have the same protons but different neutrons?

Yes. They are isotopes of the same element. For example, carbon-12 and carbon-14 both have 6 protons, but they have 6 and 8 neutrons respectively.

Is mass number the same as atomic mass?

No. Mass number is an integer count of protons plus neutrons for one isotope. Atomic mass is a measured mass in unified atomic mass units and may be an abundance-weighted average.

What if A is smaller than Z?

That would imply a negative neutron count, so it is not a valid isotope. The calculator returns the arithmetic result but labels it invalid in the interpretation.

How do I identify an element from proton count?

The proton count is the atomic number Z. If a problem says an atom has 8 protons, Z=8 and the element is oxygen.