Pip
How it works

How Do Traffic Lights Know When to Change? [Printable]

Pip beside a traffic light with a loop of wire under the road

Key takeaways

  • A controller box at the roadside runs the lights using a timer and sensors.
  • UK lights go red, red and amber, green, amber, then red again.
  • A loop of wire under the road senses the metal in a car.
  • The pedestrian button tells the controller that someone wants to cross.
  • Stop, look, listen and hold a grown-up's hand every time you cross.

Traffic lights change because a box at the roadside, called a controller, runs a timed plan and can change it when sensors tell it that a car or person is waiting. This guide shows the UK colour order, how loops under the road sense cars, how to cross safely, and a paper model junction your child can build and test, with a printable kit.

How do traffic lights know when to change?

Pip beside a traffic light. A car waits at the red light. A loop of wire buried in the road under the car senses its metal and sends a message along a cable to the controller box, which holds the timer and the rules
A controller box beside the road runs the lights. It has a timer, and it gets messages from a loop of wire buried under the road.

A box at the roadside, called the controller, decides when the lights change. It follows a timed plan, and sensors can nudge that plan when a car or a person is waiting. Most junctions use both ideas together.

Think of the controller as a small brain in a grey cabinet. It has a clock that counts seconds and a rule book that says which road gets green next. The sensors are its eyes.

Every junction is designed and checked by trained traffic engineers, and no two work in exactly the same way. Our paper model later in this page is a simple example, not a copy of a real controller. You can also try the idea on screen in the Traffic Lights game.

What order do UK traffic lights change in?

UK traffic lights change in this order: red, red and amber together, green, amber, then red again. The same order repeats all day.

The UK traffic light order in five steps: red means stop, red and amber together means get ready, green means go, amber means stop unless it is unsafe to, then red again. A car sits under each light
The UK order: red, red and amber, green, amber, red. The car in step 3 is the only one allowed to go.
  • Red: stop and wait behind the white line.
  • Red and amber: get ready, but don't move yet.
  • Green: go, but only if the road ahead is clear.
  • Amber: stop, unless you're so close to the line that stopping would be unsafe.

Amber usually lasts about 3 seconds and red and amber about 2 seconds. That short gap gives the junction time to empty before the next road gets its green. The rules for drivers are in The Highway Code (rules 175 to 178).

How does the timer in a traffic light work?

The timer is a count inside the controller that tells it how long each light stays on. At a simple junction it runs the same plan again and again, for example 30 seconds of green for the main road, a short amber and red, then 15 seconds of green for the side road.

Two timelines compared. With a fixed timer the side road gets a green even when it is empty. With a sensor the controller skips the empty side road and the main road stays green longer. The times are examples only
A fixed timer gives every road its turn, even an empty one. A sensor lets the controller skip an empty road. The times are examples only.

A fixed plan is fine where cars arrive on every road all day. It wastes time when one road is empty, because cars on the busy road sit at red for nobody. Frankly, that's the reason most modern junctions add sensors.

Neighbouring junctions can also be linked so a stream of cars meets several greens in a row. Engineers call that a green wave.

How do sensors under the road tell the lights a car is waiting?

Many junctions use an inductive loop: a loop of wire buried just under the road surface that notices the metal in a car. A small electric current runs round the wire, and that makes an invisible magnetic field.

Cutaway of a road with a loop of wire under it. On the left no car is over the loop and the controller box stays quiet. On the right a car sits over the loop, the invisible magnetic field around the wire changes, and the box signals that a car is waiting
Left: an empty loop. Right: a car over the loop changes the magnetic field, and the box tells the controller.

When a metal car stops over the loop, the field changes. A small electronic unit by the road feels the change and sends a message to the controller: a vehicle is waiting. The controller can then add that road to the plan.

Loops can miss small things. A bicycle has much less metal than a car, so some loops don't pick one up. Some can be adjusted to spot bikes and motorbikes, and some junctions use other sensors instead, such as cameras fixed on the signals.

Next time you're on the pavement, look for thin square or rectangular lines cut into the tarmac near a stop line. They're often the loops. Look from the pavement only, and never step into the road to check.

What does the pedestrian button do?

The pedestrian button tells the controller that somebody wants to cross. It doesn't flip the lights instantly. At a crossing on its own, the traffic lights go to red for the cars quite quickly. At a junction the controller may finish part of its plan first, so you wait a little longer.

Pressing the button again and again doesn't make it faster. One press is enough, and a light or sign often shows that the controller has heard you.

Crossing times are worked out from a walking speed of about 1.2 metres per second, and some crossings have sensors that can give slower walkers more time. Many crossings also bleep, or have a small turning cone under the button, for people who can't see the green figure. At some older crossings a flashing green figure means: don't start now, but finish if you're already on the road.

How do you cross the road safely at traffic lights?

A zebra style crossing seen from above with cars stopped. A grown-up holds a child's hand at the kerb next to the pole with the push button and the red figure light. Pip reminds everyone to stop at the kerb, look and listen, press the button and wait for the green figure
Stop at the kerb, look and listen, press the button, wait for the green figure, and hold a grown-up's hand.

Stop at the kerb, look and listen, wait for the green figure, and hold a grown-up's hand all the way across. Those four habits matter more than any clever science about the lights.

  1. Stop just before the kerb, in a spot where you can see in every direction.
  2. Look and listen for traffic, even when the lights are red.
  3. Press the button once and wait. Start only when the green figure shows.
  4. Hold a grown-up's hand and walk straight across without running. Keep looking as you go.

The Highway Code says children should be kept on the side nearest the traffic and held by the hand (rule 4), and that you should stop, look and listen at the kerb (rule 7). A green figure doesn't mean every driver has seen you, so watch for turning cars.

