Skip to content

AC and DC Explained: Alternating and Direct Current, Frequency, Period and the Mains

Learn what makes a current direct or alternating, how to read a.c. and d.c. traces on an oscilloscope, how to find frequency and period with T = 1/f, the mains supply in different countries, why the National Grid uses a.c., and how alternators and dynamos differ.

Published · 8 min read

On this page

A direct current (d.c.) never changes direction. It comes from a direct p.d., which keeps the same sign, like the p.d. of a cell, a battery or a solar cell. An alternating current (a.c.) reverses again and again. It comes from an alternating p.d., which swings from positive to negative and back, over and over. The mains supply in homes and schools is a.c.

The number of complete swings each second is the frequency, f, in hertz (Hz). The time for one complete swing is the period, T, in seconds:

T=1fT = \frac{1}{f}

In the UK, the mains is a.c. at about 230 V and 50 Hz, so each cycle lasts 1/50 of a second, or 20 ms.

What is the difference between direct and alternating current?

In a d.c. circuit, charge flows round one way, from the + terminal of the supply to the − terminal (as conventional current). Swap the cell round and the current flows the other way, but it still never reverses on its own.

In an a.c. circuit, the supply's p.d. changes direction many times a second. Each time it does, the current reverses too. The charges do not travel round the circuit. They shuffle back and forth, a little way each time, while energy still flows from the supply to the appliance.

Two points catch students out:

  • "Direct" means one direction, not steady. A current that rises and falls but never reverses is still d.c. The bumpy output of a dynamo is an example.
  • Many devices change one into the other. A phone charger turns the a.c. mains into the low-voltage d.c. that the battery needs.

What do a.c. and d.c. look like on an oscilloscope?

An oscilloscope draws a graph of p.d. against time. The trace moves across the screen at a speed set by the time-base, in seconds (or milliseconds) per division. The Y-gain sets how many volts each vertical division stands for.

  • d.c. from a battery: a flat line, above the centre line. Turn the battery round and the line drops below it.
  • a.c.: a smooth wave, above the centre line for half of each cycle and below it for the other half.
  • d.c. from a dynamo: a string of bumps that never dip below the centre line.

Mains labelled 230 V actually peaks at about 325 V. The 230 V figure is the steady d.c. p.d. that would heat a kettle element at the same rate. It is called the r.m.s. value, which goes beyond GCSE and IGCSE.

Worked example 1: reading a trace

A student in Kolkata connects a low-voltage a.c. supply to an oscilloscope. The time-base is set to 5 ms per division and the Y-gain to 2 V per division. One full cycle of the wave spans 4.0 divisions across the screen, and each peak is 3.0 divisions above the centre line. Find the period, the frequency and the peak p.d.

Period: T=4.0×5=20T = 4.0 \times 5 = 20 ms =0.020= 0.020 s

Frequency: f=1T=10.020=50f = \dfrac{1}{T} = \dfrac{1}{0.020} = 50 Hz

Peak p.d.: 3.0×2=6.03.0 \times 2 = 6.0 V

Answer: T = 0.020 s, f = 50 Hz and the peak p.d. is 6.0 V. The supply runs at the same frequency as the mains that feeds it.

How do you work out the frequency and the period?

Frequency and period are each other's reciprocals: T=1fT = \dfrac{1}{f} and f=1Tf = \dfrac{1}{T}. Before you use them, put the period in seconds, not milliseconds.

A current reverses twice in every cycle: once on the way down through zero, and once on the way back up. So the number of reversals each second is twice the frequency.

Worked example 2: mains in two countries

Find the period of the mains (a) in the UK, at 50 Hz, and (b) in the USA, at 60 Hz.

(a) T=150=0.020T = \dfrac{1}{50} = 0.020 s, which is 20 ms

(b) T=160=0.0167T = \dfrac{1}{60} = 0.0167 s, which is about 16.7 ms

Answer: each American cycle is shorter, because more of them fit into each second.

What is the mains supply in other countries?

These are nominal values: the figures a supply is designed for. The real p.d. at a socket varies a little during the day.

CountryNominal p.d.FrequencyPeriod
India230 V50 Hz20 ms
Japan100 V50 Hz in the east, 60 Hz in the west20 ms or 16.7 ms
Pakistanabout 220–230 V50 Hz20 ms
United Kingdom230 V50 Hz20 ms
USA and Canada120 V60 Hz16.7 ms

Sources differ for Pakistan, and older textbooks often use 220 V. For calculations, always take the figure given in the question.

Why does the National Grid use a.c.?

The grid sends electricity across a country at a very high p.d., because that keeps the current in the cables small and wastes less energy heating them. Near power stations, transformers step the p.d. up, and near homes they step it back down.

A transformer only works with a changing current. An alternating current in its primary coil makes a magnetic field that keeps changing, and this changing field induces a p.d. across the secondary coil. A steady direct current makes a steady field, which induces nothing, apart from a short pulse whenever the current is switched on or off. So a.c. is the natural choice for a grid built on transformers.

Generators also produce a.c. naturally, as you will see below. Some very long links, such as the undersea cables between Britain and France, do carry high-voltage d.c., but converter stations change it to and from a.c. at each end.

How do generators make a.c. or d.c.?

When a coil turns in a magnetic field, each side moves up through the field and then down again. So the induced p.d. reverses every half turn.

  • An alternator joins the coil to the circuit through slip rings. The output reverses every half turn, so it is a.c. One turn of the coil gives one cycle, so the frequency equals the number of turns per second.
  • A dynamo uses a split-ring commutator, which swaps the connections every half turn, just as the p.d. would reverse. The output never changes direction, so it is d.c.

Worked example 3: a hand-cranked alternator

A student turns the handle of a small alternator so that its coil makes 720 turns every minute. Find the frequency and the period of its output.

Turns per second: 720÷60=12720 \div 60 = 12

Frequency: one cycle per turn, so f = 12 Hz

Period: T=112=0.083T = \dfrac{1}{12} = 0.083 s

Answer: f = 12 Hz and T = 0.083 s. Turning faster raises the frequency, and it raises the peak p.d. too.

See both kinds of output in the electromagnetic induction simulation. Choose Generator: with slip rings, the Kind of output card reads a.c. at the turning speed in hertz. Press Faster four times to reach 2 turns per second, and the card reads a.c., 2 Hz. Now change the rings button to Split ring: the graph's humps stay on one side, and the card reads d.c., 4 pulses a second. In the transformers and National Grid simulation, press Use d.c. and the lamp goes out, because a steady field induces nothing. For circuits that run on cells and batteries, try the circuit builder simulation.

Common mistakes

  • Thinking d.c. must be steady. It only has to keep one direction.
  • Leaving T in milliseconds. Change 20 ms to 0.020 s before you work out f=1/Tf = 1/T.
  • Counting divisions to the wrong point. One cycle runs from a peak to the next peak, not from a peak to the next trough.
  • Saying 230 V is the peak. The mains peaks at about 325 V.
  • Saying transformers work on d.c. Without a changing field, no p.d. is induced in the secondary.
  • Mixing up the rings. Slip rings give a.c. A split ring gives d.c.

Key points

  • Direct current flows one way only. Alternating current keeps reversing.
  • Cells and batteries give d.c. The mains is a.c.: about 230 V and 50 Hz in the UK.
  • Frequency is the number of cycles each second. Period is the time for one cycle, and T=1/fT = 1/f.
  • On an oscilloscope, d.c. from a battery is a flat line and a.c. is a wave that crosses the centre line.
  • The National Grid uses a.c. because transformers need a changing current.
  • An alternator (slip rings) gives a.c. A dynamo (split ring) gives d.c.