The atomic weight or atomic mass shown in the periodic table of elements is the average value of the isotopes.
To calculate the atomic weight of an element, two quantities are required.
1.The atomic mass of each isotope (Isotopic mass)
2.The naturally occurring fractional abundance of each isotope
These two quantities are obtained by a “Mass spectrometer”