Naru News日本語

Home › Glossary › Math

What is the four color theorem (any map can be colored with four colors)?

Also called: Four colour theorem, Four color problem, 4CT

Term explainer · Checked November 23, 2026 · 14 min read

In one minute

The four color theorem is a theorem in mathematics saying that four colors are always enough to color any map so that countries sharing a border line get different colors.

Countries that touch only at a point don’t count as neighbors, and every country must be in one piece (no exclaves). Some maps have four countries that all touch one another, so three colors are sometimes not enough.

The question was asked in 1852, and an 1879 “proof” turned out to be wrong 11 years later. In 1976 it was proved by having a computer check about 1,500 patterns of how countries can sit together, but no one could check that by hand, and the proof was disputed. In 2005 it was also checked by software that checks proofs line by line (Coq). In 2026, a fast way to 4-color even huge maps was announced.

A common mix-up

“Since four colors are enough, coloring the countries one by one will always fit in four colors.”

It is true that every map has some way to be colored with four colors. But if you color countries one after another as they come, you can get stuck. For example, if the five countries around one country have already used up all four colors, there is no color left for it. Then you have to go back and change colors you already used. The theorem says that “a good coloring with four colors always exists”; it doesn’t tell you how to find it. How to find such a coloring quickly for large maps has long been studied, and in 2026 a method was announced that its authors say can’t be made any faster.

Explained in pictures

A figure setting an example map colored with four colors next to an example where three colors are not enough. Title: “The four color theorem: four colors for any map”. Left panel, “A map colored with four colors”: a map split into 10 countries, colored with color numbers 1 to 4. Countries that share a border line always have different numbers. Below: “Countries sharing a border line differ” and “Numbers stand for the colors”. Right, an orange panel, “Three colors aren’t enough”: a round country 4 in the middle is surrounded by three countries 1, 2 and 3, which also touch one another. Below: “Each of the 4 countries touches the other 3” and “→ 4 colors are needed”. Band at the bottom: Neighbors never need a fifth color.
This figure shows what the four color theorem says. On the left is a map split into 10 countries and colored with four colors; the numbers name the colors. Countries that share a border line always have different numbers. On the right is a case where three colors aren’t enough: three countries surround the one in the middle and also touch one another, so each of the four touches the other three, and giving them all different colors takes four. The theorem says four colors are enough for any map.
A figure showing, in three panels, the rule for “neighbors” in the four color theorem and the case of exclaves. Title: “What counts as neighbors, and exclaves”. Left panel, “Sharing a line”: two square countries, 1 and 2, share one border line (a thick line). “Shared line → neighbors” and “Different colors”. Middle panel, “Touching at a point”: 8 countries, like a round pizza cut into 8 slices, meet at one point in the middle (an orange dot), colored 1 and 2 in turn. “8 meet at one point”, “Not neighbors → 2 colors” and “(If points counted: 8)”. Right panel, “With an exclave”: an outer square country 1 surrounds countries 2, 3 and 4, which split a ring into three, and inside the round country 5 in the middle is an exclave of country 1 (a small dotted square). “Country 1: two pieces”, “All 5 touch each other” and “→ 5 colors needed”. Band at the bottom: The theorem covers maps where each country is one piece.
This figure shows the two conditions of the four color theorem. As on the left, only countries that share a border line count as neighbors. The 8 countries in the middle touch at just one point, and points don’t count, so two colors taken in turn are enough; if points counted, all 8 would touch one another and 8 colors would be needed. On the right is an exclave: country 1 is split between the outside and a spot inside country 5. So country 1 touches all four other countries, all 5 countries touch one another, and 5 colors are needed.
A figure showing the idea of the proof of the four color theorem in two cases. Title: “The proof’s idea: remove one, color, put it back”. Top box: Every map has a country with 5 or fewer neighbors. Left panel, “If it has 3 neighbors”: a country marked “?” in the middle is surrounded by three countries colored 1, 2 and 3. After an arrow, “Put back”, the middle country is colored 4. “Neighbors use only 3 colors”, “→ color 4 is free” and “(4 neighbors: a trick works too)”. Right, an orange panel, “If it has 5 neighbors”: a country marked “?” is surrounded by five countries colored 1, 2, 3, 4 and 2. “The neighbors may use all 4 colors”, “Kempe’s proof went wrong here”, “Robertson et al.: 633 bigger shapes, every one checked” and “(the checks done by computer)”. Band at the bottom: Every map has a listed shape that can be put back → 4 colors.
This figure shows the idea of the proof. Checking maps in order from those with fewer countries, remove a country with 3 neighbors, color the smaller map with four colors, and put it back: the neighbors use only 3 colors, so color 4 is free (left). With 5 neighbors, they may already use all four colors, and this is where Kempe’s proof went wrong (right). Today’s proofs prepare a list of bigger “reducible” shapes and show that every map contains one of them and that each can be removed and put back.
A figure listing the history of the four color theorem from 1852 to 2026 in seven rows, top to bottom. Title: “The four color theorem, 1852 to 2026”. 1852: Guthrie asks: can every map be colored with 4 colors? (He had colored a map of the counties of England with 4.) 1879: Kempe publishes a “proof” (he swapped two colors along a chain, Kempe chains). 1890: Heawood finds the error in Kempe’s proof (he did prove that 5 colors are always enough). 1976 (orange box): Appel and Haken prove it with a computer (about 1,500 shapes, 1,200 computer hours; uncheckable by hand: disputed). 1996: Robertson and 3 others give a simpler proof (633 shapes; coloring work grows with the square of the countries). 2005: Gonthier and colleagues check the whole proof in Coq (software that checks a proof line by line, a proof assistant). 2026 (orange box): Six researchers announce a fast way to 4-color (10 times the countries, about 10 times the work; old method: about 100 times).
This figure lines up 174 years of the four color theorem in seven events. Kempe’s 1879 proof of the 1852 question was found to be wrong in 1890. The 1976 proof had a computer check about 1,500 shapes, and the fact that no one could check it by hand led to a dispute. In 1996 a proof with only 633 shapes appeared, and in 2005 the whole of it was checked in Coq. The 2026 research gives a way of coloring where 10 times the countries takes only about 10 times the work.

