Atomic mass = mass of protons + mass of neutrons
Note: relative atomic mass is the average of the atomic masses of an element's isotopes. For example, the relative atomic mass of carbon is 12.01 amu. The explanation is that the isotopic abundance is as follows: 12C (stable)= 98.9%; 13C (stable)= 1.1 %; 14C (Beta, 5730 years)= trace.