AC Power: Real (P), Reactive (Q), Apparent (S), Power Factor
How P, Q and S are defined, why power factor is not always cos(phi), what harmonics do to it, and how to measure all of it correctly on an MCU.
Contents & prerequisites
In DC, power is one number: . In AC, one number is not enough. The same 230 V outlet delivering 10 A can be transferring 2300 W to a heater or 0 W to an ideal inductor. The current is identical in both cases — the wiring, the breaker and the transformer feel the same stress — but only one of them does work.
Four quantities describe this properly. Getting them straight is the difference between a power supply that passes EN 61000-3-2 and one that doesn't, between a meter that reads correctly and one that under-reports by 40 %, and between a plant that pays a reactive energy penalty and one that doesn't.
1. Start from instantaneous power
Instantaneous power is never ambiguous. It is always the product of the instantaneous values:
Take a sinusoidal voltage and a current lagging it by phase angle :
Multiply and apply the product-to-sum identity:
Two terms, and the physical interpretation of the whole topic sits in them:
- A constant term, . This is net energy transfer, one-way, from source to load.
- An oscillating term at (100 Hz on a 50 Hz line) with zero average. Energy flows into the load for part of the cycle and back out for the rest. Nothing is consumed; something is being stored and returned — a magnetic field in an inductor, an electric field in a capacitor.
That double-frequency ripple is also why single-phase inverters and single-phase PFC stages need a bulk capacitor sized for 100/120 Hz energy buffering, and why single-phase motors vibrate at twice the line frequency.
2. The four definitions
Using RMS values (, ):
| Quantity | Symbol | Definition (sinusoidal) | Unit | Physical meaning |
|---|---|---|---|---|
| Real (active) power | W | Energy actually converted — heat, torque, light | ||
| Reactive power | var | Energy shuttled back and forth into storage elements | ||
| Apparent power | VA | What the conductors, transformer and breaker must carry | ||
| Power factor | PF | — | Fraction of the carried VA that does work |
In complex form, with and as RMS phasors:
The conjugate on the current is not cosmetic. It is what makes come out positive for an inductive load under the standard convention.
Sign conventions worth memorizing
- Inductive load — current lags voltage, , . The load absorbs reactive power. Called lagging PF. Motors, transformers, solenoids, chokes.
- Capacitive load — current leads voltage, , . The load supplies reactive power. Called leading PF. Capacitor banks, long lightly-loaded cables, some LED drivers.
- is always positive for a passive consumer. Negative means export — a PV inverter, a regenerating drive.
The power triangle follows directly: on the horizontal, vertical, the hypotenuse, and the angle between and .
3. Power factor is not the same thing as cos φ
This is the single most common error in the field, and it is a firmware-era problem: it appears exactly when your load is a switch-mode converter rather than a motor.
Power factor is defined as . Always. That definition never breaks.
is a special case that holds only when both voltage and current are pure sinusoids at the same frequency. A rectifier drawing 3 ms current spikes out of a 20 ms line cycle violates that assumption completely.
For a sinusoidal voltage and a distorted current, split the current into its fundamental and its harmonics:
Only the fundamental current component produces real power, because harmonic currents have no voltage component at their frequency to multiply against. But the RMS current — the thing that heats your wiring — includes everything:
So:
And since :
True PF = displacement factor × distortion factor. A load can be perfectly in phase — — and still have a terrible power factor purely from waveform shape.
The canonical example
A bridge rectifier feeding a bulk capacitor conducts only near the AC peaks. Typical current THD is 100–150 %, which gives:
with a displacement factor essentially equal to 1. Adding a capacitor across the input does nothing — the problem is not phase shift.
| Front end | Typical PF | Dominant mechanism |
|---|---|---|
| Resistive heater | 1.00 | — |
| Induction motor at rated load | 0.85–0.90 lagging | Displacement |
| Induction motor at light load | 0.4–0.6 lagging | Displacement |
| Bridge rectifier + bulk cap | 0.5–0.65 | Distortion |
| Passive (valley-fill / L-C) PFC | 0.7–0.85 | Distortion, partly corrected |
| Active boost PFC (CCM) | 0.98–0.999 | Both corrected |
Non-sinusoidal apparent power
When harmonics are present, no longer holds with as the only non-active term. Budeanu's decomposition adds a distortion power :
This decomposition is convenient but theoretically contested — IEEE 1459 defines a more rigorous framework separating fundamental and non-fundamental apparent power. For practical work, the point to internalize is: any "reactive power" number your meter reports for a non-sinusoidal load is almost certainly , not true reactive power.
4. Why anyone cares (the money and the copper)
Current is set by apparent power, not real power:
Conductor loss scales with the square of that:
Drop the power factor from 1.0 to 0.7 while delivering the same useful watts and your I²R losses increase by a factor of . That loss is in the utility's transformer and the building's wiring — not in the load — which is why it becomes a billing and compliance issue rather than the load owner's efficiency problem.
Three consequences follow:
- Equipment is rated in VA, not W. Transformers, UPSs, generators and breakers are sized by apparent power because that's what determines their copper and core stress. A 1 kVA UPS driving a 0.6 PF load delivers only 600 W.
- Reactive energy is metered and penalized. Industrial tariffs commonly apply a penalty when inductive reactive energy exceeds roughly 20 % of active energy over the billing period (the threshold used in Türkiye, for example; capacitive is limited more tightly). This is what drives capacitor bank installations.
- Harmonic current is regulated. IEC/EN 61000-3-2 sets per-harmonic current limits for equipment up to 16 A per phase; for Class D equipment (PCs, monitors, TVs) the limits bite above 75 W input power. This is why active PFC exists in every modern PC supply — the standard limits harmonics, and high PF is the byproduct.
Correction: match the mechanism to the cause
-
Displacement problem (motors): install shunt capacitors. To move from to at constant :
A 50 kW load at 0.75 PF (φ₁ = 41.4°) taken to 0.95 PF (φ₂ = 18.2°) needs kvar. Watch out for resonance with system inductance and for over-correction at light load, which pushes you into capacitive penalty territory.
-
Distortion problem (rectifiers): capacitors make it worse by forming a resonant tank with line inductance. You need active PFC, an LCL/passive filter, or a multi-pulse/interleaved topology.
Three-phase, in passing
Balanced three-phase has no double-frequency power ripple at all — instantaneous power is constant. That is the reason three-phase inverters need far less DC-link buffering than single-phase ones.
5. Measuring it correctly
This is where embedded engineers get burned. The formula you cannot use:
// WRONG — this is |S|, not P. It reads 2300 VA for a 0 W inductive load.
P = Vrms * Irms;
The correct approach accumulates the product of simultaneous samples:
// Per-sample accumulation over an integer number of line cycles
acc_p += (int64_t)v_sample * i_sample; // for real power
acc_vsq += (int64_t)v_sample * v_sample; // for Vrms
acc_isq += (int64_t)i_sample * i_sample; // for Irms
// At the end of the window (N samples):
P = (float)acc_p / N * k_p; // real power, W
Vrms = sqrtf((float)acc_vsq / N) * k_v;
Irms = sqrtf((float)acc_isq / N) * k_i;
S = Vrms * Irms; // apparent power, VA
PF = P / S; // true power factor, signed
Q_ap = sqrtf(fmaxf(S*S - P*P, 0.0f)); // NOTE: this is sqrt(Q^2+D^2)
Practical constraints that decide whether this works:
- Simultaneous sampling. V and I must be sampled at the same instant, or the phase error becomes a direct PF error. A 1-sample skew at 4 kHz on a 50 Hz line is 4.5° — enough to turn a real 0.999 PF into a reported 0.92. Use a dual simultaneous-sampling ADC, or compensate the known delay in firmware.
- Integer cycle windows. Accumulate over a whole number of line cycles (zero-crossing-locked or PLL-tracked), otherwise the 2ω term leaks into your average and P wanders with the window phase.
- Bandwidth. To capture up to the 40th harmonic on 50 Hz you need meaningful response to 2 kHz, so sample at ≥ 8–10 kHz with an anti-alias filter matched to it. Undersampling makes a distorted load look clean and inflates your PF reading.
- Sign of Q. The magnitude method above loses it. To get lagging vs leading you need either the Hilbert/quarter-cycle-shifted voltage method () or an FFT/Goertzel at the fundamental.
- Consider a metering IC. ADE7953/ADE9000 (Analog Devices) or STPM32 (ST) implement all of the above in hardware with calibrated accuracy classes, and hand you P, Q, S, PF and THD over SPI. For anything that has to meet a metering standard, this is almost always the faster and cheaper path than an MCU + discrete AFE.
6. Worked example
A single-phase load on 230 V, 50 Hz draws 12 A RMS. Measured real power is 1980 W. Current THD is 65 %.
- Non-active power:
- Distortion factor:
- Displacement factor:
- True reactive power: , with , so
- Distortion power:
The instructive part: the 1923 VA of non-active power is mostly distortion, not reactive. A capacitor bank sized against that 1923 figure would massively over-correct and could excite a resonance. Sized against the true 1195 var, it works.
7. Key takeaways
- always. Everything else is an average or a decomposition of it.
- does work (W), shuttles energy into storage (var), sizes the hardware (VA), PF tells you how efficiently the VA is used.
- only for pure sinusoids. True PF = displacement × distortion factor.
- Capacitors fix displacement. They do not fix distortion — active PFC does.
- Never compute P as . Accumulate sample products over integer line cycles with simultaneous V/I sampling.
- Any single "reactive power" figure from a meter on a switching load is unless the datasheet says otherwise.
Further reading
- IEEE Std 1459 — Definitions for the Measurement of Electric Power Quantities Under Sinusoidal, Nonsinusoidal, Balanced, or Unbalanced Conditions
- IEC/EN 61000-3-2 — harmonic current emission limits
- Erickson & Maksimović, Fundamentals of Power Electronics, chapters on input-current shaping and PFC
- Analog Devices AN-1268 / ADE9000 datasheet — practical metering architecture and calibration
Learning
Sign in to track your progress.
Evidence
Public projects engineers linked to AC Power: Real (P), Reactive (Q), Apparent (S), Power Factor.
Python test automation Reference Design
by Olivia Grant
Olivia Grant built a production-oriented project around Python test automation, DMM/Scope, HALT.
Python test automationDMM/ScopeHALTThermal chambersSchematic capture Reference Design
by Emily Hart
Emily Hart built a production-oriented project around Schematic capture, STM32 GPIO, I2C.
Schematic captureSTM32 GPIOI2COscilloscope basicsLow-noise AFE Reference Design
by Maya Chen
Maya Chen built a production-oriented project around Low-noise AFE, IEC 60601, Analog front-end.
Low-noise AFEIEC 60601Analog front-endAltiumC basics Reference Design
by Samir Ali
Samir Ali built a production-oriented project around C basics, UART, ADC basics.
C basicsUARTADC basicsBreadboarding
