Mass spectroscopy is used to determine the atomic mass of atoms/molecules in a sample. It also tells us the relative abundances of the isotopes of an element.