The invention discloses a stepless compensating device which mainly comprises a filter, a signal collecting plate, an inversion plate, a control plate and a PWM pulse driving plate. Meanwhile, the invention discloses a stepless compensating method. An FPGA chip is used as a core element, a real-time data collecting technology and a dynamic tracking technology are used for monitoring the electric energy quality of a power distribution system in real time, through a monitoring system, a series of electric energy quality data such as system voltages, frequency, loading currents, THDi, THDu, voltage waveform, current waveform, stepless compensating device output current magnitude and waveform can be checked in real-time, the idle current magnitude output by the device is changed continuously through an inversion circuit, quick and continuous idle power compensating is achieved, through the method, idle currents are compensated timely, and the whole structure has the advantages of being scientific, reasonable, advanced in technology, timely in compensating, high in stability, high in cost performance and the like.