The invention discloses a method for measuring the gradient field of a magnetic resonance system based on a diffusion effect, which consists of a non-uniform field magnet, a nuclear magnetic resonance spectrometer, a radio frequency power amplifier, a radio frequency coil, and a standard quantitative water model with known ADC coefficients and T2 relaxation time constants, etc. composition. Multiple sets of signals are acquired through magnetic resonance sequences with different diffusion-sensitive gradient durations or different echo intervals, and the gradient field size is fitted from the multiple sets of signals. This method does not require additional special magnetic field detection equipment, the measurement time is short, and it is easy to integrate into the magnetic resonance system, which makes it very convenient to complete the gradient field measurement at the installation site, and improves the efficiency of installation and service.