TExcelTAD
Home › Electrical & Electronic Measurements › Power, Energy and Power Quality Measurement

Power, Energy and Power Quality Measurement

"The power supply draws 2.0 A2.0\ \text{A} at 230 V230\ \text{V}, so it takes 460 W460\ \text{W}." It does not: a power analyser shows 317 W317\ \text{W} with a power factor of 0.680.68. Multiplying an rms voltage by an rms current gives apparent power; the real power, what the energy meter bills and what heats the equipment, is the average of the instantaneous product v(t) i(t)v(t)\,i(t). When the current is distorted, the two differ even if the current is in phase with the voltage. This lesson covers how power is measured, from the classic wattmeter to the sampling power analyser and the energy meter, and how distortion is quantified as THD.

Safety for this lesson. Mains-voltage examples are calculation and simulation only. Measuring on mains needs a power analyser or energy meter rated for the installation category, connected by qualified people; bench work in this course stays at low voltage from a generator or a current-limited supply.

Definitions for periodic signals

P=1T∫0Tv(t) i(t) dt,S=VrmsIrms,PF=PSP = \frac{1}{T}\int_0^T v(t)\,i(t)\,dt, \qquad S = V_\text{rms} I_\text{rms}, \qquad \text{PF} = \frac{P}{S}

For sinusoids PF=cos⁡φ\text{PF} = \cos\varphi (Complex Power and Power Factor). With a sinusoidal voltage and a distorted current, only the fundamental current carries real power, and

PF=cos⁡φ1⏟displacement×I1Irms⏟distortion=cos⁡φ11+THDI2,THD=∑h≥2Xh2X1\text{PF} = \underbrace{\cos\varphi_1}_{\text{displacement}} \times \underbrace{\frac{I_1}{I_\text{rms}}}_{\text{distortion}} = \frac{\cos\varphi_1}{\sqrt{1 + \text{THD}_I^2}}, \qquad \text{THD} = \frac{\sqrt{\sum_{h \ge 2} X_h^2}}{X_1}

where XhX_h are the rms values of the harmonics. (Some standards define THD up to the 40th or 50th harmonic, and "THD-R" relative to the total rms instead of the fundamental; state which.)

Instruments

