DC/DC converter having: a first transformer having a primary winding and a secondary winding; an inverter which is electrically coupled, at an input, to a first input connection and to a second input connection of the DC/DC converter and is electrically coupled, at an output, to the primary winding of the first transformer; a rectifier which is coupled, on the input side, to the secondary winding of the first transformer and is electrically coupled, on the output side, to a first output connection and to a second output connection of the DC/DC converter; and a compensation device having a second transformer and a switching element, characterized in that the second transformer comprises a primary winding and a secondary winding, wherein the primary winding of the second transformer is arranged between the first input connection of the DC/DC converter and a connection of the input of the inverter, and wherein a series circuit comprising the switching element and the secondary winding of the second transformer is arranged between the first input connection and the second input connection of the DC/DC converter, wherein the DC/DC converter is configured to charge the primary winding of the second transformer in the compensation device by providing an electrical connection between the input connections (E1, E2) of the inverter, to discharge the primary winding of the second transformer in the compensation device by providing an electrical connection through the primary winding of the first transformer; and to close the switching element in the compensation device for a predetermined period at the end of the process of discharging the primary winding of the second transformer. a first transformer having a primary winding and a secondary winding; an inverter which is electrically coupled, at an input, to a first input connection and to a second input connection of the DC/DC converter and is electrically coupled, at an output, to the primary winding of the first transformer; a rectifier which is coupled, on the input side, to the secondary winding of the first transformer and is electrically coupled, on the output side, to a first output connection and to a second output connection of the DC/DC converter; and a compensation device having a second transformer and a switching element, characterized in that the second transformer comprises a primary winding and a secondary winding, wherein the primary winding of the second transformer is arranged between the first input connection of the DC/DC converter and a connection of the input of the inverter, and wherein a series circuit comprising the switching element and the secondary winding of the second transformer is arranged between the first input connection and the second input connection of the DC/DC converter, wherein the DC/DC converter is configured to charge the primary winding of the second transformer in the compensation device by providing an electrical connection between the input connections (E1, E2) of the inverter, to discharge the primary winding of the second transformer in the compensation device by providing an electrical connection through the primary winding of the first transformer; and to close the switching element in the compensation device for a predetermined period at the end of the process of discharging the primary winding of the second transformer.