Five-phase AC drives allow a third harmonic voltage to be fed into the stator winding – in addition to the fundamental voltage – to generate a third harmonic magnetic air gap field. This allows the generation of an additional small constant torque. Furthermore, the undesirable saturation harmonics that occur with saturated iron can be compensated. The desired third harmonic voltage is commonly generated via time-consuming space vector PWM algorithms, which are not well-suited for real-time application, or via look-up tables, which require an increased storage capacity. In our case, the desired third harmonic voltage is generated in the five-phase voltages by adding a non-sinusoidal zero-sequence voltage with five times the fundamental frequency to the fundamental voltage reference signals in carrier-based pulse width modulation (PWM) with a constant switching frequency. This is equivalent to a space vector PWM method (SVPWM) and avoids a significantly high calculation effort. The PWM algorithm programmed in MATLAB in real time allows the fast generation of a third harmonic voltage per phase with freely definable amplitude and phase shift without requiring a lot of storage capacity.