Inverter
Toggle between square-wave and sinusoidal PWM switching, choose half-bridge or full-bridge topology, and adjust the DC bus voltage and modulation index. The widget plots the output waveform and computes fundamental voltage and THD in real time — no Fourier tables needed.
H-Bridge State
Fundamental RMS
THD
200.0 V
(R = 50 Ω)
800.0 W
Quick experiments
- Full-bridge square wave. Set Vdc = 200 V — the output swings ±200 V with THD around 48%.
- PWM clean-up. Switch to PWM and lower the modulation index ma — watch THD drop as the output approaches a pure sine.
- Half vs full-bridge. Compare the two topologies at the same Vdc — the full-bridge doubles the output swing.
DC-AC inverters
A DC-AC inverter converts a battery or DC bus voltage to AC using a bridge of power switches (MOSFETs or IGBTs). The switches are driven with PWM waveforms whose varying duty cycle shapes the output into an approximate or true sine wave.
H-bridge (single-phase) operation
Four switches arranged in an H: diagonal pairs switch alternately at high frequency. PWM duty cycle is varied sinusoidally so the LC output filter reconstructs the fundamental frequency. The switches never conduct simultaneously (dead-time prevents shoot-through).
Output quality — THD
Total Harmonic Distortion (THD) measures how closely the output resembles a pure sine wave. Modified-sine inverters (cheaper, square-wave steps) have THD of 40–45 % — acceptable for resistive loads but can damage motors and sensitive electronics. Pure-sine inverters achieve THD < 3 %.
Learn more → Inverters — Learn
Formula reference
- Modulation index
Below 1 keeps SPWM in the linear region.
- Fundamental output amplitude
For a half-bridge in the linear modulation region.
- RMS of a sine output
325 V peak is the 230 V RMS mains.
- Total harmonic distortion
SPWM plus filtering pushes THD below a few percent.
| Symbol | Meaning | Unit |
|---|---|---|
| Modulation index | — | |
| DC bus voltage | V | |
| Total harmonic distortion | % |
Common mistakes
Omitting dead time in the H-bridge.
Without it both switches in a leg conduct briefly together, shorting the DC bus. Shoot-through destroys the switches almost instantly.
Running a motor from a modified sine inverter.
The harmonics cause extra heating and audible noise in motors and transformers. Inductive loads need a pure sine output.
Over-modulating to get more output.
A modulation index above 1 clips the reference and injects low-order harmonics that the output filter cannot remove.
Switching in the audible band.
Magnetostriction turns switching frequency into sound. Above roughly 20 kHz it is inaudible, at the cost of higher switching loss.
Sizing the DC bus capacitor for average current only.
The bus supplies large pulsed currents at twice the output frequency. Ripple-current rating, not just capacitance, decides the part.
Frequently asked questions
What does a DC-AC inverter do?
It converts DC into AC by switching the DC through an H-bridge in alternating directions, then filtering the result to approximate a sine wave at the desired output frequency.
What is the difference between modified sine and pure sine inverters?
A modified sine inverter outputs a stepped square-like waveform that is cheap to produce but rich in harmonics. A pure sine inverter uses PWM and filtering to approximate a true sine wave, which motors, transformers and sensitive electronics require.
What is SPWM?
Sinusoidal pulse-width modulation varies the pulse width across the cycle so the average follows a sine. After low-pass filtering, the output closely approximates a sine wave with the harmonics pushed up near the switching frequency where they are easy to remove.
What is dead time and why does an H-bridge need it?
Dead time is a brief interval where both switches in a leg are off. Without it, one switch can turn on before the other has fully turned off, creating a direct short across the supply known as shoot-through.
Why does an inverter produce audible noise?
Switching frequency can fall inside or near the audible range, and magnetostriction in the transformer or inductor turns that into sound. Raising the switching frequency above about 20 kHz moves it out of hearing at the cost of higher switching losses.
Related tools
Power Factor Analyzer
Displacement vs distortion PF, harmonic spectrum, before/after PFC comparison — live.
Open →Transformer Playground
Turn ratio, MMF balance, and live V / I on an ideal transformer.
Open →Regulator Compare
Linear vs switching — efficiency, power loss, and heatsink verdict live.
Open →SCR Controlled Rectifier
Drag the firing angle and watch the half-wave output reshape in real time.
Open →DC-DC Converter
Buck, boost, buck-boost — switch node voltage, ON/OFF shading, slope equations, CCM/DCM live.
Open →Browse the full circuit toolkit or start a guided lesson in topics.