5. Colouring maps

Maps often use different colours for neighbouring regions so that their borders are easy to see.

But how many colours do you really need?

Try it

How many colours do you need?

Colour the five regions so that any two regions sharing a side have different colours.

First choose a colour, then click a region.

💡
Learning tip Don’t worry about finding the best colouring immediately. Start with any sensible choice, then notice where your choices create problems later. If you get stuck, try changing one earlier colour rather than starting over.

A B C D E
Could you do it with only two colours?

No. This map needs at least three colours.

Look at regions C, D and E. Each one shares a side with both of the others.

C D E

C touches D, D touches E, and E touches C.

Suppose C is blue. Then D must use a different colour — say pink. But E touches both C and D, so it can be neither blue nor pink.

We therefore need a third colour.

In this lesson, we’ll turn map colouring into a graph problem — and meet one of the most famous theorems in mathematics.

Turn the map into a graph

What happens if we forget the shapes of countries and remember only which countries are neighbours?

We’ll use the 27 countries of the European Union. Two countries will be connected if they share a land border on the European map shown here.

💡
Learning tip When turning the map into a graph, ignore the shapes and sizes of the regions. Ask only: which regions share a border? Those relationships are the information the graph needs to keep.
Real-world example

The European Union becomes a graph

Start with the map of the 27 EU countries.

1 Map 2 Vertices 3 Edges 4 Graph 5 Rearrange 6 Find four colours 7 Colour the graph 8 Back to the map
Loading the map…
Work it out

Map boundaries: Natural Earth. Overseas territories are not included in the neighbour relationships used here.

What is a proper colouring?

We’ve been colouring maps by making sure neighbouring regions have different colours.
On a graph, the same rule applies to vertices joined by an edge.

The EU example showed us two separate ideas. Let’s give them their mathematical names.

Definition

Proper colouring

A proper colouring of a graph gives colours to the vertices so that two vertices joined by an edge never have the same colour.

✓ Proper colouring

Every pair of connected vertices has different colours.

✗ Not a proper colouring

The two pink vertices are joined by an edge.

Definition

Chromatic number

The chromatic number of a graph is the smallest number of colours needed for a proper colouring.

The triangle above needs 3 colours, so its chromatic number is 3.
Practice

Colour the Northeast USA

This graph represents nine states in the northeast of the USA. Two vertices are joined when the states share a land border.

Use as few colours as you can. Connected vertices must have different colours.
💡
Learning tip Before colouring, look for the most constrained region — one with lots of neighbours. Starting with the difficult parts can make later choices easier. If your colouring fails, ask which earlier choice caused the problem.
How to play
Click any state to choose your starting vertex. Then choose one of the four colours. Continue until every state is coloured.
NY PA NJ CT RI MA VT NH ME
Choose any vertex to start.
States coloured: 0 / 9  ·  Colours used: 0
Your result

Your graph colouring becomes a map

These are exactly the colours you chose.

Loading the map…

Practice

For each graph, find its chromatic number: the smallest number of colours needed for a proper colouring.

Puzzle 1

A square

What is the smallest number of colours you need?

Reveal answer

The chromatic number is 2.

Colour the vertices alternately blue, pink, blue, pink as you go around the square.

Puzzle 2

Add one diagonal

Now one extra edge has been added. What is the chromatic number?

Reveal answer

The chromatic number is 3.

The diagonal creates a triangle. Every vertex in a triangle must have a different colour.

Three colours are enough for the whole graph, so the chromatic number is exactly 3.

Puzzle 3

Can three colours possibly work?

Every vertex in this graph is joined to every other vertex.

Reveal answer

The chromatic number is 4.

Every vertex touches all three of the others, so no two vertices can share a colour. All four need different colours.

The Four Colour Theorem

Something remarkable happens here.

Theorem

The Four Colour Theorem

Every flat map can be coloured using at most four colours, so that any two regions sharing a border have different colours.

Some maps need only 2 or 3 colours. But there are maps for which 4 colours are necessary.

The statement is wonderfully simple, but proving it turned out to be extremely difficult.

Mathematicians worked on the problem for more than a century. In 1976, Kenneth Appel and Wolfgang Haken produced the first accepted proof, using extensive computer calculations.

Challenge

Can you invent a map that really needs four colours?

We know that four colours are always enough. But can you draw your own map for which three colours are not enough?

Your challenge: create four regions arranged so that every region is a neighbour of each of the other three.

Need a hint?

Think back to the four-vertex graph from Puzzle 3.

Can you turn that graph back into a map? One of the four regions could even be the area outside the other three.

What have we learned?

A map can be turned into a graph by making each region a vertex and joining neighbouring regions.

Map colouring then becomes vertex colouring.

Some graphs need only two colours. Some need three. Some maps genuinely need four.

But every ordinary flat map can always be coloured with at most four colours.

In the next lesson, we’ll use graphs for a very different problem:

How do we find the shortest route through a network?

Keep learning

Come back to it later

When you learn something new, it is important to come back to it later. Revisiting an idea after some time has passed helps you discover what you remember, what needs another look, and often makes the idea clearer the second time around. Our handouts are a perfect excuse to do exactly that.

📘

Printable Graphs course

Prefer paper, a tablet, or studying offline? Open the printable version of the whole Graphs course, including this lesson.

Open printable PDF →
✏️

Additional practice

Extra problems and investigations for this lesson are being prepared. Come back later for another chance to practise the ideas.

Coming soon
Help us improve

What did you think?

Whether you explored this together or worked independently, we would love to hear from both learners and parents. Tell us what you enjoyed, what was confusing, or what you would like to see next.

Share your feedback

The form is short and you do not need to give your name.


GRAPH COURSE
Keep exploring