Atomic Mass Calculator

Our free atomic mass calculator finds the atomic mass of an atom from the number of protons and neutrons in its nucleus. Type in both numbers and you will see the result in atomic mass units, usually written as amu or u, in a few seconds. It is a handy helper for chemistry homework, revision before a test, and quick checks in the laboratory. The periodic table value is an average over isotopes. Find it with our Average Atomic Mass Calculator.

These figures are estimates only for educational purposes. No personal data is collected or saved.

How to use this atomic mass calculator

Start by counting the protons in the nucleus of the atom. That number is the atomic number of the element, and it also tells you which element you are looking at. For example, every carbon atom has six protons, every oxygen atom has eight protons, and every gold atom has 79 protons. Then count the neutrons in the same nucleus. Neutrons sit beside the protons, and different atoms of the same element can have different numbers of neutrons.

Enter the proton count in the first box and the neutron count in the second box, then click Calculate Atomic Mass. The calculator adds the two numbers together and shows the mass number, the atomic number, and the approximate atomic mass in amu. You can change either number and click again to compare different isotopes of the same element, such as carbon-12 and carbon-14, and see how the mass changes while the element stays the same.

What is atomic mass?

Atomic mass is a measure of how heavy a single atom is. Almost all of the mass of an atom sits in its nucleus, because protons and neutrons are each about 1,800 times heavier than an electron. That is why electrons are left out of this calculation: their mass is so small that it makes almost no difference to the answer.

Scientists measure atomic mass in atomic mass units, shortened to amu or u. One atomic mass unit is defined as one twelfth of the mass of a carbon-12 atom, which is why a single carbon-12 atom has an atomic mass of about 12 amu. The values printed in the periodic table are slightly different, because they are average atomic masses. They take into account all the naturally occurring isotopes of an element and how common each one is.

Formula: atomic mass from protons and neutrons

The calculator uses this simple formula: Atomic mass (amu) = number of protons + number of neutrons. The sum on the right is also called the mass number, which is written with the symbol A. The number of protons alone is the atomic number, written with the symbol Z. So for any atom, A = Z + N, where N is the number of neutrons. Because each proton and each neutron weighs about 1 amu, adding them gives a value that is very close to the true mass of a single atom of that isotope.

Worked example: carbon-12

Take a carbon-12 atom. Carbon always has 6 protons, so Z = 6. This particular isotope also has 6 neutrons, so N = 6. Adding them gives a mass number of 6 + 6 = 12, and an atomic mass of about 12 amu. That is exactly what the calculator shows when you use its default values of 6 protons and 6 neutrons.

Now try carbon-14, the isotope used in carbon dating. It still has 6 protons, because it is still carbon, but it has 8 neutrons. So its mass number is 6 + 8 = 14, and its atomic mass is about 14 amu. The extra two neutrons make the atom heavier and also make the nucleus unstable, which is why carbon-14 slowly decays over time. The element has not changed, only the isotope has. The slow decay of carbon-14 is how old samples are dated. Work it out with our Carbon Dating Calculator.

Atomic mass, mass number and atomic number

These three terms sound similar, but they mean different things. The atomic number is the number of protons, and it decides which element an atom belongs to. The mass number is the total number of protons and neutrons, and it tells you which isotope of that element you have. The atomic mass is the actual mass of one atom of that isotope, measured in amu, and it is very close to the mass number.

Isotopes are atoms of the same element with different numbers of neutrons. Hydrogen is a good example. Ordinary hydrogen has one proton and no neutrons, so its mass number is 1. Deuterium has one proton and one neutron, so its mass number is 2. Tritium has one proton and two neutrons, so its mass number is 3. All three are hydrogen, because the proton count never changes, but their masses are different. The periodic table value for hydrogen, about 1.008 amu, is an average over these isotopes, weighted by how common each one is in nature.

Frequently asked questions

What is the atomic mass of carbon?

A single carbon-12 atom has an atomic mass of about 12 amu. The value shown in the periodic table is about 12.011 amu, because it is an average over carbon-12 and carbon-13, with carbon-12 being far more common. Use this calculator for a single isotope, and use our average atomic mass calculator for the weighted average.

Do electrons affect atomic mass?

Almost never in practice. An electron weighs about 0.00055 amu, so even in a large atom the electrons add only a tiny fraction of the total. For the level of accuracy this calculator gives, electrons can safely be ignored.

Is atomic mass the same as mass number?

Not exactly, but they are very close. The mass number is a whole number: the count of protons plus neutrons. The atomic mass is the measured mass of one atom, which is a little different because protons and neutrons do not weigh exactly 1 amu each. For most school and college work, treating them as equal is fine.

Can two different elements have the same atomic mass?

Yes. Atoms with the same mass number but different numbers of protons are called isobars. For example, carbon-14 and nitrogen-14 both have a mass number of 14, but carbon has 6 protons and nitrogen has 7 protons, so they are different elements with different chemistry.

Why does the periodic table show decimal atomic masses?

Because the periodic table shows the average atomic mass of all the naturally occurring isotopes of an element, weighted by their abundance. Chlorine is a clear case: about three quarters of chlorine atoms are chlorine-35 and about one quarter are chlorine-37, so the average comes out at about 35.45 amu.

View all calculators »

Scroll to Top