You’re free to use these figures in lessons, slides and posts if you credit Naru News (naru.news). CC BY 4.0.

Think of it like this

Putting chatty pairs in different rooms

Say that at a camp you want to put certain pairs, who end up talking all night if they sleep side by side, in different rooms. Make each person a dot and join each “not in the same room” pair with a line, and you get a diagram of connections. If you think of rooms as colors, it becomes the problem of coloring the dots so that dots joined by a line get different colors.

A map can be turned into the same kind of diagram. Make each country a dot and join neighboring countries with a line. A diagram made from a map this way can be drawn on paper without any lines crossing. The four color theorem can then be restated as: “if a diagram of connections can be drawn without lines crossing, its dots can be split into four rooms (four colors).” Mathematicians often think about it in this form.

But the analogy breaks down in places. The “not together” pairs among people can’t always be drawn without lines crossing. For example, if 5 people must all be kept apart from one another, joining all 5 with lines always makes some lines cross however you draw it, and you need 5 rooms. Four is enough only when the diagram can be drawn without crossing lines, as with one made from a flat map.

Key points

What does “neighboring” mean? What about exclaves?

In the four color theorem, two countries count as neighbors only when they share a stretch of border line. Countries that touch at just one point don’t count. For example, in a map where 8 countries meet at a single point in the middle, like a round pizza cut into 8 slices, points don’t count, so two colors taken in turn are enough. If points counted, all 8 countries would touch one another, and 8 colors would be needed.

The other condition is that every country is in one piece. If you allow exclaves, parts of a country that lie apart from the rest, you can make maps that four colors can’t handle. For example, if one country is split between two places so that 5 countries all touch one another, 5 colors are needed. If every country may be split into up to two pieces, you can even make a map of 12 countries in which every two of them touch, so maps that need 12 colors are known.

Aren’t three colors enough? Is five easier?

Some maps can’t be done with three colors. If three countries surround a country in the middle and also touch one another, each of the four countries touches the other three. To give every two of them different colors, you need four. So “four” can’t be lowered any further.

On the other hand, in 1890 Heawood proved that five colors are always enough. Getting from there down to four took another 86 years.

Who came up with the question, and when?

