An electrosurgical generator (200) includes a power supply (227) configured to output a DC waveform, an inverter (228) coupled to the power supply, the inverter including a plurality of switching elements (228a, 228b, 228c, 228d), and a controller (224) coupled to the inverter and configured to generate a switching angle waveform including a plurality of switching pulses. The controller is further configured to at least one of select or calculate the plurality of switching pulses to activate the plurality of switching elements to generate a radio frequency waveform based on the DC waveform and to minimize harmonics of the radio frequency waveform.