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.

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.

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):
- We square the wave.
- We take the mean.
- 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
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.

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.
- 0 ms. The voltage is zero. For an instant, nothing is pushed.
- 5 ms. The voltage peaks at about +325 V, and the kettle takes about 6,000 W for that instant.
- 10 ms. Back to zero, and the kettle takes nothing.
- 15 ms. The voltage peaks at about −325 V. The current runs the other way, and the kettle takes 6,000 W again.
- 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:
- Its rectifier flips each negative half-wave so that both halves push the same way.
- A capacitor inside fills up near each peak and holds the voltage up in between.
- 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:
- Why 50 Hz? explains the historical accident behind Malaysia's grid frequency.
- The War of the Currents tells the Edison and Tesla story behind AC's win.
- How Electrical Energy Flows asks where the energy really travels, if the electrons only rock back and forth.
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
DC (direct current) always pushes in the same direction, like the current from a battery, whose plus and minus terminals never swap. AC (alternating current) keeps reversing direction. Malaysia's grid runs at 50 Hz, so each cycle lasts 20 milliseconds and the current reverses 100 times a second. Under AC the electrons only rock back and forth on the spot. Energy still reaches every load, because the push travels through the wire almost instantly.
Because the heat lost in a cable equals the current squared times the resistance, so power is best sent at high voltage and low current. Raising the voltage four times cuts the current to a quarter and the loss to about one sixteenth. That needs a transformer to raise and lower the voltage, and a transformer only works on a changing current. In the 1880s only AC could be stepped up and down like this at a reasonable cost, so the grid was built on AC.
TNB (Tenaga Nasional Berhad) supplies low voltage at 230 V single-phase and 400 V three-phase, at 50 Hz. The 230 V figure is the RMS (root mean square) value: the steady DC voltage that would heat a kettle element by the same amount. The AC wave itself peaks at about 325 V, which is 230 times the square root of 2. Transmission lines run much higher, at 132 kV, 275 kV and 500 kV, and substations step the voltage down in stages.
Chips, LEDs and batteries all need DC. A chip needs a steady voltage to tell a 1 from a 0. A battery only charges when current is pushed into it one way. So any device with a chip or a battery contains a rectifier that turns the grid's AC into DC. Your phone or laptop charger does this, then lowers the voltage. Each conversion loses a little energy as heat, which is why a charger feels warm.
Yes. The common AC induction motor has no brushes. Three-phase AC makes a rotating magnetic field that drags the rotor round. So the motor is rugged and cheap, and its speed is tied to the supply frequency. A brushed DC motor is easy to speed-control by changing its voltage, but its carbon brushes wear out. Variable speed drives let AC motors change speed, and brushless DC motors are switched electronically. Part 11 of the course, How Electric Motors Work, covers motors.
High-voltage DC (HVDC) is usually the better choice for overhead lines longer than about 600 km. It also suits submarine cables longer than about 50 to 80 km. A long AC cable spends part of its capacity charging and discharging itself. A DC link can also join two grids that are not running in step. The 720 km North Sea Link between Norway and the UK is one example. Both ends still convert back to AC.
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.