It began in 1852. Francis Guthrie in Britain, coloring a map of the counties of England, noticed that four colors were enough and wondered whether that was true of every map. His brother Frederick passed the question on to his professor, De Morgan, and on October 23 of that year De Morgan described it in a letter to the mathematician Hamilton.

In 1878, Cayley asked at the London Mathematical Society whether the question had been solved, and the next year he published a paper explaining what made it hard. From the 1852 question to 2026, 174 years have passed.

What was wrong with Kempe’s proof?

In 1879, Kempe published a proof that used a trick of swapping colors. The core of his idea lives on in today’s proofs, so let’s follow it step by step. The proof checks maps in order, starting from those with fewer countries (mathematical induction: if it holds for maps with one country fewer, it holds for this map too, so the cases fall like dominoes). First, every map has a country with 5 or fewer neighbors. Try to give every country 6 or more neighbors, and on a flat map something always breaks down somewhere (this follows from Euler’s formula, a rule about the numbers of points, lines and areas). Merge that country into one of its neighbors to get a map with one country fewer, suppose that map can be colored with four colors, and then put the country back. If it has 3 or fewer neighbors, they use at most 3 colors, so a color is left for it. A country with 4 neighbors can be handled the same way with a trick that makes two opposite neighbors share a color.

The trouble is a country with 5 neighbors that use all four colors between them. Kempe looked at a connected cluster of countries whose colors alternate between two colors as they touch one another (a Kempe chain). For example, a “1 and 3” chain is a cluster of countries colored 1 and 3 that touch one after another. Swap 1 and 3 throughout the cluster, and no two neighbors end up with the same color, because any country touching the cluster from outside has a color that is neither 1 nor 3. Also, on a flat map, if a “1 and 3” chain goes all the way around something, a “2 and 4” chain can’t link its inside to its outside (two chains whose color pairs don’t overlap, like “1 and 3” and “2 and 4,” can’t cross). Kempe sorted out how the chains could be arranged and argued that swaps made one after another would free up one color.

But the first swap can also change the colors of some countries in another chain that the next swap was going to use, which changes how that chain is connected (it may break apart, for example), so the swaps can’t always be done one after the other. It took 11 years to notice this mistake; Heawood pointed it out in 1890. Even so, Kempe’s idea of swapping colors has been used in every correct proof since.

Today’s proofs no longer try to settle things with a single country with 5 neighbors. Instead they prepare many bigger “reducible” shapes (set patterns of how several countries sit together). If you show that every map contains at least one shape from the list (the list is “unavoidable”) and that each shape can be removed and put back after coloring (it is “reducible”), it follows that four colors are enough.

Why was the 1976 proof disputed?

In 1976, Appel and Haken built an unavoidable list of about 1,500 shapes and proved the theorem by having a computer check that each one of them was reducible. The computing took about 1,200 hours, and the details came out in two papers in 1977.

Much of this proof was left to the computer, and no one could follow its thousands of checks by hand. The part meant for people to read was also very long and complicated. Other mathematicians found it hard to check, and the proof was disputed.

In 1996–1997, four mathematicians, Robertson, Sanders, Seymour and Thomas, gave a simpler proof along the same lines. The list shrank to 633 shapes, and the rules used to show that a listed shape is always present went from more than 300 down to 32. Even so, checking that the shapes are reducible still needs a computer. Every correct proof known today uses a computer.

What does it mean that it was checked in Coq?

Coq (now called Rocq) is software that has a computer check mathematical proofs (a proof assistant). Lean is the same kind of software. It checks, line by line, whether a proof written in a fixed format is correct, and rejects it if even one step breaks the rules.

Georges Gonthier and his colleagues rewrote the proof of Robertson and the others in Coq’s language, all of it, including the parts that had been computer calculations, and finished checking it in 2005. Back in 2000, they had proved part of Robertson and the others’ programs correct, but that left a question: was the description of what the programs check (the specification) itself correct? So they decided to rewrite not just the programs but the whole proof.

With a check like this, a skeptic no longer has to read through the entire proof. But a person still has to read the definitions to make sure that the theorem written in Coq really says what the four color theorem says. So Gonthier and his colleagues built the statement from only about 40 lines setting out points and countries in the plane and about 100 lines of rules for real numbers, instead of relying on about 5,000 lines of intricate definitions. “Neighboring” is defined exactly in mathematical terms too (roughly, sharing a border line), so countries touching only at a point are not neighbors.

