The Atom Calculator helps you find the number of protons, neutrons, and electrons in an atom or ion. Enter the atomic number, mass number, and ionic charge to calculate its subatomic particles without working through every formula by hand.
This calculator is useful for chemistry homework, isotope questions, and ion calculations. In this guide, you will learn the formulas, how to use them, and how to solve examples involving neutral atoms and charged ions.
Key Takeaways
- The atomic number tells you how many protons an atom contains.
- The mass number equals the total number of protons and neutrons.
- A neutral atom has equal numbers of protons and electrons.
- A positive ion has fewer electrons than protons, while a negative ion has more electrons than protons.
- You must use the mass number, rather than the periodic table's average atomic mass, to calculate an isotope's neutron count directly.
What Does an Atom Calculator Calculate?
An Atom Calculator finds the number of subatomic particles in an atom or ion. Depending on the information you enter, it can calculate protons, neutrons, electrons, atomic number, mass number, or electrical charge. An atom contains a nucleus made of protons and usually neutrons, surrounded by electrons. Protons identify the element, neutrons determine which isotope it is, and the balance between protons and electrons determines its electrical charge.
For example, a neutral sodium-23 atom has 11 protons, 12 neutrons, and 11 electrons. A sodium ion with a positive charge of one has 11 protons, 12 neutrons, and 10 electrons. The calculator is useful when you know some of these values but need to find the others.
Atom Calculator Formulas
You can calculate an atom's subatomic particles using its atomic number, mass number, and charge. These formulas follow the standard relationships described in OpenStax's Chemistry: Atoms First 2e, Chapter 2.3.
1. Number of Protons
The number of protons equals the atomic number.
Formula
Where:
- Z = atomic number.
- p = number of protons.
For example, carbon has an atomic number of 6, so every carbon atom contains 6 protons.
2. Number of Neutrons
Subtract the atomic number from the mass number to find the number of neutrons.
Formula
Where:
- n = number of neutrons.
- A = mass number.
- Z = atomic number.
For example, carbon-13 has a mass number of 13 and an atomic number of 6. It contains 7 neutrons.
3. Number of Electrons
The number of electrons depends on whether the atom is neutral or charged.
Formula
Where:
- e = number of electrons.
- Z = atomic number.
- q = signed ionic charge, expressed in units of elementary charge.
A neutral atom has a charge of zero, so its number of electrons equals its number of protons. For a positive ion, subtract the positive charge from the atomic number. For a negative ion, subtracting the negative charge adds electrons.
For example, a magnesium ion with a charge of 2+ has 10 electrons because magnesium has an atomic number of 12.
4. Mass Number
The mass number is the total number of protons and neutrons in an atom's nucleus.
Formula
Where:
- A = mass number.
- p = number of protons.
- n = number of neutrons.
If an atom contains 8 protons and 8 neutrons, its mass number is 16.
5. Atomic Charge
You can calculate an atom's electrical charge by subtracting its number of electrons from its number of protons.
Formula
Where:
- q = signed ionic charge.
- p = number of protons.
- e = number of electrons.
A result of zero means the atom is neutral. A positive result indicates a cation, and a negative result indicates an anion.
How to Use the Atom Calculator
Follow these steps to calculate an atom's composition.
- Enter the atomic number. Find this value on the periodic table. It tells you the number of protons.
- Enter the mass number. Use the mass number of the particular isotope you are studying.
- Enter the ionic charge. Use zero for a neutral atom, a positive value for a cation, or a negative value for an anion.
- Calculate the result. The calculator uses the entered values to determine the numbers of protons, neutrons, and electrons.
- Check the result. Confirm that the proton count matches the atomic number and that the neutron and electron counts agree with the formulas.
If your calculator accepts any three of the relevant values, you can enter the values provided in your chemistry question and solve for the missing quantities.
Atom Calculator Examples
These examples show how to apply the formulas to common chemistry questions.
Example 1: Sodium-23 Neutral Atom
Find the protons, neutrons, and electrons in a neutral sodium-23 atom.
Given:
- Atomic number = 11.
- Mass number = 23.
- Ionic charge = 0.
Step 1: Calculate protons.
p = 11
Step 2: Calculate neutrons.
n = 23 − 11 = 12
Step 3: Calculate electrons.
e = 11 − 0 = 11
Result: Sodium-23 has 11 protons, 12 neutrons, and 11 electrons. Its equal numbers of protons and electrons give it a net charge of zero.
Example 2: Magnesium Ion (Mg²⁺)
Find the number of protons, neutrons, and electrons in magnesium-24 with a charge of 2+.
Given:
- Atomic number = 12.
- Mass number = 24.
- Ionic charge = +2.
Step 1: Calculate protons.
p = 12
Step 2: Calculate neutrons.
n = 24 − 12 = 12
Step 3: Calculate electrons.
e = 12 − (+2) = 10
Result: Magnesium-24 with a 2+ charge has 12 protons, 12 neutrons, and 10 electrons. It has lost two electrons compared with a neutral magnesium atom.
Example 3: Oxide Ion (O²⁻)
Find the number of protons, neutrons, and electrons in oxygen-16 with a charge of 2−.
Given:
- Atomic number = 8.
- Mass number = 16.
- Ionic charge = −2.
Step 1: Calculate protons.
p = 8
Step 2: Calculate neutrons.
n = 16 − 8 = 8
Step 3: Calculate electrons.
e = 8 − (−2) = 10
Result: Oxygen-16 with a 2− charge has 8 protons, 8 neutrons, and 10 electrons. The two additional electrons give it a net charge of −2.
Atomic Number vs. Mass Number vs. Atomic Mass
These terms describe different properties of an element. Confusing them is a common reason for incorrect neutron calculations.
| Term | Meaning | Example |
| Atomic number | The number of protons in the nucleus. | Carbon has atomic number 6. |
| Mass number | The total number of protons and neutrons in one isotope. | Carbon-13 has mass number 13. |
| Atomic mass | The mass of an atom, commonly expressed in atomic mass units (u). | An individual isotope has its own atomic mass. |
| Average atomic mass | The weighted average of the masses of an element's naturally occurring isotopes, based on their abundances. | The periodic table commonly displays this value. |
Use the mass number to calculate neutrons. The decimal value shown on a periodic table is usually the element's average atomic mass, not the mass number of a particular isotope. Do not automatically subtract the atomic number from that decimal value and treat the result as an exact neutron count.
If your question identifies an isotope, use its stated mass number. If it gives only the element's name, symbol, or average atomic mass, you may need additional information to identify the isotope.
How to Calculate the Number of Atoms in a Sample
An atom-structure calculation is different from finding how many atoms are present in a quantity of a substance. If you know the sample's mass and chemical formula, you can use molar mass and Avogadro's constant to estimate the number of atoms.
The National Institute of Standards and Technology (NIST) defines one mole as containing exactly 6.02214076 × 10²³ specified elementary entities.
Step 1: Calculate the Number of Moles
Formula
Where:
- n = amount of substance in moles.
- m = sample mass in grams.
- M = molar mass in grams per mole.
Step 2: Calculate the Number of Particles
Formula
Where:
- N = number of specified particles.
- n = amount in moles.
- Nₐ = Avogadro constant, 6.02214076 × 10²³ mol⁻¹.
Step 3: Calculate the Total Number of Atoms
For a substance whose particles contain more than one atom, multiply the number of particles by the number of atoms in each molecule or formula unit.
Formula
Where k is the number of atoms in each molecule or formula unit.
For example, one water molecule contains three atoms: two hydrogen atoms and one oxygen atom. If you calculate the number of water molecules, multiply that result by three to find the total number of atoms.
For compounds, distinguish between the number of molecules or formula units and the total number of atoms they contain. The chemical formula determines the number of atoms in each particle.
Common Atom Calculation Mistakes
Avoid these errors when solving chemistry problems.
- Using average atomic mass as the mass number: The average atomic mass on the periodic table is not necessarily a whole number and cannot directly identify the neutron count of a specific isotope.
- Ignoring the ionic charge: A neutral atom and its ion have the same number of protons but different numbers of electrons.
- Reversing the sign of the charge: A 2+ ion has two fewer electrons than its neutral atom, while a 2− ion has two additional electrons.
- Changing the proton count when an atom becomes an ion: Ordinary ion formation involves gaining or losing electrons. It does not change the element's atomic number.
- Confusing particles with atoms: One molecule can contain several atoms. Count the atoms in its chemical formula before calculating the total number of atoms in a sample.
Checking these points can help you identify errors before submitting a chemistry assignment.
