Different isotopes of the same element have different numbers of neutrons, which results in different atomic masses. For instance, carbon-12 has six neutrons, while carbon-13 has seven neutrons.