Skip to content

AC vs DC๐Ÿ”—

Beginner

This article is in the Circuit Foundations topic. It builds on Voltage, Current, and Ohm's Law and Power. It uses the prefixes from Metric Prefixes and Units for frequency.

A Canadian wall outlet is called "120 V". But measure its voltage moment by moment and it never sits at 120 V for long: it swings up to about +170 V, falls through zero, swings down to about โˆ’170 V, and comes back, sixty times every second. It passes through zero volts 120 times a second. So where does the "120" come from?

Two ideas answer it:

  1. Alternating current reverses direction over and over. How often it repeats is its frequency, measured in hertz, and the smooth shape it follows is a sine wave, which is exactly what a spinning generator produces.
  2. RMS is the honest way to give an AC voltage one number. It's the steady DC voltage that would heat a resistor just as much. For a sine wave it's 0.707 times the peak, which is where 120 comes from.

DC: One Direction๐Ÿ”—

Everything on this site so far has been direct current (DC): current that flows one way, steadily, like the current from a battery. Current mentioned the alternative only in passing.

Direct current has a fixed polarity: the battery's + terminal is always +. That steadiness is exactly what electronics wants, which is why nearly every circuit, from an Arduino to a phone, runs on DC internally, even when it's plugged into the wall.


Idea One: Alternating Current Reverses๐Ÿ”—

Alternating current (AC) reverses direction at a regular rate. For half the time it flows one way around the circuit, and for the other half it flows the other way. The voltage that drives it rises to a peak, falls through zero, reverses to a negative peak, and returns.

Two graphs of voltage against time. DC from a 9 volt battery is a flat line at plus 9 volts. AC from a Canadian outlet is a sine wave swinging between plus and minus 170 volts, two cycles in 33 milliseconds, with a dashed line marking its 120 volt RMS value.

DC holds still; AC swings between two peaks and back, over and over.

Cycles, Period, and Frequency๐Ÿ”—

One complete swing, up, down, and back to the start, is a cycle. The time one cycle takes is its period, and the number of cycles per second is its frequency.

Definition: Hertz

Frequency is measured in hertz (Hz): one hertz is one cycle per second. The unit is named after Heinrich Hertz, the physicist who first demonstrated radio waves. Frequency and period are each other's reciprocal: period = 1 รท frequency.

Canadian mains power runs at 60 Hz: 60 cycles every second, so each cycle lasts 1 รท 60 โ‰ˆ 16.7 milliseconds. Each cycle crosses zero twice, once on the way down and once on the way back up, so the voltage passes through zero 120 times a second.

Where AC Comes From: The Generator๐Ÿ”—

AC isn't an arbitrary choice. It's what a generator naturally makes. Turn a loop of wire between the poles of a magnet and the loop's own movement through the magnetic field pushes the electrons in it along (the magnetism source from Voltage).

An elementary generator: a copper loop turns between a north and a south magnet pole, with slip rings and brushes carrying the current out. Beside it, one cycle of the sine wave it produces, marked at 0, 90, 180, 270 and 360 degrees of rotation: zero, maximum, zero, maximum reversed, and zero.

One turn of the loop is one cycle of the wave.

As the loop turns, the push changes smoothly:

  • At 0ยฐ the sides of the loop move along the field lines, cutting none of them: no voltage.
  • At 90ยฐ they cut straight across the field: maximum voltage.
  • At 180ยฐ they're moving along the lines again: zero.
  • At 270ยฐ they cut across again, but moving the opposite way: maximum voltage, reversed.

The voltage follows the sine of the loop's angle, which is why the wave is called a sine wave. Turn the loop 60 times a second and the result is 60 Hz.

Why 60 Hz, and Why AC at All?๐Ÿ”—

The first generators at Niagara Falls, built by Westinghouse in 1895, ran at 25 Hz, and some 25 Hz units there weren't retrofitted to 60 Hz until 2006. Westinghouse had already chosen 60 Hz in 1890, partly because lamps on low frequencies visibly flickered as their filaments cooled between peaks. North America settled on 60 Hz; most of Europe settled on 50 Hz.

