Power, Energy and Power Quality Measurement
"The power supply draws at , so it takes ." It does not: a power analyser shows with a power factor of . 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 . 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
For sinusoids (Complex Power and Power Factor). With a sinusoidal voltage and a distorted current, only the fundamental current carries real power, and
where 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
- The electrodynamometer wattmeter (Analog Meters) had a fixed current coil and a moving voltage coil; its torque followed 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 -cycle windows at and -cycle windows at , about ), PF and efficiency between channels. Accuracy is quoted per channel and for power, e.g. at , 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: elements for wires), a four-wire system three.
- An electricity (energy) meter integrates power over time: an electronic metering IC samples and (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 (between its voltage and current channels) causes a power error of about relative: () is at PF but at PF . 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 , supply with 5th-harmonic voltage, and a rectifier-type load current with a -peak fundamental lagging and odd harmonics of , , , (3rd to 9th).
Find: , , , , PF, both THDs and the displacement factor.
Solve: the program samples one window ( cycles), as a power analyser would, and computes everything from the samples:
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: . The displacement factor is , but the PF is only : the harmonic currents add to and carry almost no power. The formula gives , close to the exact ; 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 "", this load would appear to take instead of .
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 per phase) and the grid (IEEE 519-2022, a Standard since that edition, sets at the point of common coupling, for buses up to , a voltage THD of at most and at most 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 , , at : , , , . At : , , , PF lagging.
Simulation. The phasor lab shows the same circuit, its power triangle and the waveforms; at its defaults it reads and pf lagging. Change to bring PF to 1 (resonance at ).
What you would measure. Scale it down to a function generator: a , sine (from a output) driving in series with , with a 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 and its mean. Expect , a phase of about and a mean power within about of , while is about 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 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
- A load draws at and (calculation only). Find and PF.
- A current has a fundamental and , , at the 3rd, 5th and 7th harmonics (rms). Find THD and .
Answer
- , PF .
- THD ; .
Test yourself
Real power is
- the average of over whole periods
- 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.0
- 0.71
- 0.5
- 0
How many wattmeter elements does a three-phase three-wire system need?
- one
- two
- three
- four
Why is a wattmeter's phase error most serious at low power factor?
- it adds a constant offset
- the relative power error is about , which grows as PF falls
- it only matters at DC
- it cancels at low PF