The magnitude of an earthquake determined by measuring the maximum amplitude of the primary wave (P-wave) on a seismogram of the event. P-waves are compressional waves that have the highest velocity of all waves generated by earthquakes