Atom Calculator
Calculate the number of protons, neutrons, and electrons in any atom or ion — including isotopes.
Pick an element, enter a mass number (for a specific isotope) and charge (for an ion), and this calculator works out exactly how many protons, neutrons, and electrons that atom has.
Atomic structure basics
Every atom is built from three particles: protons and neutrons packed into a dense central nucleus, and electrons occupying the much larger space around it. The number of each particle an atom has determines which element it is, which isotope of that element it is, and whether it's a neutral atom or a charged ion.
| Particle | Charge | Location | Determines |
|---|---|---|---|
| Proton | +1 | Nucleus | Which element the atom is (atomic number) |
| Neutron | 0 (neutral) | Nucleus | Which isotope of the element (along with protons) |
| Electron | −1 | Surrounding the nucleus | Chemical behavior and ion charge |
The proton count is the single defining feature of an element — every carbon atom in the universe has exactly 6 protons, and any atom with 6 protons is, by definition, carbon. This is why the periodic table is organized by atomic number (proton count) rather than by mass or any other property.
How to calculate protons, neutrons, and electrons
Worked example — Carbon-14, neutral atom:
- Carbon’s atomic number is 6, so protons = 6
- Mass number is 14 (given by the isotope name), so neutrons = 14 − 6 = 8
- Charge is 0 (neutral atom), so electrons = 6 − 0 = 6
Worked example — Oxygen-16 as a 2− anion (O²⁻, as found in many oxide compounds):
- Oxygen’s atomic number is 8, so protons = 8
- Mass number is 16, so neutrons = 16 − 8 = 8
- Charge is −2, so electrons = 8 − (−2) = 10
Notice that a negative charge in the electron formula subtracts a negative number, which is the same as adding — an anion has more electrons than protons, which is exactly what a negative overall charge means.
Isotopes and mass number
Isotopes are atoms of the same element (same proton count, same atomic number) that have different numbers of neutrons, and therefore different mass numbers. Since neutrons don’t affect an atom’s chemical behavior nearly as much as protons and electrons do, different isotopes of an element behave almost identically in chemical reactions — the differences show up mainly in nuclear properties (some isotopes are radioactive, others stable) and in mass-dependent physical properties.
| Isotope | Protons | Neutrons | Natural abundance |
|---|---|---|---|
| Carbon-12 | 6 | 6 | ~98.9% (most common) |
| Carbon-13 | 6 | 7 | ~1.1% |
| Carbon-14 | 6 | 8 | Trace (radioactive, used in dating) |
A periodic table’s listed atomic weight for an element isn’t the mass of any single isotope — it’s a weighted average across all of that element’s naturally occurring isotopes, weighted by how abundant each one actually is in nature. This is why atomic weights are rarely whole numbers: chlorine’s listed weight of 35.45, for instance, reflects a natural mixture of roughly 76% chlorine-35 and 24% chlorine-37, not a single isotope with a fractional number of neutrons (which would be physically impossible, since neutron count is always a whole number).
Isotope stability depends on the ratio of protons to neutrons in the nucleus — too many or too few neutrons relative to the proton count makes a nucleus unstable, and it will eventually undergo radioactive decay, transforming into a different element or a different isotope of the same element by emitting particles or energy. Each radioactive isotope has a characteristic half-life — the time it takes for half of a given sample to decay — ranging from fractions of a second for the most unstable isotopes to billions of years for some naturally occurring radioactive elements. Carbon-14’s roughly 5,730-year half-life is what makes it useful for dating archaeological samples on a human historical timescale, neither decaying too fast to be measurable nor too slowly to show meaningful change over the timescales archaeologists typically work with.
Ions and charge
An ion forms when an atom gains or loses electrons, creating an imbalance between its proton count (which never changes in ordinary chemical reactions) and its electron count.
Cations (positive ions) form when an atom loses one or more electrons, leaving more protons than electrons. Metals — sodium, calcium, aluminum — typically form cations, since they tend to lose their outermost, loosely-held electrons relatively easily. Anions (negative ions) form when an atom gains one or more electrons, creating more electrons than protons. Nonmetals — chlorine, oxygen, sulfur — typically form anions, since they tend to attract additional electrons to complete their outer electron shell.
Losing or gaining electrons never changes which element an atom is, since that’s determined entirely by proton count. A sodium atom that loses an electron to become Na⁺ is still sodium — it’s simply sodium in its ionized, positively-charged form, common in dissolved salts and many biological contexts (sodium ions are essential to nerve signaling, for instance).
Atomic number vs. mass number
| Term | Symbol | What it counts | Where it's found |
|---|---|---|---|
| Atomic number | Z | Protons only | Fixed for each element; found on the periodic table |
| Mass number | A | Protons + neutrons | Varies by isotope; specified per isotope, not per element |
| Atomic weight | — | Weighted average mass | Listed on the periodic table for the element as a whole |
These three related-sounding numbers are genuinely distinct and a common source of confusion for students first learning atomic structure. Atomic number is a single fixed value per element. Mass number is specific to a particular isotope, and every element has multiple possible mass numbers corresponding to its different isotopes. Atomic weight is a single averaged value that appears on the periodic table, blending together all of an element’s naturally-occurring isotopes in their natural proportions — it’s neither the mass number of the most common isotope nor a simple average of all possible isotopes, but specifically an abundance-weighted average.
Reading isotope notation
Isotopes are written in a few interchangeable formats, and being able to read all of them fluently is a basic chemistry skill.
Nuclear notation places the mass number as a superscript before the element symbol and (less commonly, since it’s redundant information) the atomic number as a subscript before it. Hyphen notation — writing out the element name or symbol followed by the mass number — is more common in everyday scientific writing and speech, since it doesn’t require special symbol formatting: “carbon-14” or “C-14” both unambiguously specify the isotope with 6 protons and 8 neutrons.
Why electron count matters for chemistry
While this calculator focuses on the basic proton/neutron/electron counting relationships, it’s worth understanding why electron count in particular drives so much of chemistry. Electrons occupy defined energy levels (shells) around the nucleus, and an atom’s outermost shell — its valence electrons — determines almost everything about how it bonds and reacts with other atoms. Atoms tend to gain, lose, or share electrons in ways that leave their outer shell full or empty, which is the underlying reason metals tend to lose electrons (emptying an outer shell that had few electrons to begin with) and nonmetals tend to gain them (filling an outer shell that was nearly complete).
This is also why the periodic table’s column structure (groups) matters so much: elements in the same column share the same number of valence electrons and consequently show strikingly similar chemical behavior, despite having very different atomic numbers and very different numbers of total electrons. Sodium and potassium, for instance, are in the same group and both readily form +1 cations, even though potassium has substantially more protons, neutrons, and total electrons than sodium.
Real-world applications
Radiocarbon dating relies directly on isotope mass number differences — carbon-14 is a radioactive isotope that decays at a known, constant rate, while carbon-12 and carbon-13 are stable. By measuring the ratio of carbon-14 to stable carbon isotopes remaining in an organic sample, archaeologists and geologists can estimate how long ago the organism died, since living organisms continuously exchange carbon with the atmosphere (maintaining a roughly constant carbon-14 ratio) until death stops that exchange.
Medical imaging and treatment use specific isotopes chosen for their particular decay properties — iodine-131, for instance, is used both diagnostically and therapeutically in thyroid conditions, since the thyroid naturally concentrates iodine and the isotope’s radioactive emissions can be used to image or selectively treat thyroid tissue.
Everyday ion chemistry — table salt (sodium chloride) dissolving in water, the electrolytes in a sports drink, the way batteries generate current — all depend on the basic proton-electron imbalance that defines an ion. Understanding that Na⁺ and Cl⁻ are still sodium and chlorine (just in their charged, ionic forms) is foundational to understanding how dissolved salts, biological signaling, and electrochemistry all work.
Nuclear power generation relies on isotope-specific nuclear reactions — specifically the fission of particular heavy isotopes, which split into smaller nuclei when struck by a neutron, releasing substantial energy in the process that a power plant captures as heat to generate electricity. Not every isotope of a given element behaves this way under the same conditions, which is exactly why isotope identification matters so much in nuclear engineering, reactor design, and the broader field of nuclear science.
Common mistakes to avoid
- Confusing atomic number with mass number. Atomic number (protons only) is fixed for an element; mass number (protons + neutrons) varies by isotope. Using one where the other is needed is a very common error.
- Assuming atomic weight equals the mass number of the most common isotope. Atomic weight is an abundance-weighted average across all naturally occurring isotopes, which is why it’s rarely a whole number even though every individual isotope’s mass number is always a whole number.
- Forgetting that ions of an element are still that element. Losing or gaining electrons changes an atom’s charge, not its identity — Na⁺ is still sodium, not a different element.
- Getting the sign backward when calculating electrons from charge. Remember: Electrons = Protons − Charge. For a negative charge, subtracting a negative number correctly increases the electron count (an anion has more electrons than protons).
- Assuming isotopes of an element behave identically in every context. While isotopes are chemically very similar, they aren’t identical in every property — some are radioactive and some aren’t, and mass differences do have small but measurable effects on reaction rates and physical properties in precise scientific work.
- Mixing up the order of numbers in nuclear notation. Mass number goes on top (superscript), atomic number on the bottom (subscript), both written before the element symbol — reversing them is a common transcription error.
- Assuming a fractional atomic weight means an atom can have a fractional number of neutrons. No single atom ever has a fractional neutron count — the fraction only appears when averaging across a natural population of different whole-number isotopes.