Pro tip: make it a game on a walk. Ask the child to spot the button, the figure and the stop line, then tell you when it's safe. The grown-up still makes the final call, every time.

How can you build a model traffic junction at home?

You can build a working model junction from paper, coins and a timer in about 25 minutes. It uses no electricity, so it suits ages 5 to 12, with an adult doing the cutting.

You need:

  • A large sheet of paper or the back of a cereal box, and a pen
  • Paper circles in red, amber and green (the printable below has them)
  • Four or five UK 10p coins to act as cars
  • A kitchen timer or phone timer
  • Tape, and a grown-up with scissors
  1. Draw a crossroads: a long main road and a shorter side road. Tape the paper flat to the table.
  2. A grown-up cuts out the red, amber and green circles. Put one at each road end. Each road shows only one colour at a time.
Step one and two: a paper crossroads with a main road and a side road, dashed rings at each road end for the lights, and cut-out red, amber and green circles beside it
Steps 1 and 2: draw the crossroads and set a light card at the end of each road.
  1. Set the timer for 10 seconds. Show green on the main road and red on the side road. Put the coins on the side road as waiting cars.
  2. When the timer rings, change the cards in the UK order: amber on the main road, then red. Then red and amber on the side road, then green. Say each colour out loud, set the timer again and repeat. Write down the order you used.
Step three and four: main road lights show green, side road lights show red with coins waiting. A ten second timer sits beside the paper. When it rings the cards change in order: main amber, main red, side red and amber, side green
Steps 3 and 4: a 10 second timer, green for the main road, red for the side road, then the card order.
  1. Add a sensor rule. Mark a square on the side road, close to the junction, and call it the sensor spot. If a coin sits on the spot, the side road gets its turn. If not, skip the side road and keep the main road green.
  2. Run five rounds, moving the coins each time, and see what happens to the waiting cars.
Step five: the sensor rule. On the left a 10p coin sits on the marked sensor spot on the side road, so the side road gets green and the main road shows red. On the right there is no coin on the spot, so the side road is skipped and the main road stays green
Step 5: the sensor rule. A coin on the spot means the side road gets green. No coin means it is skipped.
Printable model junction sheet. A crossroads to draw lights on, a marked sensor spot on the side road, red, red and amber, green and amber light cards to cut out, and a table to record timer length, coin on the sensor spot and coins past
Printable: the model junction sheet with light cards to cut out and a table to record your tests. Right-click or press and hold to save it, then print it at A4.

Safety: a grown-up does all the cutting. Coins are a choking risk for children under 3, so keep them away from little ones and supervise younger children. This model needs no plugs and no batteries. If your child wants a real light, let them make one lamp glow with a ready-made torch bulb kit and a grown-up beside them, as in our circuits for kids guide.

The workbook Engineering Workbook for Kids has more logic puzzles like this one for ages 8 to 12.

How do you test your junction, fix problems and change it for each age?

Change one thing at a time, and write down what you see. That's a fair test.

First keep the timer at 10 seconds and run it with a coin on the sensor spot, then without. Next try 5 seconds against 10 seconds with the coin in the same place. Count how many coins get past the junction in a set time, and use your own results rather than guessing. Different tables and different coins will give different numbers.

If it doesn't work:

  • Lights confusing? Number your cards 1 to 4 in the order you'll use them.
  • Both roads showing green? Swap only one road at a time, and always show red on the other road first.
  • Coins sliding about? Tape the paper down.

For a next test, add a pedestrian crossing across the main road. Add this rule: when someone presses a pretend button, the main road gets amber then red and the walkers cross. How does that change the waiting time for the coins?

Ages 5 to 7: use just the colours and count the seconds aloud. Ages 8 to 12: add timings, a results table and a bar chart of waiting times. Our guide to STEM activities by age has more ideas for each stage.

Traffic light cheat sheet with six panels: the UK light order, the timer, the loop sensor under the road, the pedestrian button, four steps for crossing safely, and the model junction you can build at home
Traffic light cheat sheet: the UK order, the timer, the loop sensor, the button, how to cross safely and the model junction. Save it for later.

Questions parents ask

Why do traffic lights have an amber light?

Amber warns drivers that red is coming so they have time to stop. In the UK it usually lasts about 3 seconds, and the red and amber step before green lasts about 2 seconds.

How do traffic lights know a car is waiting?

Many junctions have a loop of wire buried in the road. A car's metal changes the magnetic field around the wire, and a small unit tells the controller that a vehicle is waiting.

Do traffic lights run on a timer?

Yes. A controller counts the seconds each light stays on. Many junctions also use sensors so the plan can change when a road is empty or busy.

Do traffic lights use cameras?

Some do. Cameras on the signals can notice vehicles instead of loops in the road. Which sensors a junction uses depends on the junction.

Why do some bicycles not trigger the lights?

A bike has a lot less metal than a car, so some loops can't sense it. Some loops can be adjusted to detect bikes, and some junctions use other kinds of sensor.

Does pressing the pedestrian button more than once help?

No. One press tells the controller you want to cross, and extra presses don't speed it up. Wait for the green figure.

Can my child press the crossing button?

Yes, as long as a grown-up is holding their hand and watching the traffic. Cross only when the green figure shows, and keep looking and listening.

How it worksLogicSafety

Pip STEM Games

We make engineering games and workbooks for kids aged 5 to 12. Every activity here is one we'd happily run at the kitchen table: test it, watch it fail, fix it, try again.

Your turn to build

Pip is waiting on the island. Bridges, circuits and machines, all ready to test.

Robot Steps tier 4 game
Garden Gates tier 3 game
Download on the App StoreGet it on Google PlayAvailable at Amazon Appstore