✖

Four colour theorem

The four colour theorem says that every map can be coloured with at most four colours in such a way that no two countries with a common border get the same colour. It sounds like a puzzle for children with crayons, and yet mathematicians struggled with it for over a hundred years. It was finally settled in 1976, and for the first time with such a famous theorem, a computer was needed to do it.

What exactly does the four colour theorem say?

Take any map, say of Europe or of the council areas of Scotland, and colour it in. There is just one rule: countries that share a stretch of border must have different colours. Countries that meet at only a single point, like the squares of a chessboard at their corners, may have the same colour. Otherwise a pie cut into many slices would need as many colours as it has slices, because every slice touches all the others at the centre.

The second condition is less obvious: every country must be a single connected piece. Real countries, though, sometimes have a piece of territory cut off from the rest, like Alaska for the United States. The theorem does not cover such exceptions, and a map with many such pieces may need more colours.

Under these conditions four colours are always enough, however complicated the map.

Why three colours are not enough

A simple map shows that we cannot manage with fewer than four colours. A country in the middle is surrounded by three others, and each of them borders all the rest:

On the left a circular map: a red country in the middle and around it three countries, blue, green and orange, which all touch one another. An arrow. On the right the graph of the same map: a red dot in the middle and blue, green and orange dots around it, every dot joined to every other On the left a circular map: a red country in the middle and around it three countries, blue, green and orange, which all touch one another. An arrow. On the right the graph of the same map: a red dot in the middle and blue, green and orange dots around it, every dot joined to every other

Four countries that each border all the others need four different colours. You cannot draw five such countries on a map: try adding a fifth to the picture that would border all four, and you will find that the red country in the middle is surrounded on all sides. But that does not yet mean that four colours are enough. A map can also force an extra colour indirectly, as the puzzle at the end of the article shows. The strength of the theorem is that even such tangled maps never need a fifth colour.

The shape of the countries does not matter at all; all that counts is which countries border which. That is why, instead of a map, mathematicians draw a graph, which has nothing to do with the graph of a function: each country is represented by a dot, and the dots of neighbouring countries are joined by a line, as in the picture on the right. Such a graph can always be drawn so that no two lines cross. The four colour theorem then says that the dots of such a graph can be coloured with four colours so that no line joins two dots of the same colour. Graph colouring is useful beyond maps too, for example when drawing up timetables, where two lessons with the same teacher must not be given the same time slot. Graphs also solve the puzzle of the Seven Bridges of Königsberg.

How it began

In 1852 Francis Guthrie was colouring a map of the counties of England and found that four colours were enough. He wondered whether this held for every map. His brother Frederick passed the question on to his teacher, the mathematician Augustus De Morgan. Then the question lay dormant for a quarter of a century, until in 1878 Arthur Cayley revived it by asking at a meeting of the London Mathematical Society whether anyone had solved it yet.

In 1879 Alfred Kempe, a barrister and amateur mathematician, published a proof, and for eleven years everyone thought it was correct. In 1890, however, Percy Heawood found a mistake in it. Kempe’s idea was not wasted, though: Heawood used it to build a proof that five colours are always enough. Between five colours and four there was then a gap that nobody managed to close for another 86 years.

Six colours easily, five with effort

Why is it so hard? Let’s start with a proof that six colours are enough. Leonhard Euler’s formula, which links the number of countries, borders and points where borders meet, implies that the average country has fewer than six neighbours. So somewhere on the map there is a country with at most five neighbours. We set it aside for a moment, colour everything else and then put the country back in its place. Its neighbours have used at most five colours, so the sixth is free. We deal with the rest of the map in the same way until only a handful of countries are left.

With five colours it is not that simple: if the country we put back has five neighbours in five different colours, there is no colour left for it. Kempe came up with a clever move. Take one neighbour of the returned country, say the red one, and all the countries we can reach from it by passing only through red and blue neighbours. Such a chain is now called a Kempe chain. If we swap red and blue within it, the colouring stays valid, and if the chain does not reach the blue neighbour of our country, one colour disappears from around the country. If it does reach it, it blocks the path of a chain of another pair of colours, and that one is swapped instead. With five colours this always frees up a colour for the returned country. With four colours two chains have to be swapped at once, but they can get in each other’s way, and that is exactly what Kempe missed.

Proof by computer

In 1976 Kenneth Appel and Wolfgang Haken of the University of Illinois announced that they had proved the theorem. They followed in the footsteps of Kempe’s idea, but on a large scale. They put together a list of just under two thousand small pieces of a map, called configurations, with two properties:

  • every map contains at least one configuration from the list,
  • every configuration can be removed from the map and, once the rest has been coloured, put back in with four colours, if necessary after recolouring along Kempe chains.

If some map needed five colours, we would take the smallest such map. It contains a configuration from the list, which can be removed and put back, so it too could be coloured with four colours. That is a contradiction, and so no such map exists. Checking by hand that every configuration can be put back, however, was impossible. It took the computer over a thousand hours.

The university celebrated the result with a postmark reading “Four colors suffice” (four colours are enough). Mathematicians, however, were not so enthusiastic. A proof whose essential part nobody can read was a novelty at the time, and many doubted whether it could be trusted. So in 1997 Neil Robertson, Daniel Sanders, Paul Seymour and Robin Thomas published a new proof with a list of only 633 configurations and a program that anyone can check for themselves. Then in 2005 Georges Gonthier and Benjamin Werner translated the whole proof into the program Coq, which mechanically verifies every step, much as Lean does today. Since then nobody has doubted that the theorem is true.

A new proof from 2026

In March 2026 six researchers from Denmark, Canada and Japan published another, independent proof, again with the help of a computer. Their list has 8,202 configurations, but in return their method colours a big map much faster than the earlier proofs could. You can find the details in the blog post about the new proof. Still, nobody yet has a proof that a person could check alone, without a computer.

Incidentally, on other surfaces the number of colours changes. A map on the surface of a ring doughnut may need as many as seven colours. Related questions that have not yet been solved are the Hadwiger conjecture and colouring the plane.

Try it yourself

A country in the middle is surrounded by a ring of five neighbours. How many colours does this map need?

A grey circular map: a country in the middle and around it a ring of five countries, each bordering the centre and its two neighbours in the ring A grey circular map: a country in the middle and around it a ring of five countries, each bordering the centre and its two neighbours in the ring

You will find the solution at the end of the article.

See also

Solution to the puzzle

It needs four colours. The five countries in the ring form a closed loop of odd length. If we coloured them with just two colours, alternating, the fifth country would border two countries that already have both colours. So the ring needs at least three colours, for example red, blue, red, blue and green. The country in the middle borders all five, so it must get a fourth colour, orange. And yet this map does not have four countries that each border all the others, and three colours are still not enough for it.