The present disclosure is directed to an electrosurgical generator including aresonant inverter having an H-bridge and a tank. The tank includes atransformerincluding a first core half, a second core half, a primary winding, and asecondarywinding having a number of turns, wherein each turn is separated by a gap. Thetransformer is configured to provide a parallel capacitance based on the gap.