The mains supply is alternating current (AC): the voltage swings positive, then negative, 50 times a second. Most of what's different about AC circuits, from why 230 V mains can give a 325 V shock peak to why a capacitor passes AC but blocks DC, comes from that one fact. This guide covers the basics you need for both electrical and electronics work.
The sine wave
A generator's coil turning in a magnetic field produces a voltage that follows a sine wave. The frequency (f) is the number of complete cycles per second, in hertz (Hz). The UK and Europe use 50 Hz; North America uses 60 Hz. The period (T) is the time for one cycle: T = 1 ÷ f, so 1 ÷ 50 = 20 ms.
Peak, RMS and average
A sine wave has several "sizes", and it matters which one you mean:
| Value | How it's worked out | UK mains |
|---|---|---|
| RMS | The value that gives the same heating as DC | 230 V |
| Peak | RMS × √2 | 325.3 V |
| Peak-to-peak | 2 × peak | 650.5 V |
| Average (of the rectified wave) | 0.637 × peak | about 207 V |
RMS (root mean square) is the useful one: 230 V AC RMS heats a kettle element exactly as much as 230 V DC would. When anyone quotes an AC voltage or current without saying otherwise, they mean RMS. But insulation, capacitors and semiconductors have to withstand the peak, which is why a capacitor across 230 V mains needs a rating well above 325 V, and why a rectified and smoothed 230 V supply gives about 325 V DC.
True RMS meters
Cheaper meters measure the average of the rectified wave and multiply by 1.11 (the ratio of RMS to average for a pure sine wave: 230 ÷ 207 ≈ 1.11). That's right for a clean sine wave, but wrong for the distorted current drawn by LED drivers, computers and variable speed drives, where an average-responding meter can read well low. A true RMS meter measures the real RMS value whatever the waveform. See how to use a multimeter.
Phase
Two sine waves of the same frequency can be shifted in time. The shift is the phase angle, measured in degrees: a full cycle is 360°, so at 50 Hz, 1 ms is 18°. In a three-phase supply, the three line voltages are 120° apart, which is where 400 V between lines comes from: 230 × √3 ≈ 400 V. See three-phase power explained.
Resistance, reactance and impedance
- A resistor opposes current the same way at any frequency, and its current is in phase with the voltage.
- An inductor opposes changes in current. Its opposition, the inductive reactance XL = 2πfL, rises with frequency, and its current lags the voltage by 90°.
- A capacitor opposes changes in voltage. Its capacitive reactance XC = 1 ÷ (2πfC) falls as frequency rises, and its current leads the voltage by 90°. At DC (f = 0), it blocks completely once charged.
Reactance is measured in ohms like resistance, but it doesn't turn energy into heat: the energy goes into a magnetic or electric field and comes back each cycle. The total opposition of a circuit with resistance and reactance is the impedance, Z = √(R² + X²) for a series circuit, also in ohms. The reactance calculator works these out.
When current and voltage aren't in phase, some current flows back and forth without doing useful work. That's what power factor is about.
Going deeper
Where RMS comes from
Power in a resistor is V² ÷ R. To find the DC voltage that gives the same average power, square the AC voltage at every instant, take the mean over a cycle, then the square root: root of the mean of the squares. For a sine wave, the mean of sin² is ½, so RMS = peak ÷ √2.
Phasors
Engineers draw AC quantities as arrows (phasors) whose length is the RMS value and whose angle is the phase. Adding voltages in an AC circuit then becomes adding arrows, which is how the 400 V between two 230 V phases 120° apart can be found with a little trigonometry.
Harmonics
Any repeating waveform can be built from a sine wave at the fundamental frequency plus sine waves at whole-number multiples of it, called harmonics. Electronic loads draw currents rich in harmonics, which is why neutral currents in three-phase systems feeding many computers can be higher than expected.
Sources
The main references behind this guide. Numbers we worked out ourselves, such as the code outputs, come from running the code.