Four numbers to remember
- A 230 V rms supply peaks at 325 V, so a single-phase inverter needs a DC link of roughly 360 to 400 V. A 415 V three-phase inverter needs about 590 V with third-harmonic injection, or 680 V with plain sinusoidal PWM.
- Single-phase power pulses at 100 Hz between zero and twice the average. A 5 kW inverter on a 400 V DC link with 5% peak-to-peak ripple needs about 2 mF. Balanced three-phase power is constant.
- A square wave has a THD of 48.3%. PWM at 16 kHz moves the harmonics to around 16 or 32 kHz, where a small LC filter attenuates them by about 40 dB or more.
- Power into the grid follows P = (V1 × V2 / X) sin δ. In the 5 kW example here, the inverter voltage leads the grid by only about 3.4 degrees, and a phase-locked loop keeps it in step.
A solar string gives you direct current at a few hundred volts. Your fans, pumps and the DISCOM line expect a 50 Hz sine wave at 230 V, or 415 V between phases. The inverter closes that gap with switches that turn on and off thousands of times a second, and the mathematics turns those blunt pulses into a clean sine wave.
We build the idea from first principles, from the grid as a mathematical target to the H-bridge, sinusoidal pulse-width modulation (PWM), harmonics, the output filter, grid synchronisation and the DC-link capacitor. Every symbol is defined before use and every number was checked by calculation. For the DC side of the same machine, see how MPPT and DC-DC converters work.
Equipment values are illustrative typical datasheet figures, not any product's specification; use your own inverter's datasheet. PV strings are live whenever light falls on them, and work inside an inverter belongs to qualified, licensed electricians.
The grid as a target: voltage and power
First define the waveform we are aiming for. The symbols are:
- : instantaneous voltage (V); : its peak (V)
- : grid frequency (Hz), 50 Hz in India; : period (s)
- : angular frequency (rad/s); : phase angle (rad)
- : root-mean-square (effective) voltage (V)
The grid voltage is a sinusoid:
At 50 Hz, . The rms value is the steady DC voltage that heats a resistor equally, found from the mean of over one period:
Set and use :
The cosine completes two whole cycles per period, so its average is zero and only the constant half survives:
For 230 V, . That peak, not 230 V, is what the inverter must be able to create.
Three phases and the factor of root three
A three-phase supply has three sinusoids displaced by 120 degrees. With the rms phase-to-neutral voltage, take phase a as reference and phase b lagging by 120 degrees. The line-to-line voltage is the phasor difference:
Here . Pythagoras gives the magnitude:
The line voltage is times the phase voltage and leads phase a by 30 degrees. A 415 V line corresponds to a phase voltage of 239.6 V. The harmonised nominal is 230/400 V; the arithmetic is the same, so check which value your DISCOM declares.
| Phase voltage (rms) | Phase peak | Line-to-line (rms) |
|---|---|---|
| 230 V | 325.3 V | 398.4 V |
| 240 V | 339.4 V | 415.7 V |
| 253 V (230 V plus 10%) | 357.8 V | 438.2 V |
Why single-phase power pulses and three-phase power does not
Let the inverter push current in phase with the voltage (unity power factor). Instantaneous power is their product:
Since is the average power, this is:
Power swings between 0 and at 100 Hz. A 5 kW inverter on 230 V carries 21.7 A rms (30.7 A peak), yet its power goes from 0 to 10 kW a hundred times a second. The array supplies nearly constant power, so the DC-link capacitor absorbs the difference; we size it later.
For three balanced phases, with , the power is the sum of three such terms:
Apply to each. The three cosines are 120 degrees apart, so they sum to zero:
Balanced three-phase power is constant, with no 100 Hz ripple, so a three-phase inverter needs far less DC-link capacitance than a single-phase one.
The H-bridge: building AC from four switches
A single-phase bridge has four switches (IGBTs or MOSFETs, each with a diode across it) in two legs between the DC-link rails. Let be the DC-link voltage. Leg A has S1 above S2, and leg B has S3 above S4. The filter and grid sit between the two mid-points. Each mid-point, measured from the negative rail, is either 0 or :
| Switches on | Output vAB | Comment |
|---|---|---|
| S1 and S4 | +Vdc | Positive half |
| S2 and S3 | −Vdc | Negative half |
| S1 and S3, or S2 and S4 | 0 | Freewheeling |
| S1 and S2, or S3 and S4 | Not allowed | Shoot-through: DC link shorted |
Shoot-through and dead-time
If both switches of a leg conduct, only the loop inductance (H) and device resistance limit the current:
For an assumed 50 nH loop, that is 8 kA per microsecond, and the device fails within microseconds unless protection acts. Because switches turn off more slowly than they turn on, gate drivers insert a dead-time when both are off, and the load current flows through a diode.
Dead-time costs voltage. With the switching frequency, each leg's average output falls by about:
For , and , this is 6.4 V per leg and up to 12.8 V across the bridge, 3.9% of the 325 V peak. Its sign follows the current direction, so firmware compensates for it.
Sinusoidal PWM and the volt-second argument
Switching between +Vdc and −Vdc is not yet a sine wave. Sinusoidal PWM (SPWM) compares a slow reference with a fast carrier. The symbols are:
- : sinusoidal reference at grid frequency (V); : triangular carrier of peak at frequency
- : amplitude modulation index; : frequency ratio (both dimensionless)
- : duty ratio, the fraction of a carrier period that S1 and S4 are on
In bipolar switching, S1 and S4 are on when , and S2 and S3 otherwise. Assume , so the reference barely moves in one carrier period. The triangle ramps linearly from to and sits below the reference for the fraction:
The bridge gives +Vdc for a fraction and −Vdc for the rest. Volt-seconds per period divided by is the local average:
Substituting :
The filter inductor responds to the integral of voltage, so after filtering what remains is this local average, a sine of peak . It holds in the linear region . Beyond 1, low-order harmonics appear; the extreme is a square wave with fundamental .
Worked example. A 230 V grid peaks at 325.3 V. On a 400 V link, . At the 253 V upper case, , still linear, which is a sensible 10% headroom.
Where the approximation enters: The argument treats the reference as constant within one carrier period. At it moves by at most of its peak per period, about 2%, and the error shrinks as grows.
Bipolar versus unipolar, and where the harmonics land
In unipolar switching, leg A follows and leg B follows . The average is the same, , but the output steps between +Vdc, 0 and −Vdc in steps of Vdc and not 2Vdc, and the filter sees pulses at twice the carrier frequency.
| Bipolar | Unipolar | |
|---|---|---|
| Output levels | +Vdc, −Vdc | +Vdc, 0, −Vdc |
| Harmonic clusters (textbook) | Around mf and its multiples | Around 2mf and its multiples |
| Sidebands | mf ± 2, ± 4 ... | 2mf ± 1, ± 3 ... |
| At fs = 16 kHz (mf = 320) | Near 16, 32, 48 kHz | Near 32, 64 kHz |
These positions are the standard textbook result for a synchronised carrier with integer . Real inverters often free-run the carrier, so sidebands shift slightly, but the clusters stay near or . For there are no significant harmonics below the carrier frequency. A numerical simulation at and gave a fundamental of 359.8 V against 360 V predicted.
How high must the DC-link voltage be?
The output peak is at most , so the linear region sets a floor:
At and 230 V this is 325.3 V. Real designs add margin. Take a 10% high grid (253 V) and limited to 0.95:
Hence the common 380 to 400 V DC link. A string below that is lifted by a boost stage, covered in the MPPT and DC-DC converter guide.
Three-phase: deriving 0.612
In a three-phase bridge, each leg voltage relative to the DC mid-point swings between . The same SPWM argument gives:
The line voltage is their difference. Using , the bracket becomes :
Dividing the peak by gives the rms line voltage:
Plain SPWM cannot use the last 13% of the available line voltage. Third-harmonic injection adds the same term to all three references. It is common-mode, so it cancels in the line-to-line voltages of a three-wire system, and it flattens the reference peak to of the fundamental. Space-vector PWM (SVPWM) reaches the same limit by another route:
The table gives the minimum DC link, with and without a 10% high-grid margin.
| Line voltage | SPWM, ma = 1 | SVPWM, ma = 1.155 | SPWM, grid +10% | SVPWM, grid +10% |
|---|---|---|---|---|
| 400 V | 653 V | 566 V | 719 V | 622 V |
| 415 V | 678 V | 587 V | 745 V | 646 V |
For 415 V, SPWM needs and SVPWM needs , a saving of 13.4%. Sanity check: with SVPWM the line-to-line peak reaches the full DC link, the limit for any modulation. This is why three-phase string inverters use DC links of several hundred volts. Injection relies on the neutral not being used; a four-wire inverter needs care, because the common-mode term can then drive current.
Harmonics, Fourier series and THD
Any periodic voltage is a sum of sinusoids at multiples of the fundamental frequency. The symbols are:
- , : harmonic order, an integer ( is the fundamental)
- , : Fourier coefficients of the cosine and sine terms (V)
- : amplitude of harmonic (V); : the fundamental
Total harmonic distortion compares everything above the fundamental with the fundamental (peak or rms amplitudes give the same ratio):
Worked example: the square wave
Take a square wave of amplitude , positive for the first half period and negative for the second. It is odd-symmetric, so every , and the two half periods contribute equally to :
Even harmonics vanish, and harmonic is of the fundamental. For a swing the fundamental peak is 509.3 V, the third 169.8 V and the fifth 101.9 V. Then:
This uses .
| Harmonic h | Vh / V1 | Cumulative THD up to h |
|---|---|---|
| 3 (150 Hz) | 33.3% | 33.3% |
| 5 (250 Hz) | 20.0% | 38.9% |
| 7 (350 Hz) | 14.3% | 41.4% |
| 21 (1,050 Hz) | 4.8% | 45.9% |
| All odd harmonics | falling as 1/h | 48.3% |
A square wave plus a filter is not enough: the lowest harmonic is at 150 Hz, only three times the fundamental, and a filter that cut it hard would also distort 50 Hz. SPWM moves the energy to frequencies hundreds of times higher, where a small filter removes it. Grid codes such as IEEE 1547 and the CEA connectivity regulations limit the current distortion an inverter may inject, so check the current edition.
The output filter: LC and LCL
With harmonics near 16 or 32 kHz, a low-pass filter can pass 50 Hz and block them. Let be the series inductance (H), the shunt capacitance (F) and the cutoff (Hz). For an unloaded LC divider:
The denominator vanishes at resonance, which defines the cutoff:
Well above , the magnitude falls with the square of the frequency ratio, which is 40 dB per decade:
Worked example. Choose and :
This is 33 times the grid frequency, so 50 Hz passes almost untouched, and 9.7 times below . At the switching frequency:
At 32 kHz (the unipolar cluster) it is 51.6 dB. The shortcut gives 39.6 dB, within 0.1 dB. The capacitor draws 0.34 A at 50 Hz, about 78 var or 1.6% of 5 kVA.
On a real grid: L, then LCL
A grid-connected inverter drives a stiff source whose impedance is small at high frequency, so the series inductor does most of the work. In unipolar switching at an effective , the current ripple peaks when the instantaneous voltage is :
That is 5.1% of the 30.7 A peak current of a 5 kW unit. An LCL filter adds a second inductor and gives 60 dB per decade above its resonance, so smaller inductors reach the same attenuation:
Here is the inverter-side inductor, the grid-side one and the capacitor. Undamped, that resonance can destabilise the current controller, so designers place it between about ten times the grid frequency and half the switching frequency, and damp it with a resistor or in firmware. Fast edges also drive leakage current through the PV-to-earth capacitance, one reason earthing matters; see earthing and surge protection for solar plants.
Grid synchronisation and power flow
To export power, the inverter must match the grid's frequency and phase. A phase-locked loop (PLL) estimates the grid phase. Let be the true phase, the estimate and . Multiply the measurement by :
A low-pass filter removes the second term, which sits near 100 Hz. The first is proportional to the phase error for small angles:
A PI controller turns into a frequency correction, and an integrator turns frequency into phase:
At zero error the estimate has locked onto the grid's phase and frequency.
Real and reactive power through a reactance
Model the inverter as a voltage phasor (rms) joined to the grid through a series reactance (ohms). The current is:
The complex power from the inverter is , with the complex conjugate:
The real part is real power and the imaginary part reactive power :
For a purely reactive link these are exact; texts write when lines also have resistance. For small (radians), and : the angle sets real power, and the voltage magnitude sets reactive power.
Worked example. A 5 kW inverter feeds a 230 V grid through , so . Unity power factor at the grid requires , so :
Then at 21.7 A. The reactive power is , matching the formula; the inductor consumes it. The table uses on the same link.
| Angle δ | P | Q at inverter |
|---|---|---|
| 1° | 1.47 kW | 13 var |
| 3.4° | 4.99 kW | 148 var |
| 10° | 14.6 kW | 1,279 var |
| 30° | 42.1 kW | 11,280 var |
A few degrees move kilowatts, and the maximum at 90 degrees is 84.2 kW for this link. In practice the inverter regulates its output current, with the PLL supplying the reference phase. An outer loop holds the DC-link voltage steady: if the link rises, more power is coming in than going out, so the current amplitude rises. The tracker sets what the array delivers, and the grid side exports exactly that.
S, P, Q and power factor
Apparent power (VA) is rms voltage times rms current. Real power (W) does work, and reactive power (var) shuttles back and forth. With the angle between voltage and current:
The power factor is for sinusoids. A 5 kVA inverter at PF 0.9 delivers 4.5 kW and 2.18 kvar. Because the inverter is limited in VA, reactive power reduces the real power it can export; confirm your DISCOM's settings.
Synchronisation also supports anti-islanding. If the grid fails while local load nearly matches the inverter output, the inverter could keep a local network live and endanger line workers. Inverters watch voltage, frequency and phase against set windows, and may inject a small disturbance so an island drifts out of limits and trips; IEEE 1547 and the CEA connectivity regulations cover this. The effect you notice is in what a solar inverter is: a plant stops in an outage unless it is backup-capable.
Sizing the DC-link capacitor
Return to the 100 Hz pulsation. Assume the DC side supplies constant power , which is what MPPT aims for, while the AC side takes . The symbols are:
- : power into the capacitor (W); : energy stored (J)
- : DC-link capacitance (F); : mean DC-link voltage (V)
- : peak-to-peak ripple voltage (V)
The capacitor absorbs the difference:
Integrating gives an energy that oscillates about its mean:
A capacitor stores , so the same swing is:
This is exact when is the midpoint of the swing. Equating the two energies gives the sizing rule:
Worked example. A 5 kW inverter at with 5% peak-to-peak ripple has :
The energy swing is 15.9 J and the voltage runs from 390 V to 410 V. Check: . The 100 Hz capacitor current has amplitude , so its rms value is:
Ripple-current rating matters as much as capacitance, and electrolytic capacitors, the usual choice, are a typical wear item.
| Ripple (peak to peak) | ΔV | C for 5 kW at 400 V |
|---|---|---|
| 2% | 8 V | 4,974 µF |
| 5% | 20 V | 1,989 µF |
| 10% | 40 V | 995 µF |
The capacitor sits on the high-voltage DC link after the boost stage, not across the panels, because 100 Hz ripple across the array would make the operating point wobble and cost energy, as MPPT theory shows. A three-phase inverter has no 100 Hz term, so its capacitor only handles switching ripple.
Stored energy is a hazard: The 2 mF capacitor above holds at 400 V. Do not open an inverter. Only a qualified, licensed electrician should work on one, after the manufacturer's discharge time has passed and de-energisation is verified. PV strings stay live whenever light falls on them.
Losses, efficiency and the switching-frequency trade-off
Conduction loss depends on current: for a MOSFET it is , and for an IGBT . Switching loss occurs at each transition, when voltage and current overlap, and is proportional to switching frequency. Using for the average energy per switching event:
These assume two devices conduct at any instant and four switch each period; inductor, gate-drive and boost-stage losses are extra.
Worked example. Assume and a datasheet at 400 V and 30 A, scaled linearly with current. With , . The cycle-average current magnitude is of the 30.74 A peak, so , and at 16 kHz .
| Switching frequency | Switching loss | Total bridge loss | Bridge efficiency | Ripple, 2 mH unipolar |
|---|---|---|---|---|
| 4 kHz | 4.2 W | 51.4 W | 98.98% | 6.25 A (20% of peak) |
| 8 kHz | 8.4 W | 55.6 W | 98.90% | 3.13 A (10%) |
| 16 kHz | 16.7 W | 64.0 W | 98.74% | 1.56 A (5.1%) |
| 32 kHz | 33.4 W | 80.7 W | 98.41% | 0.78 A (2.5%) |
The trade-off is plain. Doubling doubles switching loss but halves the ripple for a given inductor, or lets you halve the inductor. Higher frequency gives a smaller, cheaper filter but more heat. When you compare datasheets, such as those in top solar inverter brands in India, look at weighted efficiency across load levels and at THD at rated power, not only the peak efficiency.
If you want this analysis for your own site, covering the DC-to-AC ratio, string voltage against the inverter window and power quality, Ray2Volt can work through it with you. Start with a free power audit or see our commercial and industrial solar service.
Frequently asked questions
Why does a 230 V single-phase inverter need a DC link of about 400 V?
Because 230 V is an rms value. The sine wave peaks at about 325 V, and the inverter can create a peak equal only to the modulation index times the DC-link voltage, with the index kept below 1. Allowing for a grid 10% high (peak about 358 V) and an index limit of 0.95, the DC link must be at least about 377 V, so 380 to 400 V is common.
Why does a single-phase inverter need a big DC-link capacitor but a three-phase inverter does not?
Single-phase power pulses at 100 Hz between zero and twice the average, while the PV array supplies nearly constant power, so a capacitor stores the difference. A 5 kW inverter at 400 V with 5% peak-to-peak ripple needs about 2 mF. In a balanced three-phase system the three phase powers add up to a constant, so no 100 Hz storage is needed.
What is THD and what value is acceptable?
Total harmonic distortion is the square root of the sum of squares of all harmonic amplitudes above the fundamental, divided by the fundamental. A plain square wave has a THD of 48.3%. The limits for injected current come from grid codes such as IEEE 1547 and the CEA connectivity regulations, so check the current edition and your DISCOM's requirements.
Why do inverters switch at kilohertz frequencies and not much higher?
A higher switching frequency shrinks the filter and the current ripple, but switching loss rises in direct proportion. In the worked 5 kW example, going from 4 kHz to 32 kHz cut the ripple eightfold but raised bridge losses from about 51 W to about 81 W.
How does an inverter stay in step with the grid?
A phase-locked loop compares an internal estimate of the grid phase with the measured voltage and adjusts its frequency until the error is zero. The inverter then drives a sinusoidal current in phase with that reference, with an amplitude set by the DC-link voltage controller so that exported power matches what the panels deliver.
Want this analysis for your own plant?
We can check your string voltages against the inverter window, the DC-to-AC ratio and the power quality of your site. Book a free power audit and bring your inverter datasheet.