Reactive power compensator able to be connected electrically to an alternating electrical network comprising M phase(s) and with a network frequency, wherein M is greater than or equal to 1, the compensator comprising M phase(s) and comprising: - at least one continuous voltage input bus able to provide reactive power, - at least one voltage inverter connected to the continuous voltage bus and able to convert a continuous input current into an alternating output current, the or each inverter comprising two inlet terminals (26A, 26B), M output terminals (28U, 28V, 28W) and M switching branches, each output terminal (28U, 28V, 28W) corresponding to one phase, each switching branch comprising controllable electronic switches, the or each inverter also comprising a first capacitor having a first voltage (V DC1) at its terminals and a second capacitor having a second voltage (V DC2) at its terminals, the two capacitors (C1, C2) being connected in series between the two input terminals (26A, 26B) of the inverter, - means for controlling the electronic switches of the or each inverter, comprising calculating means able to generate a target control current (I cible) from a current to be compensated (I charge), means for combining the target control current (I cible) and the current I end) at the output from the inverter to provide a differential current (I diff), means for emitting a control signal able to control the switches from the differential current (I diff) for forming the output current (I ond), and means (48, 50) for correcting, from the first (V DC1) and second (V DC2) voltages, control signals for the switches, the correction means (48, 50) being able to reduce the difference between the value of the first voltage and that of the second voltage, characterised in that the correction means (48, 50) are able to add a balancing current (I equ) to the target control current (I cible), the balancing current (I equ) being able to correct the target control current (I cible) in order to reduce the difference between the values of the first (V DC1) and second (V DC2) voltages, the target control current (I cible) being increased by means of said balancing current for an even harmonic of the network frequency. - at least one continuous voltage input bus able to provide reactive power, - at least one voltage inverter connected to the continuous voltage bus and able to convert a continuous input current into an alternating output current, the or each inverter comprising two inlet terminals (26A, 26B), M output terminals (28U, 28V, 28W) and M switching branches, each output terminal (28U, 28V, 28W) corresponding to one phase, each switching branch comprising controllable electronic switches, the or each inverter also comprising a first capacitor having a first voltage (V DC1) at its terminals and a second capacitor having a second voltage (V DC2) at its terminals, the two capacitors (C1, C2) being connected in series between the two input terminals (26A, 26B) of the inverter, - means for controlling the electronic switches of the or each inverter, comprising calculating means able to generate a target control current (I cible) from a current to be compensated (I charge), means for combining the target control current (I cible) and the current I end) at the output from the inverter to provide a differential current (I diff), means for emitting a control signal able to control the switches from the differential current (I diff) for forming the output current (I ond), and means (48, 50) for correcting, from the first (V DC1) and second (V DC2) voltages, control signals for the switches, the correction means (48, 50) being able to reduce the difference between the value of the first voltage and that of the second voltage,