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