The four color theorem states that any map drawn on a flat surface can be colored using at most four colors so that no two neighboring regions share the same color. Two regions count as “neighboring” only if they share an actual border segment, not just a single point. This means four colors are always enough for any map you could draw, no matter how complex the borders get.
It sounds simple, and it is simple to state. But proving it took over a century and eventually required a computer, making it one of the most famous results in mathematics.
What the Theorem Actually Requires
The theorem applies to maps on a plane or a sphere where every region is a single connected shape. A country like the United States, which has Alaska separated from the mainland, would need to be treated as two separate regions for the math to work. Each region must be continuous, with no detached pieces.
The “touching at a single point” exception matters more than you might think. Consider four states meeting at a single point, like the Four Corners in the American Southwest. Utah and New Mexico touch only at that point, and so do Arizona and Colorado. Because point-only contacts don’t count as shared boundaries, you can color those diagonal pairs the same color without violating the rule. Without this exception, four colors wouldn’t always be enough.
Where the Problem Came From
The question traces back to 1852, when a student named Francis Guthrie noticed something while coloring a map of English counties. He found that four colors seemed to be enough for any map he tried, but he couldn’t prove it had to be true in every case. Guthrie asked his brother Frederick, who passed the question to their professor Augustus De Morgan at University College London. De Morgan couldn’t solve it either, and on October 23, 1852, the same day he heard the question, he wrote to the Irish mathematician William Rowan Hamilton about it. Hamilton wasn’t interested, but the problem had entered the mathematical world.
For the next 25 years, no one could prove or disprove it. Then in 1879, a London barrister and mathematician named Alfred Kempe published what appeared to be a complete proof. The mathematical community accepted it, and Kempe was elected a Fellow of the Royal Society partly on its strength. His proof held up for eleven years.
Kempe’s Proof and Its Hidden Flaw
Kempe’s approach was clever. He developed a method of swapping colors along chains of connected regions to reduce the number of colors needed. If a region was surrounded by five neighbors, he argued you could always rearrange the colors of the existing regions to free up a color for the new one.
In 1890, Percy Heawood found the subtle error. He constructed a specific map where Kempe’s color-swapping process broke down. The problem was that two separate chains of colored regions, which Kempe assumed would stay independent, could actually overlap. When you tried to swap colors along one chain, it would interfere with the other chain. Swapping both simultaneously would force two neighboring regions into the same color, defeating the whole purpose. Heawood couldn’t fix Kempe’s proof, but he did manage to use Kempe’s methods to prove a weaker result: five colors are always sufficient for any map. The gap between “five is enough” and “four is enough” remained open for decades.
Why It Needed a Computer
The proof strategy that finally worked combines two ideas. First, mathematicians identified a set of map patterns called “unavoidable configurations,” meaning every possible map must contain at least one of these patterns somewhere. Second, they showed that each of these patterns is “reducible,” meaning any map containing one can always be colored with four colors. If every map must contain one of these patterns, and every pattern can be four-colored, then every map can be four-colored.
The catch is that the set of unavoidable configurations is enormous. There’s no elegant shortcut. Each configuration has to be individually checked by working through its possible colorings and verifying that four colors always work. Kenneth Appel and Wolfgang Haken at the University of Illinois spent years refining the approach, and on June 21, 1976, their computer program finished checking 1,936 unavoidable configurations (later trimmed to 1,476). The four color theorem was proved.
The proof technique, called “discharging,” works by assigning numerical charges to vertices in a graph version of the map, then redistributing those charges according to specific rules. Euler’s formula guarantees that the total charge across the graph is always positive (specifically, 12). The key insight: if none of the unavoidable configurations appeared in a map, the discharging rules would push every vertex’s charge to zero or below, making the total nonpositive. That contradicts the guaranteed total of 12, so at least one of those configurations must appear in every map.
Controversy Over Computer-Assisted Proof
The 1976 proof was the first major theorem proved with essential help from a computer, and many mathematicians were uneasy. A traditional proof can be checked line by line by a human reader. Appel and Haken’s proof required trusting that the computer program ran correctly across nearly 1,500 cases, with no bugs and no hardware errors. No person could realistically verify all of it by hand.
This raised a philosophical question that still comes up: does a proof count if no human can fully verify it? Most mathematicians now accept computer-assisted proofs, especially after a team of four mathematicians (Neil Robertson, Daniel Sanders, Paul Seymour, and Robin Thomas) published a simplified version in 1997. Their proof cut the number of unavoidable configurations to 633, roughly half the original set, and used more efficient computer checks. In 2005, a further verification was completed using a formal proof assistant, a program that checks mathematical logic at the most fundamental level, leaving very little room for doubt.
Beyond Flat Maps
The four color theorem applies only to maps on a flat plane or a sphere. On other surfaces, the number of colors you need changes. A torus (the shape of a donut) requires up to 7 colors. A double torus needs 8. As surfaces get more complex, the number keeps climbing.
There’s a formula for this. For a surface with a given number of “handles” (a sphere has zero, a torus has one, a double torus has two), you can calculate the exact maximum number of colors needed. Interestingly, this formula was proved for every surface except two: the sphere and the Klein bottle (a one-sided surface that can’t exist in normal three-dimensional space without intersecting itself). The sphere case was settled by the 1976 computer proof. The Klein bottle is the one surface where the formula overestimates: it predicts 7 colors, but 6 are actually enough.
The fact that higher-genus surfaces were proved decades before the seemingly simpler flat case highlights something unintuitive about the four color theorem. The plane, with its infinite extent and no topological constraints, turns out to be the hardest case of all.

