The invention discloses a method for compensating the output line voltage drop of a switching power supply. The main point of the technical solution is that the switching power supply feedback part circuit includes sampling resistor 04, reference source 03, photocoupler 02, output capacitor 05, power supply output line resistor 06, current limiting resistor 01; one end of current limiting resistor 01 and output capacitor 05 The other end is connected to the photocoupler 02, the photocoupler 02 is connected to the cathode of the reference source 03, the anode of the reference source 03 is set as the reference ground, the reference terminal of the reference source 03 is connected to the sampling resistor 04 connected in series R2, R3 The common terminal is connected; the sampling resistor 04 R2 and R3 connected in series, the R2 end of the circuit is connected to the output capacitor 05, and the R3 end is connected to the reference ground of the reference source 03; a compensation resistor is added between the reference ground of the reference source 03 and the sampling resistor 04 R3 Rd. The application of the present invention: the wire material is saved, and the load adjustment rate is improved. The occasions where this circuit can be applied include the feedback part of various switching power supplies, including but not limited to: flyback converter, forward converter, half-bridge converter, full-bridge converter, quasi-resonant converter, etc.