Power-Factor Correction: the Boost PFC Stage
The capacitor-input rectifier of Line Harmonics and Power Factor drew its current in narrow pulses at the voltage peaks, reached a power factor of and failed every IEC 61000-3-2 Class D limit. Larger chokes and filters can soften the pulses, but they are heavy and still leave a power factor near . The modern answer is active: put a boost converter between the rectifier bridge and the bulk capacitor, and control its inductor current so that its average follows the shape of the rectified line voltage. The supply then sees a resistor. This lesson derives how that works, sizes the inductor and the bulk capacitor of a stage, and shows why the voltage loop must be slow. Everything here runs on the mains: calculation and simulation only; nothing in this lesson is built or measured on a real line.
The circuit and the idea
The boost needs at every instant, so the bus is set above the line peak: for ( peak, at ). Three nested quantities run on three time scales:
- the switching at shapes the inductor current inside each period;
- the current loop (crossover a few kilohertz) makes the period-averaged inductor current follow , a rectified sine in phase with the voltage;
- the voltage loop (crossover to ) adjusts the amplitude so that the average input power equals the load power.
Seen from the line, the stage is an emulated resistance . The current is sinusoidal and in phase, so the power factor approaches 1 and the harmonics almost vanish.
The duty cycle and the ripple over a line cycle
At each instant the boost obeys its ordinary steady-state law, because the line changes slowly compared with the switching period:
Near the zero crossings ; at the line peak is smallest. The ripple is largest where , giving whenever the line peak exceeds .
Power balance and the bus ripple. With and , the input power is : it pulses at twice the line frequency, between zero and , while the load draws a steady . The bulk capacitor absorbs the difference, so the bus ripples at :
The second formula is the hold-up time: how long the downstream converter keeps running from the capacitor's energy after the line drops out (a missing half-cycle or more). Hold-up, not ripple, often sets .
Worked example: a 300 W stage on 230 V (calculation only)
Given: , , , line (IEC 60038), , , inductor ripple at most about 30 % of the low-line peak current, hold-up of at least down to .
Find: the line current, , the peak inductor current, and .
Solve:
Check: with the ripple is peak-to-peak, 4 % of the bus, and the hold-up is . The inductor must not saturate at plus the margin of the current limit (Inductor Design). The code tabulates the line range and checks the harmonics against Class D.
import numpy as np
# boost PFC, 300 W out, 400 V bus, 100 kHz, L = 1.5 mH (calculation only: mains)
Pout, Vo, eta, fsw, L, f = 300.0, 400.0, 0.95, 100e3, 1.5e-3, 50.0
Pin = Pout / eta
print(" Vrms | Iin rms Iin pk | D at peak | ripple at peak max ripple | IL peak")
for Vrms in (207.0, 230.0, 253.0): # 230 V +-10 % (IEC 60038)
Vpk = np.sqrt(2) * Vrms
Irms = Pin / Vrms
Ipk = np.sqrt(2) * Irms
Dpk = 1 - Vpk / Vo
dI_pk = Vpk * Dpk / (L * fsw)
dI_max = Vo / (4 * L * fsw) if Vpk > Vo / 2 else dI_pk
print(f"{Vrms:5.0f} | {Irms:6.3f} A {Ipk:6.3f} A | {Dpk:9.3f} | {dI_pk:10.3f} A {dI_max:10.3f} A | {Ipk + dI_pk/2:5.2f} A")
# line current with two imperfections: 100 Hz bus ripple leaking into the current
# reference (m = 4 %) and a dead zone near the zero crossings (|v| < 40 V)
N = 4000
th = np.arange(N) * 2 * np.pi / N
Vpk, Irms0 = np.sqrt(2) * 230.0, Pin / 230.0
v = Vpk * np.sin(th)
for m, vdz in ((0.0, 0.0), (0.04, 0.0), (0.04, 40.0)):
i = np.sqrt(2) * Irms0 * np.sin(th) * (1 + m * np.cos(2 * th))
i[np.abs(v) < vdz] = 0.0
X = np.abs(np.fft.rfft(i)) / N * np.sqrt(2) # rms of each harmonic
I, I1 = np.sqrt(np.mean(i**2)), X[1]
P = np.mean(v * i)
pf = P / (230.0 * I)
thd = np.sqrt(I**2 - I1**2) / I1
worst = max(X[h] / (lim * P / 1e3) for h, lim in ((3, 3.4), (5, 1.9), (7, 1.0), (9, 0.5), (11, 0.35)))
print(f"m = {m:.2f}, dead zone {vdz:4.1f} V: PF = {pf:.4f}, THD = {100*thd:4.1f} %, "
f"h3 = {X[3]*1e3:5.1f} mA, worst Class D harmonic at {100*worst:4.1f} % of its limit")
# bulk capacitor: 100 Hz ripple and hold-up time (down to 300 V)
for C in (100e-6, 150e-6, 220e-6):
dV = Pout / (2 * np.pi * f * C * Vo)
t_hold = C * (Vo**2 - 300.0**2) / (2 * Pout)
print(f"C = {C*1e6:3.0f} uF: ripple {dV:5.1f} V pp ({100*dV/Vo:3.1f} %), hold-up to 300 V {t_hold*1e3:4.1f} ms") Vrms | Iin rms Iin pk | D at peak | ripple at peak max ripple | IL peak
207 | 1.526 A 2.157 A | 0.268 | 0.523 A 0.667 A | 2.42 A
230 | 1.373 A 1.942 A | 0.187 | 0.405 A 0.667 A | 2.14 A
253 | 1.248 A 1.765 A | 0.106 | 0.252 A 0.667 A | 1.89 A
m = 0.00, dead zone 0.0 V: PF = 1.0000, THD = 0.0 %, h3 = 0.0 mA, worst Class D harmonic at 0.0 % of its limit
m = 0.04, dead zone 0.0 V: PF = 0.9998, THD = 2.0 %, h3 = 27.5 mA, worst Class D harmonic at 2.6 % of its limit
m = 0.04, dead zone 40.0 V: PF = 0.9994, THD = 3.5 %, h3 = 24.1 mA, worst Class D harmonic at 9.5 % of its limit
C = 100 uF: ripple 23.9 V pp (6.0 %), hold-up to 300 V 11.7 ms
C = 150 uF: ripple 15.9 V pp (4.0 %), hold-up to 300 V 17.5 ms
C = 220 uF: ripple 10.9 V pp (2.7 %), hold-up to 300 V 25.7 ms
The maximum ripple, , is the same at every line voltage because it occurs where ; the peak inductor current is set by low line. Even with a 4 % ripple leak and a dead zone (the current cannot follow the reference near the zero crossings, where the inductor has almost no voltage to rise with), the power factor stays above and the worst harmonic uses under 10 % of its Class D limit, against more than 400 % for the bare rectifier. The capacitor rows confirm the hand result for .
Interactive: one instant of the line cycle, scaled 1 : 10
The lab is a lossless boost in steady state, so it shows one frozen instant. Scale voltages by 1/10 and the inductance by 1/10 (the ripple is unchanged): stands for , , , , . The lab reads (the bus) and an inductor ripple of , the maximum ripple of the table. Set and , the low-line peak: and the ripple falls to . Sliding and together along walks through a half line cycle.
Simulation: why the voltage loop must be slow
The bus ripple is fed back. If the voltage loop has much gain at , it modulates the current amplitude at , and a sine multiplied by contains a third harmonic. The deck models the averaged stage: the line current is with a conductance set by a PI voltage loop, and the bus receives . Two copies differ only in loop gain: crossover about and about .
cat > pfc.cir <<'EOF'
* Averaged boost PFC, 230 V 50 Hz, 300 W, 400 V bus, 150 uF (simulation only)
* line current = g * v(line); a PI voltage loop sets the conductance g
.param kp1=3.75e-5 ki1=1.18e-4 kp2=2.25e-4 ki2=4.24e-3
VS1 a1 0 SIN(0 325.27 50)
BI1 a1 0 I = v(a1)*v(g1)
BG1 g1 0 V = 5.97e-3 + kp1*(400-v(o1)) + v(n1)
BN1 0 n1 I = ki1*(400-v(o1))
CN1 n1 0 1
BO1 0 o1 I = 0.95*v(a1)*v(a1)*v(g1)/max(v(o1),10)
C1 o1 0 150u IC=400
RL1 o1 0 533.33
VS2 a2 0 SIN(0 325.27 50)
BI2 a2 0 I = v(a2)*v(g2)
BG2 g2 0 V = 5.97e-3 + kp2*(400-v(o2)) + v(n2)
BN2 0 n2 I = ki2*(400-v(o2))
CN2 n2 0 1
BO2 0 o2 I = 0.95*v(a2)*v(a2)*v(g2)/max(v(o2),10)
C2 o2 0 150u IC=400
RL2 o2 0 533.33
.options nfreqs=5
.control
tran 20u 1 0 20u uic
meas tran vbus_slow avg v(o1) from=0.9 to=1
meas tran vpp_slow pp v(o1) from=0.9 to=1
meas tran vbus_fast avg v(o2) from=0.9 to=1
meas tran vpp_fast pp v(o2) from=0.9 to=1
fourier 50 i(VS1) i(VS2)
.endc
.end
EOF
ngspice -b pfc.cir 2>&1 | awk '/^(vbus|vpp)/ {print $1, $2, $3} /THD/ {n++; printf "loop %s: THD %s\n", (n == 1 ? "5 Hz" : "30 Hz"), $5} $1 ~ /^[13]$/ && $2 ~ /^[0-9]+$/ {printf " h%s %3s Hz peak %.4f A %.4f of h1\n", $1, $2, $3, $5}'vbus_slow = 3.999622e+02
vpp_slow = 1.589927e+01
vbus_fast = 4.000001e+02
vpp_fast = 1.577883e+01
loop 5 Hz: THD 2.49194
h1 50 Hz peak 1.9425 A 1.0000 of h1
h3 150 Hz peak 0.0484 A 0.0249 of h1
loop 30 Hz: THD 14.5031
h1 50 Hz peak 1.9615 A 1.0000 of h1
h3 150 Hz peak 0.2845 A 0.1450 of h1
Both loops hold the bus at with the predicted ripple, and the fundamental peak is , the hand value. The slow loop leaves a third harmonic; the faster one . That is the classic PFC trade: a voltage loop of to gives a clean current but a slow, large overshoot on load steps, which controllers handle with nonlinear "fast-response" windows or a notch at .
Variants and standards (as of 2026)
- CCM average-current control (above): standard from a few hundred watts up. Critical-conduction mode (CrM, the DCM/CCM boundary, variable frequency) avoids the boost diode's reverse recovery and dominates below about (Discontinuous Conduction Mode, Power Diodes). Interleaving two phases halves the ripple seen by the filter.
- Bridgeless totem-pole PFC removes the bridge's two diode drops by using a GaN or SiC half-bridge at high frequency plus a slow MOSFET leg; in 2026 it is the usual choice for server supplies with peak efficiencies of about (80 PLUS Titanium and Open Compute ORv3 class; and above is quoted for the PFC stage alone) (IGBTs, SiC and GaN).
- IEC 61000-3-2 (edition 5.0, 2018, with Amendment 1:2020 and Amendment 2:2024, consolidated as edition 5.2, plus Interpretation Sheet 1:2025; as of 2026-11) sets per-equipment limits for up to per phase: Class A absolute limits in amperes, Class C for lighting, Class D in mA/W for PCs, monitors and televisions from to . In practice nearly every supply above carries a PFC stage; ecodesign rules and efficiency programmes push the same way.
Guided study (calculation and simulation only)
Hand calculation. For a , stage on at : the low-line peak current, for 30 % ripple, the peak inductor current, and for hold-up to .
Simulation. Put the values in the Python cell; in the deck, scale 's nominal value (), the load and , and compare the third harmonic for two loop gains.
What you would measure (described, not done). Qualified test labs measure harmonics with a power analyser to IEC 61000-4-7 (edition 2.1, 2009, as of 2026-11) behind a reference source, never with a scope on the line. You would expect a PF above at full load, falling at light load as the filter capacitor's reactive current and the dead zone weigh more. On the bench of this course, the safe analogue is the scaled boost lab above or a low-voltage boost board from a current-limited supply.
Hazards. A bus capacitor stores and stays charged after unplugging; the inrush into it at switch-on needs an NTC or relay bypass. None of this is a bench activity here.
Pitfalls
- Bus below the line peak. At line ( peak) a bus leaves little margin; below the peak the boost cannot control the current at all, and the bridge charges the capacitor directly.
- A fast voltage loop. It injects the ripple into the current: third harmonic.
- Sizing for ripple only. Hold-up time usually needs more.
- Forgetting the boost diode's recovery in CCM: a silicon diode at and adds watts; SiC Schottky diodes are standard there.
Practice
- Find the emulated resistance of the stage at .
- With instead of , what is the maximum ripple, and where in the line cycle?
- What capacitance gives hold-up from to at ?
Answer
- (the deck's ).
- , where (about into each half-cycle at ).
- , so .
Test yourself
What does a boost PFC stage make the line see?
- a capacitor
- an emulated resistance: current in phase with and shaped like the voltage
- a constant current
- an inductor
At what frequency does the bus voltage of a single-phase PFC stage on 50 Hz ripple?
- 50 Hz
- 100 Hz
- 150 Hz
- the switching frequency
Why is the PFC voltage loop given a crossover of only 5 to 20 Hz?
- to save power
- so that the 100 Hz bus ripple does not modulate the current reference and create a third harmonic
- because the inductor is large
- to avoid DCM
Where in the line cycle is the CCM boost PFC's inductor ripple largest (line peak above )?
- at the zero crossing
- at the line peak
- where
- it is constant