The basic principle of mass spectrometry is that when charged particles move through a magnetic field they change direction, when the charge on particles is the same, the particles with the lower mass will experience a greater degree of deflection than heavier particles. When the mass is the same, particles with higher charge will experience a greater degree of deflection.