In a nuclear magnetic resonance (NMR) spectrometer, a sample spins about an axis tilted at a magic angle, a corrective magnetic field generating portion produces a corrective magnetic field, and a control portion controls the operation of the corrective magnetic field generating portion. An arithmetic unit included in the control portion uses at least one of BZ(1), B1(1)e, and B1(1)o or the linear sum of at least two of them as the first-order magnetic field component of the corrective magnetic field, uses at least one of B2(2)e, B2(2)o, B2(1)e, and B2(1)o or the linear sum of at least two of them as the second-order magnetic field component of the corrective magnetic field, and uses at least one of BZ(3), B3(1)e, B3(1)o, B3(2)e, B3(2)o, B3(3)e, and B3(3)o or the linear sum of at least two of them as the third-order magnetic field component of the corrective magnetic field.