What’s new in the 2026 announcement?

The four color theorem shows that four colors are possible, but actually coloring a big map needs a step-by-step method (an algorithm). The method Robertson and the others gave in 1996 finds one reducible shape, makes the map only a little smaller, and searches again, over and over. Each round takes work in proportion to the size of the map, and it is repeated a number of times in proportion to the number of countries, so the work grew with the square of the number of countries. Ten times as many countries meant about 100 times the work.

In 2026, six researchers from the University of Copenhagen, the Technical University of Denmark, Japan’s National Institute of Informatics, the University of Tokyo and Simon Fraser University showed that every map has many places where it can be made smaller, set apart from one another, in numbers that grow in proportion to the number of countries. Such a place is either a reducible shape or a ring of 5 or fewer countries that splits the map into an inside and an outside. Earlier proofs looked for shapes where countries with fewer than 6 neighbors gather; this work showed that such places exist even in wide parts where, like a honeycomb, every country has about 6 neighbors.That lets them use many places at once and remove a fixed fraction of the map each round, so far fewer rounds are needed than when shrinking it a little at a time. Their first paper gave a method whose work grows almost in proportion to the number of countries (only a little more than in proportion), and it won the Best Paper Award at FOCS 2026, an international conference on theoretical computer science.

In a second paper (posted in October 2026), they found a better way to store the data for swapping colors quickly and brought the work down to grow in direct proportion to the number of countries. With ten times as many countries, the work is only about ten times as much. The researchers call this method optimal, meaning it can’t be made any faster. Any method has to color every country at least once, so it takes work in proportion to the number of countries.

Computers are still essential in this research. Among other things, more than 8,200 shapes were checked to be reducible with programs written in C++, and on a computer with 256 cores all the checks ran within a couple of hours. The programs are public so that anyone can run them. The paper’s acknowledgments also say that an AI (Google’s Gemini) helped cross-check the step-by-step descriptions against the programs and caught a few elementary mistakes.

Check yourself

  1. Q1In the four color theorem, when do two countries on a map count as “neighbors” that must get different colors?

    Answer and explanation

    Answer: B When the two touch along a border line

    The theorem counts two countries as neighbors only when they share a border line. Countries that touch at just one point don’t count. If points counted, a map like a pizza cut into 8 slices would need 8 colors. Two countries that each touch the same third country but don’t touch each other may have the same color.

    More on this → Key points: What does “neighboring” mean? What about exclaves?

  2. Q2The “proof” of the four color theorem that Kempe published in 1879 was found to be wrong 11 years later. What was the mistake?

    Answer and explanation

    Answer: A Missing that a swap can change another chain too

    Kempe looked at a chain of countries whose colors alternate between two colors (a Kempe chain) and swapped the colors inside it, trying to free up a color around a country with 5 neighbors. But the first swap could also change the colors of some countries in another chain that the next swap was going to use, changing how that chain was connected, so the next swap could no longer be used. Swapping over a whole chain never gives two neighbors the same color. Countries with 4 neighbors were handled correctly by Kempe’s idea; the trouble was countries with 5 neighbors.

    More on this → Key points: What was wrong with Kempe’s proof?

  3. Q3With the method that Robertson and his colleagues gave in 1996 for coloring a map with four colors, 10 times as many countries meant about 100 times the work. Why did the work grow that much?

    Answer and explanation

    Answer: C Each round, it removed a few countries and searched again

    The 1996 method found one reducible shape, made the map only a little smaller, and searched again, over and over. Each round took work in proportion to the size of the map and was repeated a number of times in proportion to the number of countries, so the work grew with the square of the number of countries: 10 times the countries meant about 100 times the work. The 2026 method uses many places where the map can be made smaller at once and removes a fixed fraction of the map each round, so 10 times the countries takes only about 10 times the work. Both methods color with four colors.

    More on this → Key points: What’s new in the 2026 announcement?

Sources and how we checked

AI wrote this page from the sources above, and a different AI checked it against the text of those sources (November 23, 2026). A person with a master’s degree in science and a Japanese high-school science teaching license also read and checked it before publishing. Numbers are as of that date. If anything was hard to follow, you spot a mistake, or there’s a term you’d like explained, please write to [email protected].

Glossary

All 10 Math terms →