Ions are accelerated, bent by a magnetic field, and only one mass-to-charge ratio gets through the slit at a time. Sweep the field to build the spectrum.
Click a peak on the graph to tune the field to it.
Acceleration. An ion of charge q and mass m falls through a potential difference V and gains kinetic energy qV: ½mv² = qV. A light ion ends up faster than a heavy one.
The magnetic field. In the field the force qvB is the centripetal force: qvB = mv²/r. Put the two together:
r = (1/B) √(2mV/q), so m/z = qB²r²/2V
What this means. For a fixed voltage and a fixed path radius r through the instrument, only ions with one value of m/z can get through the slit, and that value is proportional to B². Ions that are lighter bend too much and hit the inner wall. Ions that are heavier bend too little and hit the outer wall. Sweeping B brings each fragment on to the detector in turn, and the detector current makes the spectrum.
The spectrum. The tallest peak is the base peak, set to 100%. The molecular ion peak M⁺ has the mass of the whole molecule, and the others are fragments of it. The peak heights are rounded teaching values, not library data. The tiny m/z = 1 peaks are included to show the largest deflection, but a real instrument usually does not scan that low.
The picture is not to scale, and the speeds of the ions are not to scale either. The radii and the field values follow the formula, for a path radius of 10 cm.
Learn more in the Charge in magnetic fields lesson. Original idea by Physics High.