The grid uses AC at all because of what Ohm's Law and Power showed: long lines waste far less power at high voltage. A transformer can step a voltage up for transmission and back down for the home efficiently, but a transformer only works with a current that keeps changing. That made AC the practical choice for the grid. (Modern power electronics can now convert DC to very high voltages too, and some of the longest lines, including some of Hydro-Quรฉbec's, carry high-voltage DC.)


Idea Two: RMS, One Honest Number for AC๐Ÿ”—

An AC voltage is never one number for long, yet appliances, outlets, and meters all quote one. The useful question is: what does this AC do, compared with DC?

Heat answers it. A resistor heats according to the square of the voltage across it (P = Vยฒ / R, from Ohm's Law and Power), and the square is positive whether the voltage is positive or negative. Average that heating over a whole cycle, and you can ask what steady DC voltage would produce the same heat. That equivalent is the root-mean-square (RMS) voltage: the square root of the mean (average) of the squared voltage.

Left: one cycle of a sine wave peaking at 170 volts, its square in amber (always positive), and a dashed line at 120 volts RMS, 0.707 times the peak. Right: two identical heaters, one on 120 volts DC and one on 120 volts RMS AC, glowing equally.

120 V RMS of AC heats exactly as much as 120 V of DC.

For a sine wave, the RMS value works out to the peak divided by โˆš2:

\[ V_{\text{RMS}} = \frac{V_{\text{peak}}}{\sqrt{2}} \approx 0.707 \times V_{\text{peak}} \qquad V_{\text{peak}} \approx 1.414 \times V_{\text{RMS}} \]

That's the opening puzzle solved. A Canadian outlet's "120 V" is its RMS value, the DC equivalent for heating, and its actual peak is 120 ร— 1.414 โ‰ˆ 170 V. From the positive peak to the negative peak is about 340 V. Unless a voltage is labelled otherwise, AC voltages are always quoted as RMS, and a multimeter on its AC setting displays RMS. Many meters calculate it by assuming the wave is a sine; a meter marked true-RMS measures it properly for any shape.

AC in a Resistor๐Ÿ”—

Ohm's Law still holds for AC through a resistor, moment by moment: at every instant, the current is the voltage at that instant divided by the resistance. So voltage and current rise, peak, and cross zero together. They're in phase.

Voltage and current through a 144 ohm bulb on a 120 volt outlet, two sine waves that peak together and cross zero together: voltage peaking at 170 volts and current at 1.18 amps.

In a resistor, current and voltage keep perfect step.

With RMS values, all the familiar formulas carry straight over. The 100 W bulb from Ohm's Law and Power, 144 ฮฉ hot, draws 120 V รท 144 ฮฉ โ‰ˆ 0.83 A RMS on a 120 V outlet, and 120 V ร— 0.83 A = 100 W, exactly its rating. (Components that store energy, like coils and capacitors, can push current and voltage out of step; that's a later article's story.)

Schematic: an AC voltage source, drawn as a circle containing a tilde, labelled 120 volts 60 hertz, connected in a loop with a 100 watt lamp drawn as a circle with a loop inside.

The AC source symbol is a circle with a tilde (~) inside, the sine wave in miniature.

Other Waveforms๐Ÿ”—

A sine wave isn't the only shape a changing voltage can take, and each shape has its own relationship between peak and RMS.

Three waveforms with the same peak: a sine wave, used by mains power and radio, with an RMS of 0.707 times the peak; a square wave, used in digital circuits, whose RMS equals its peak; and a triangle wave, with an RMS of 0.577 times the peak.

Same peak, different shapes, different RMS values.
  • Sine waves come from rotating generators and from radio transmitters. Mains power is a sine wave.
  • Square waves jump between two levels. An Arduino pin switching on and off (Digital Pins) makes one. Since a square wave sits at its peak (positive or negative) the whole time, its RMS equals its peak.
  • Triangle waves ramp steadily up and down, with an RMS of about 0.577 times the peak.

Frequencies You'll Meet๐Ÿ”—

Alternating current isn't only mains power. Any voltage that reverses is AC, and the same ideas of frequency and cycles cover everything from the grid to radio.

A log scale of frequency from 10 hertz to 10 gigahertz: Niagara's original 25 hertz power, Canadian mains at 60 hertz, a 1 kilohertz tone, AM radio near 1 megahertz, the 40 metre amateur band at 7 megahertz, the 2 metre band at 146 megahertz, and Wi-Fi at 2.4 gigahertz.

From the grid to Wi-Fi, a span of a hundred million times.

A radio signal is simply alternating current at a very high frequency: millions of cycles per second in the amateur bands, billions in Wi-Fi.


Safety: Mains AC Is Lethal๐Ÿ”—

The thresholds from Current were measured for exactly this kind of current, 60 Hz AC, and the reversals make it worse: above about 16 mA, 60 Hz current clamps the muscles of the hand shut so the victim can't let go.

Respect the Peak

A 120 V outlet peaks at about 170 V, and a 240 V circuit at about 340 V. Insulation, capacitors, and other parts connected to mains must be rated for the peak, not the RMS. Never work on mains-powered circuits; every project on this site runs from batteries or USB.


Practice๐Ÿ”—

1. Peak From RMS

A European outlet supplies 230 V RMS. What's its peak voltage?

Solution

\( 230 \times 1.414 \approx 325\ \text{V} \).

2. RMS From Peak

An AC signal on an oscilloscope peaks at 10 V. What's its RMS voltage, if it's a sine wave? If it's a square wave?

Solution

Sine: \( 10 \times 0.707 \approx 7.07\ \text{V} \) RMS. Square: 10 V RMS, because a square wave spends all its time at its peak level.

3. Period

What's the period of 60 Hz mains? Of 50 Hz mains?

Solution

\( 1 / 60 \approx 16.7\ \text{ms} \) and \( 1 / 50 = 20\ \text{ms} \).

4. A Radio Frequency

A radio operates on 7,040 kHz. How many cycles per second is that, and what's its period?

Solution

7,040 kHz is 7,040,000 cycles per second (7.04 MHz). Its period is \( 1 / 7{,}040{,}000 \approx 142\ \text{ns} \), about 142 billionths of a second.

5. Household Waveform

What shape is the voltage waveform from a household outlet, and what produces that shape?

Solution

A sine wave, produced by the rotating generators at the power station: a loop turning steadily in a magnetic field makes a voltage that follows the sine of its angle.

6. A 60 W Bulb

A 60 W bulb is used on a 120 V RMS outlet. What RMS current does it draw, and what's the peak current?

Solution

\( I_{\text{RMS}} = 60 / 120 = 0.5\ \text{A} \). Peak: \( 0.5 \times 1.414 \approx 0.71\ \text{A} \).


Quick Recap๐Ÿ”—

  • DC and AC


    DC flows one way. AC reverses direction over and over.

  • Frequency


    Cycles per second, in hertz. Canadian mains: 60 Hz, a period of 16.7 ms.

  • The generator


    A loop turning in a magnetic field makes a sine wave: one turn, one cycle.

  • RMS


    The DC voltage that heats a resistor just as much. Sine: RMS = 0.707 ร— peak.

  • 120 V means 170 V peak


    AC voltages are quoted as RMS unless stated otherwise. Parts on mains must handle the peak.

  • In phase in a resistor


    Voltage and current peak and cross zero together; Ohm's Law works moment by moment.


What's Next๐Ÿ”—

The generator in this article worked because a moving magnet pushes electrons along a wire. Magnetism and Electromagnetism explains why, and how the same idea builds electromagnets and transformers.


Further Reading๐Ÿ”—

History and Reference

Deep Dives

Related Articles