Blog

AC vs DC

A spinning generator makes AC on its own. Here is what AC vs DC really means: electrons rocking back and forth 100 times a second, why a 230 V socket peaks at 325 V, and why line losses that grow with the current squared made the grid choose AC.

Tan Kok XinTan Kok XinElectricity Fundamentals
Sine wave passing through a transformer symbol into a flat DC line, illustrating AC versus DC

Part 8 of 24 in Cobler's Electricity Fundamentals course. New here? Start with the course map.

A magnet spinning next to a coil, like the one in Part 7, makes a voltage that reverses on its own, once per turn. So let's follow that wave to the socket behind your desk, because that's where AC vs DC starts to matter.

Every 20 milliseconds, the voltage there climbs to about 325 volts and falls back through zero. Then it reaches 325 volts the other way and comes back to zero. It does that 50 times a second, all day.

But your phone, charging from that same socket, never sees a single reversal, and that difference shapes the whole way electricity gets to a building.

What exactly is AC, then, and why does the grid keep it instead of smoothing it into the steady push of a battery?

AC vs DC

Let's start with a battery. Its plus and minus terminals never swap. So the free electrons in the wire, the electron sea from Part 1, drift steadily one way around the loop. A push that always points the same way is what we call direct current (DC).

Now take Part 7's generator. Its push builds up in one direction, fades to zero, builds up in the other direction, and fades again. A push that keeps reversing is what we call alternating current (AC).

And under AC, the electrons basically go nowhere. They just rock back and forth on the spot.

In Part 1 we put their drift speed at around 0.1 mm per second. So if we turn them around every 10 milliseconds, each one swings less than a thousandth of a millimetre.

At this point you might be wondering how any energy arrives at all, if no electron ever gets further than that tiny swing.

Well, it works the same way as on DC. The push runs through the whole electron sea almost instantly, like the light switch in Part 1, and on AC that push surges and reverses.

A hand saw is a good way to picture it. The blade only goes back and forth and never leaves your hand, and yet it cuts right through the wood. The motion does the work, even though the blade never travels anywhere.

Frequency

Malaysia's grid alternates at 50 hertz (Hz), and one hertz is one full cycle per second. That means one cycle lasts 1 ÷ 50 = 0.02 seconds, or 20 milliseconds (ms).

Each cycle has two reversals in it, so the current changes direction 100 times a second. And that 50 comes straight from Part 7, where a two-pole generator turning at 3,000 revolutions per minute made 50 cycles a second.

Graph of mains AC voltage swinging between plus 325 and minus 325 volts every 20 milliseconds, with a steady flat DC line for comparison

AC mains voltage rises and falls in a smooth wave, completing one cycle every 20 ms, while DC stays at one steady level.

So if the current keeps reversing, why does a kettle still get hot? Well, back in Part 3 we saw that the heat in a resistance is \(P = I^2 R\).

Squaring gets rid of the direction, so 10 A forwards and 10 A backwards give exactly the same heat. The element heats up on both halves of the cycle.

The heat does still arrive in pulses, though. It's zero at each moment the voltage crosses zero and highest at each peak, so we get 100 pulses a second.

A kettle element is too heavy to cool down between pulses, so nobody notices. But keep that pulse in mind, because for big machines it turns into a real problem in Part 10.

Peak and RMS voltage

Now here's something that confused me at first. If the socket is 230 V, why does the wave reach 325 V?

Well, the wave itself peaks at about 325 V in each direction. The 230 V is what we call its RMS value (root mean square). That's the steady DC voltage that would heat the same element by the same amount.

So where does the gap come from? We know from Part 3 that heating goes with the voltage squared, \(P = V^2 / R\).

If we square a sine wave and average it over one cycle, we get exactly half of its peak squared. The effective value is the square root of that average.

The name is actually the recipe (OpenStax University Physics):

  1. We square the wave.
  2. We take the mean.
  3. Then we take the root.

For a smooth mains wave it works out like this:

$$V_{\text{RMS}} = \frac{V_{\text{peak}}}{\sqrt{2}} \qquad\text{so}\qquad V_{\text{peak}} = \sqrt{2} \times 230 \approx 325\ \text{V}$$

Let's work it through with a kettle. A 3 kW kettle on 230 V has an element of about 230² ÷ 3,000 ≈ 17.6 ohms.

At the 325 V peak it takes 325² ÷ 17.6 ≈ 6,000 W, and at each zero crossing it takes nothing. Averaged over the cycle, it takes 3,000 W, which is exactly what the label says.

The current follows the same shape, so 13 A RMS means peaks of about 18.4 A.

Every "230 V" and "13 A" you see on a label or a meter is an RMS value.

TNB (Tenaga Nasional Berhad) supplies low voltage at 230 V single-phase and 400 V three-phase (National Grid, Malaysia). Both of those figures are RMS too. Where the 400 V comes from, we'll get to in Part 10.

Try it

Loading the interactive

Line losses

So why did the grid settle on AC? It came down to two things.

The heat lost in a cable is \(I^2 R\), so sending power at high voltage and low current cuts the loss a lot. And back in the 1880s, only AC could change its voltage cheaply.

Let's start with the line itself. In Part 3 we saw that resistance grows with length, and a line between towns is very long.

So how do we get power across a country without the line turning it all into heat? Well, what if we change the mix of volts and amps?

From Part 5 we know that power is volts times amps (\(P = VI\)). So the same power can travel as high voltage with low current, or as low voltage with high current. And the heat in the cable only depends on the current:

$$P_{\text{loss}} = I^2 R = \left(\frac{P}{V}\right)^2 R$$

If we double the voltage, the current halves and the loss falls to a quarter. Raise the voltage four times and the loss falls to a sixteenth.

Let's put some numbers on it. Say a power company sends 10 MW (10,000 kW) along a line whose wires total 5 ohms, there and back. These figures are illustrative.

Worth knowing: we're treating the line as a simple two-wire circuit. Real lines are three-phase, which changes the arithmetic a little but keeps the pattern.

Sending voltage

Current (P ÷ V)

Heat lost (I² × R)

Share of the 10 MW

11 kV

about 909 A

about 4,130 kW

about 41%

33 kV

about 303 A

about 459 kW

about 4.6%

132 kV

about 76 A

about 29 kW

about 0.29%

You can think of the top row as a delivery van that loses about four of every ten parcels on the way. At 132 kV, it loses about three in every thousand.

Bar comparison of 10 megawatts sent through a 5 ohm line, losing about 459 kilowatts at 33 kilovolts but only about 29 kilowatts at 132 kilovolts

The same power sent at four times the voltage needs a quarter of the current and loses about one sixteenth as much energy as heat.

Now let's try the same 10 MW at 230 V. The current would be about 43,500 A, and Ohm's law from Part 3 says the line itself would drop 43,500 × 5 ≈ 217,000 V.

That's nearly a thousand times the 230 V we started with, so almost nothing would arrive. That's why Malaysia's main transmission lines run at 275 kV and 500 kV.

Substations then step the voltage down in stages before it gets to a building. Part 13 follows that ladder.

All of this needs a machine that can raise and lower voltage. That machine is the transformer, and it works by Part 7's rule that only a changing magnetic field makes a voltage in a coil.

AC is changing all the time. DC, once it's switched on, makes a steady field that induces nothing. So for most of a century, changing voltage cheaply meant using AC, and that's how AC won.

DC has come back for one job on the grid. With the power electronics we'll build in Part 15, very long lines and undersea cables can run as HVDC (high-voltage direct current).

The North Sea Link between Norway and the UK carries 1,400 MW through 720 km of subsea cable (North Sea Link). Both ends still convert back to AC.

DC in electronics

So where does a building still need DC? Inside nearly every electronic device. A chip needs a steady voltage so it can tell a 1 from a 0.

And a battery only charges when current is pushed into it one way. Even an LED (light-emitting diode) only lights up with current going in one direction.

So the building's AC gets turned into DC at the very last step, inside the equipment, by a part we call a rectifier. You can find this all over a building:

  • A laptop charger turns 230 V AC into about 20 V DC, and an LED driver does the same job for its LEDs.
  • A BMS (building management system) controller often runs from a small 24 V DC power supply in its panel.
  • A UPS (uninterruptible power supply) keeps its battery on DC and turns it back into AC when the mains fails (When the Mains Fails).
  • Rooftop solar panels make DC, and an inverter turns it into AC for the switchboard (How Solar Panels Make Electricity).

The rule of thumb, then, is AC for distribution and DC for electronics and storage. Part 15 builds the switches that do these conversions, and Part 17 explains why every battery is DC.

One socket, one 20 ms cycle

Let's take one desk on level 14 of the fictional 20-storey office tower we visit throughout this course. We'll follow the socket behind it through a single cycle. There's a 3 kW kettle running in the pantry on the same supply.

  1. 0 ms. The voltage is zero. For an instant, nothing is pushed.
  2. 5 ms. The voltage peaks at about +325 V, and the kettle takes about 6,000 W for that instant.
  3. 10 ms. Back to zero, and the kettle takes nothing.
  4. 15 ms. The voltage peaks at about −325 V. The current runs the other way, and the kettle takes 6,000 W again.
  5. 20 ms. Zero again, and the next cycle starts.

The laptop on the desk doesn't see any of this, because its charger turns the wave into steady DC in three steps:

  1. Its rectifier flips each negative half-wave so that both halves push the same way.
  2. A capacitor inside fills up near each peak and holds the voltage up in between.
  3. Then the rest of the charger lowers that steady DC to about 20 V.

The LED panels overhead do the same thing through their drivers. That's why a good fitting doesn't flicker, even though its supply passes through zero 100 times a second.

And the voltage behind that socket has come a long way. It crossed the country at 275 kV or more and got stepped down several times before it reached the tower at 11 kV. If it had stayed at 230 V the whole way, it would never have arrived.

Changing the voltage

Everything in this part rests on one promise. We raise the voltage for the journey and lower it again for the user, but so far that's only a promise.

We still need a machine that takes AC in at one voltage and gives it out at another. And it should have almost no loss and no moving parts.

Well, we actually have both halves of it already. In Part 6 we saw that current in a coil makes a magnetic field. In Part 7 we saw that a changing field through a coil makes a voltage.

So what if we wind two coils on one iron core, feed AC into one of them, and see what shows up on the other? That machine is the transformer, and we build it in Part 9.

Go deeper (optional)

You don't need these for Part 9:


This is Part 8 of 24 in Cobler's Electricity Fundamentals course. Previous: Generators and Induction. Next: Transformers.

Cobler's CobiNeural turns a building's electricity, water and indoor-air readings into live numbers a facility team can act on. To see your own site that way, request a demo.

FAQ

Frequently asked questions

Ask us about this topic

Something in this article you want to dig into — or a situation in your own building it doesn't quite cover? Send us your question. We don't run public comments; the team replies to you directly by email.

0/500

Keep reading