voltage channel divider, v(t) current channel shunt or sensor, i(t) ADC simultaneous ADC simultaneous multiply v[k] i[k] average whole periods P, S, PF THD, Wh frequency tracking: period of v(t)
  • The electrodynamometer wattmeter (Analog Meters) had a fixed current coil and a moving voltage coil; its torque followed v iv\,i and its inertia averaged it. It needs a current coil in series and a voltage coil in parallel, and its reading includes the power lost in whichever coil sits on the wrong side.
  • A power analyser samples voltage (through a precision divider) and current (through a shunt or a zero-flux transducer) simultaneously, multiplies sample by sample and averages over an integer number of fundamental periods, found by a frequency-tracking circuit. It also computes rms values, harmonics (per IEC 61000-4-7, using 1010-cycle windows at 50 Hz50\ \text{Hz} and 1212-cycle windows at 60 Hz60\ \text{Hz}, about 200 ms200\ \text{ms}), PF and efficiency between channels. Accuracy is quoted per channel and for power, e.g. ±(0.05 % of reading+0.05 % of range)\pm(0.05\,\% \text{ of reading} + 0.05\,\% \text{ of range}) at 50 Hz50\ \text{Hz}, plus a phase-error term that dominates at low PF (illustrative figures; check the instrument).
  • Three-phase power: a three-wire system needs two wattmeters (Blondel's theorem: n−1n - 1 elements for nn wires), a four-wire system three.
  • An electricity (energy) meter integrates power over time: an electronic metering IC samples vv and ii (shunt, CT or Rogowski coil), multiplies, and emits pulses per Wh. Accuracy classes are defined by IEC 62053-21:2020 (static meters, classes 2, 1 and 0.5) and IEC 62053-22:2020 (transformer-operated meters, classes 0.5S, 0.2S and 0.1S) or, for billing meters in the EU, by the Measuring Instruments Directive 2014/32/EU (classes A, B, C, with C the most accurate).

Phase error matters at low PF. A wattmeter's phase error δ\delta (between its voltage and current channels) causes a power error of about δtan⁡φ\delta\tan\varphi relative: 0.1∘0.1^\circ (1.75 mrad1.75\ \text{mrad}) is 0.18 %0.18\,\% at PF =0.7= 0.7 but 1.7 %1.7\,\% at PF =0.1= 0.1. That is why transformer no-load losses (very low PF) need special analysers.

Worked example: a rectifier load on the mains (calculation only)

Given: a 230 V230\ \text{V}, 50 Hz50\ \text{Hz} supply with 3 %3\,\% 5th-harmonic voltage, and a rectifier-type load current with a 2.0 A2.0\ \text{A}-peak fundamental lagging 10∘10^\circ and odd harmonics of 8080, 5555, 3030, 12 %12\,\% (3rd to 9th).

Find: VrmsV_\text{rms}, IrmsI_\text{rms}, PP, SS, PF, both THDs and the displacement factor.

Solve: the program samples one 200 ms200\ \text{ms} window (1010 cycles), as a power analyser would, and computes everything from the samples:

python · try it yourself
import numpy as np

# Calculation only: 230 V, 50 Hz supply with 3 % 5th harmonic, feeding a rectifier-type load.
fs, f1 = 10240.0, 50.0
t = np.arange(int(0.2 * fs)) / fs                 # 200 ms = 10 cycles, as IEC 61000-4-7 windows
v = 230 * np.sqrt(2) * (np.sin(2 * np.pi * f1 * t) + 0.03 * np.sin(2 * np.pi * 5 * f1 * t + np.pi))
# current: fundamental lagging 10 degrees plus odd harmonics typical of a capacitor-input rectifier
amps = {1: 1.00, 3: 0.80, 5: 0.55, 7: 0.30, 9: 0.12}
i = sum(a * 2.0 * np.sin(2 * np.pi * h * f1 * t - np.radians(10) * h) for h, a in amps.items())

P = float(np.mean(v * i))
Vrms, Irms = float(np.sqrt(np.mean(v**2))), float(np.sqrt(np.mean(i**2)))
S = Vrms * Irms

def harmonics(x):
    X = np.fft.rfft(x) * 2 / len(x)               # peak amplitudes; bin k = k/0.2 s = 5k Hz
    k1 = int(round(f1 * len(x) / fs))
    return np.abs(X[k1::k1][:40])                 # fundamental, 2nd, ... 40th

Vh, Ih = harmonics(v), harmonics(i)
thd_v = np.sqrt(np.sum(Vh[1:]**2)) / Vh[0]
thd_i = np.sqrt(np.sum(Ih[1:]**2)) / Ih[0]
X1 = np.fft.rfft(i)[10] / np.fft.rfft(v)[10]       # bin 10 = 50 Hz
dpf = np.cos(np.angle(X1))
print(f"Vrms = {Vrms:.1f} V, Irms = {Irms:.3f} A, P = {P:.1f} W, S = {S:.1f} VA, PF = {P / S:.3f}")
print(f"THD(V) = {100 * thd_v:.2f} %, THD(I) = {100 * thd_i:.1f} %, displacement PF = {dpf:.3f}")
print(f"PF ~ DPF / sqrt(1 + THD_I^2) = {dpf / np.sqrt(1 + thd_i**2):.3f}")
Vrms = 230.1 V, Irms = 2.023 A, P = 316.9 W, S = 465.6 VA, PF = 0.681
THD(V) = 3.00 %, THD(I) = 102.3 %, displacement PF = 0.985
PF ~ DPF / sqrt(1 + THD_I^2) = 0.688

Check: THDI=0.82+0.552+0.32+0.122=1.023\text{THD}_I = \sqrt{0.8^2 + 0.55^2 + 0.3^2 + 0.12^2} = 1.023. The displacement factor is cos⁡10∘=0.985\cos 10^\circ = 0.985, but the PF is only 0.680.68: the harmonic currents add to IrmsI_\text{rms} and carry almost no power. The formula cos⁡φ1/1+THDI2\cos\varphi_1/\sqrt{1 + \text{THD}_I^2} gives 0.6880.688, close to the exact 0.6810.681; the difference is the small power exchanged at the 5th harmonic, where both voltage and current have components. Measured with an rms-only meter and "P=VIP = VI", this load would appear to take 466 W466\ \text{W} instead of 317 W317\ \text{W}.

Limits on harmonic distortion exist at two levels: equipment emissions (IEC 61000-3-2, edition 5 of 2018 with amendments 1:2020 and 2:2024, for equipment rated up to 16 A16\ \text{A} per phase) and the grid (IEEE 519-2022, a Standard since that edition, sets at the point of common coupling, for buses up to 1 kV1\ \text{kV}, a voltage THD of at most 8 %8\,\% and at most 5 %5\,\% for any individual harmonic; EN 50160:2022, amended by A1:2025, describes supply voltage characteristics in Europe). Check the current editions; these figures are as of 2026.

Guided lab: real and apparent power at low voltage

Hand calculation. A series RLC load with R=10 ΩR = 10\ \Omega, L=50 mHL = 50\ \text{mH}, C=300 μFC = 300\ \mu\text{F} at 50 Hz50\ \text{Hz}: XL=15.71 ΩX_L = 15.71\ \Omega, XC=10.61 ΩX_C = 10.61\ \Omega, ∣Z∣=102+5.102=11.22 Ω\lvert Z \rvert = \sqrt{10^2 + 5.10^2} = 11.22\ \Omega, φ=27.0∘\varphi = 27.0^\circ. At 10 Vrms10\ \text{V}_\text{rms}: I=0.891 AI = 0.891\ \text{A}, P=I2R=7.94 WP = I^2 R = 7.94\ \text{W}, S=8.91 VAS = 8.91\ \text{VA}, PF 0.8910.891 lagging.

Simulation. The phasor lab shows the same circuit, its power triangle and the waveforms; at its defaults it reads P=7.937 WP = 7.937\ \text{W} and pf 0.8910.891 lagging. Change CC to bring PF to 1 (resonance at C=202.6 μFC = 202.6\ \mu\text{F}).

ReImVRVLVCVIphi = 27.0 deg, I lags(I drawn on its own scale)-pk0+pk0T/2T3T/22Tv(t), peak 14.1 Vi(t), peak 1.26 Aimpedance trianglepower triangleRX|Z|PQSR = 10.0 OhmP = 7.94 WX = 5.10 OhmQ = 4.05 var|Z| = 11.2 OhmS = 8.91 VApf = cos phi = 0.891 lagging

What you would measure. Scale it down to a function generator: a 1 kHz1\ \text{kHz}, 5 Vpp5\ \text{V}_\text{pp} sine (from a 50 Ω50\ \Omega output) driving 100 Ω100\ \Omega in series with 10 mH10\ \text{mH}, with a 10 Ω10\ \Omega shunt in the return path. Put scope channel 1 across the load (generator side to shunt top, both referenced to the generator's ground) and channel 2 across the shunt; use math mode CH1×CH2/10 Ω\text{CH1} \times \text{CH2}/10\ \Omega and its mean. Expect XL=62.8 ΩX_L = 62.8\ \Omega, a phase of about 32∘32^\circ and a mean power within about 5 %5\,\% of Irms2×100 ΩI_\text{rms}^2 \times 100\ \Omega, while VrmsIrmsV_\text{rms} I_\text{rms} is about 18 %18\,\% higher. (The shunt's voltage is subtracted from CH1 or kept small; note the probe ground clips both go to the generator's ground.)

Hazards and safe setup. Generator levels only (milliwatts). Never connect scope probes or a home-built shunt to mains; mains power measurements use rated analysers and trained people.

Pitfalls

  • Computing power as VrmsIrmsV_\text{rms} I_\text{rms} for non-sinusoidal or phase-shifted loads.
  • Averaging over a non-integer number of cycles (power analysers synchronise to the fundamental for this reason).
  • Ignoring the phase error of current transducers at low power factor.
  • Quoting THD without saying the harmonic range and whether it is relative to the fundamental or the total.

Practice

  1. A load draws Irms=4.0 AI_\text{rms} = 4.0\ \text{A} at Vrms=120 VV_\text{rms} = 120\ \text{V} and P=300 WP = 300\ \text{W} (calculation only). Find SS and PF.
  2. A current has a 10 A10\ \text{A} fundamental and 3 A3\ \text{A}, 2 A2\ \text{A}, 1 A1\ \text{A} at the 3rd, 5th and 7th harmonics (rms). Find THD and IrmsI_\text{rms}.
Answer
  1. S=480 VAS = 480\ \text{VA}, PF =0.625= 0.625.
  2. THD =9+4+1/10=37.4 %= \sqrt{9 + 4 + 1}/10 = 37.4\,\%; Irms=100+14=10.68 AI_\text{rms} = \sqrt{100 + 14} = 10.68\ \text{A}.

Test yourself

Real power is

  1. VrmsIrmsV_\text{rms} I_\text{rms}
  2. the average of v(t)i(t)v(t) i(t) over whole periods
  3. VpkIpkV_\text{pk} I_\text{pk}
  4. always equal to apparent power

A load with a sinusoidal voltage, displacement factor 1 and current THD of 100 % has a PF of about

  1. 1.0
  2. 0.71
  3. 0.5
  4. 0

How many wattmeter elements does a three-phase three-wire system need?

  1. one
  2. two
  3. three
  4. four

Why is a wattmeter's phase error most serious at low power factor?

  1. it adds a constant offset
  2. the relative power error is about δtan⁡φ\delta \tan\varphi, which grows as PF falls
  3. it only matters at DC
  4. it cancels at low PF