Geometry · Limits · A famous wrong proof
The staircase that says π = 4
Fold the corners of a square onto a circle, again and again, until you cannot tell them apart. The outline never stops measuring 4. So why is π not 4? The answer is one of the most useful lessons in mathematics: looking the same is not the same as measuring the same.
Four drawings and a question mark
On 31 August 2018 the account of Fermat’s Library, a website that annotates classic papers, posted four small drawings with a dare: this is called the staircase paradox, can you explain what is wrong with it? Thousands of people shared it. The drawings had already been passed around maths forums and classrooms for years, often under the name “troll math”, and they keep coming back, because the argument they make is so short and so convincing that most people cannot say where it fails.
Here it is, redrawn above. Take a circle whose diameter is 1. Its circumference, by definition, is π. Draw the smallest square around it. The square’s sides are each 1 long, so its perimeter is 4. Now push each of the four corners inward until it touches the circle. The outline gains a notch at every corner, but, as you will see in a moment, its length does not change at all: still 4. Push in the eight new corners. Still 4. Keep going. After enough folds the outline is a fine staircase that sits so close to the circle that no eye, no microscope and no printer could tell them apart. Every staircase in the sequence has perimeter 4. The thing they are approaching is the circle. Therefore, the drawing whispers, the circle has perimeter 4, and π = 4.
We know this is false. Archimedes knew it was false more than two thousand years ago, and you can check it with a piece of string and a dinner plate in a minute. What makes the picture worth an essay is not that it is wrong, but that the mistake is a real one, a mistake mathematicians made in earnest well into the nineteenth century. Finding it teaches you what length actually is.
Every staircase really is 4
Before hunting for the error, it helps to see that most of the argument is correct. The first claim, that folding a corner never changes the perimeter, is simply true. When you push a corner of the square inward, you take a horizontal piece and a vertical piece of the outline and move them; you do not stretch or shrink them. The notch has the same total width and height as the corner it replaced.
There is an even cleaner way to see it. Look at one quarter of the staircase, the part between the top of the circle and its right-hand side. It is made of short horizontal pieces and short vertical pieces, always moving left and up and never doubling back. Slide every horizontal piece straight up onto a ruler above the circle, and they cover a stretch of exactly half the diameter, with no gaps and no overlaps. Slide every vertical piece sideways onto a ruler at the right, and they cover exactly another half. So a quarter of the staircase measures ½ + ½ = 1, whatever the number of steps, and the whole thing measures 4.
Slide every gold piece straight up and every blue piece straight right. The gold ones tile the top ruler with no gaps and no overlaps, and so do the blue ones on the side. However many steps you cut, a quarter of the staircase is always half a diameter across plus half a diameter up. Four quarters make 4.
The second claim is true too. The staircases really do close in on the circle. After the first fold, the farthest point of the outline is about 0.11 of a diameter away from the circle. After a few more, it is under a hundredth. Keep folding and that gap goes to zero; pick any tolerance, however tiny, and after enough folds every point of the staircase lies within it. Mathematicians say the staircases converge to the circle uniformly, and that is as strong a sense of “getting closer” as there is. Even the area works: the sliver of space between the staircase and the circle shrinks to nothing, so the area inside the staircase tends toπ/4, exactly the area of the circle.
So the facts are these. The shapes converge. The areas converge. The lengths are all 4. The only step left is the one that says the limit of the lengths must be the length of the limit. That step is the lie.
- Perimeter
- 4.0000
- Widest gap
- 0.0817
- Area off by
- 0.0794
- Length ÷ π
- 1.2732
Push the slider right. The gap and the area error both melt towards zero, so the shape really does become the circle. The perimeter never moves: 4, then 4, then 4.
Play with the lab above and the situation becomes physical. In staircase mode, drag the slider and watch the “widest gap” and “area off by” bars shrink almost to nothing while the perimeter bar refuses to budge. Then flip to polygon mode. Now the corners sit on the circle and the edges cut straight across it. Every number converges together, and the perimeter creeps up to 3.14159 from below. Two sequences of shapes, both closing in on the same circle. One gets the length right, the other gets it wrong by a fixed 27 per cent, forever.
The diagonal that is 2 long
If the circle feels too complicated, the same trick works on a straight line. Take a square with sides of 1 and look at its diagonal. Pythagoras says the diagonal is √2 ≈ 1.414, the number whose irrationality unsettled the Greeks. Now walk from one corner to the other along the edges: 1 across, 1 up, total 2. Replace that walk with two smaller stairs, then four, then a thousand. Each staircase is still 1 across and 1 up, so each has length 2, and the staircases hug the diagonal more and more tightly. By the same reasoning as before, √2 = 2.
Nobody believes √2 = 2, and this version makes the trick easier to see. A tiny step of the staircase is a right-angled triangle with the diagonal as its hypotenuse. The staircase walks the two short sides; the diagonal walks the long one. Make the triangle a million times smaller and the ratio between those two routes does not change at all: two legs of length 1 against a hypotenuse of √2, scaled down. Shrinking something does not change its shape. A million tiny detours of 41 per cent add up to a total detour of 41 per cent.
The circle points every way; the staircase points two
The circle is harder only because its direction keeps changing. At the very top, the circle is running horizontally, exactly the way the staircase runs, and the steps there cost almost nothing extra. At the far right it runs vertically, and again the staircase can follow it. But at 45 degrees the circle runs diagonally, and there the staircase is in the same position as on the square’s diagonal: forced to replace every short slanted stretch with a horizontal leg and a vertical leg, √2 times as long.
In general, if a little piece of the circle points at an angle, the staircase must cover it with one horizontal leg and one vertical leg, and the ratio of the staircase’s route to the circle’s route is|cos θ| + |sin θ|, where θ is the angle of that point around the circle. Turn the dial in the next lab and watch the two legs swing round.
The red stroke is a tiny piece of the circle. The staircase cannot follow it; it must go across (gold) and then up (blue). At 0°, 90°, 180° and 270° the circle is running along the grid and the detour is free. At 45° it costs √2 ≈ 1.414 times as much.
The curve under the dial shows that ratio all the way round: exactly 1 at the four compass points, √2 at the four diagonals, and somewhere in between everywhere else. Now average it around the whole circle. The calculus is a single line: the integral of |cos θ| + |sin θ| over a full turn is 8, and a full turn is 2π, so the average is
And there is the whole paradox, settled in one multiplication. The staircase is not approaching the length of the circle. It is approaching the length of the circle times the average detour:
The 4 in the picture is not a wrong value of π. It is the right value of something else: the length of the circle as measured by a traveller who is only allowed to move north, south, east or west. Folding the corners more finely makes the staircase look smoother, but it never lets the traveller turn diagonally. Each step is still a little right-angled zigzag, and the zigzags still charge their 27 per cent on average, no matter how small you draw them.
Close, but always crossing the arc at right angles. Every step is a little sawtooth that never flattens, however small.
Its edges point the same way as the arc they replace. Zoom in on a polygon and it straightens out; zoom in on a staircase and it stays jagged.
Close in position, far apart in direction
Mathematicians have a precise way of saying all this. Two curves can be close in position, meaning every point of one lies near some point of the other. Or they can be close in direction as well, meaning that where they are near each other, they are also heading the same way. Length depends on both. The length of a curve is built up from tiny pieces, and the size of each piece depends on which way the curve is moving there, so a sequence of curves can converge in position while their lengths converge to something else entirely, or to nothing at all.
In the language of analysis, length is not a continuous function of the curve. It is only what is called lower semicontinuous: the limit of a sequence of curves can be shorter than the lengths of the curves suggest, but never longer. That is why the staircase can be stuck at 4 while its limit has length π, and why no trick of this kind could ever make a circle look shorter than it is. Zigzags can only add length. They can never take it away.
It is also why the honest definition of length uses polygons whose corners lie on the curve. In the 1880s the French mathematician Camille Jordan, building on earlier work, set out the modern definition: the length of a curve is the least upper bound of the lengths of all polygons inscribed in it. Inscribed chords never zigzag across the curve. When their corners crowd together, each chord lines up with the piece of curve it spans, in position and in direction at once. Look at the two close-ups above: zoom in on a polygon and it straightens out along the arc; zoom in on the staircase and it stays a saw blade.
“Steps” counts steps per quarter for the staircase; the polygon has four times that many sides. By row 8 the staircase never strays more than 0.0004 of a diameter from the circle. Drawn on a dinner plate, that is about the width of a human hair, and the length is still exactly 4.
If this pattern feels familiar, it is because infinity plays the same game in other places on this site. Writing 0.999… = 1 asks you to trust a limit your eyes cannot see. Gabriel’s horn holds a finite amount of paint but needs an infinite amount to coat its surface, another case where two measures of the same shape refuse to behave alike. The staircase is the gentlest member of the family: it does not need infinity at all to mislead you. Ten folds are enough to fool the eye, and ten folds already show the length is stuck.
How Archimedes did it right
The first person to pin down π with real rigour used polygons, and he used them the honest way. In a short treatise called Measurement of a Circle, Archimedes drew a regular hexagon inside a circle and another outside it. The circle’s length had to lie between their perimeters. Then he doubled the number of sides, to 12, 24, 48 and finally 96, each time computing the new perimeters by hand with nothing but whole-number fractions and some remarkably good estimates of square roots.
His conclusion has never needed correcting: π is greater than 3 10/71 and less than 3 1/7, that is, between about 3.1408 and 3.1429. The upper bound, 22/7, is still the fraction schoolchildren learn. What matters for our story is why it worked. Both of Archimedes’s polygons are made of straight edges that point along the circle. The inside one has its corners on the curve. The outside one has its edges touching the curve, each one tangent to it at its midpoint. Double the sides and both polygons line up more closely with the circle in direction as well as in position, so their perimeters squeeze π from both sides.

For almost two thousand years after him, everyone who wanted more digits of π did the same thing with more sides. In third-century China, Liu Hui reached a polygon of 3,072 sides. Two centuries later Zu Chongzhi found the fraction 355/113, correct to six decimal places, a record that stood for nearly a thousand years. In 1424 the Persian astronomer Jamshīd al-Kāshī, working at Samarkand, computed π to sixteen decimals with a polygon of more than 800 million sides. Around 1600 the Dutch fencing master and mathematician Ludolph van Ceulen spent years of his life on a polygon with 2⁶² sides and reached 35 decimals; the digits were carved on his tombstone, and Germans still sometimes call π “the Ludolphine number”.
Set against that long, patient line, the staircase looks like what it is: a shortcut that cannot work. It is also a cousin of other bad shortcuts. In 1897 the Indiana House of Representatives unanimously passed a bill built on an amateur’s circle-squaring “proof” whose arithmetic implied, among other things, that π was 3.2. Only a visiting professor’s intervention stopped it in the Senate; the full story is in our piece on the Indiana Pi Bill. And if you want to find π honestly without any polygon at all, you can do it by dropping matchsticks on a floor, the trick behind Buffon’s needle.
A city where π really is 4
Now for the twist that makes the staircase more than a mistake. There is a perfectly good geometry in which the picture’s conclusion is true.
Imagine a city laid out on a perfect grid, like much of Manhattan. A taxi cannot drive through buildings; it can only go along the streets, east–west or north–south. In this city the sensible way to measure the distance between two corners is not the straight line but the number of blocks the taxi drives: the distance east plus the distance north. From one corner to another four blocks east and three north, every route that never backtracks is seven blocks long, however it zigzags. The straight line, five blocks by Pythagoras, is irrelevant to anyone who has to pay the fare.
Gold, blue and black all drive 4 blocks east and 3 north. The straight red line is 5 blocks long, but no taxi can take it.
All corners exactly 4 blocks from the centre. Measured in blocks, its rim is 32 and its width is 8, so its π is 32 ÷ 8 = 4. Exactly.
This way of measuring is called taxicab geometry, or the Manhattan distance. Its mathematics goes back to the German mathematician Hermann Minkowski, who around the turn of the twentieth century studied a whole family of ways to measure distance, of which the ordinary straight line and the taxicab grid are two members. The name came later. The Austrian-American mathematician Karl Menger called it “taxicab geometry” in a booklet written for a geometry exhibition at the Museum of Science and Industry in Chicago in 1952, and Eugene Krause’s little book Taxicab Geometry, published in 1975, made it a favourite of maths classrooms.
In taxicab geometry a circle, the set of points at a fixed distance from a centre, is not round. It is a square standing on one corner, a diamond. Measure its rim with the taxi’s own ruler and divide by its width, and you get exactly 4. Taxicab π is 4.

The staircase picture is, in fact, a correct proof of a taxicab theorem. Measured in blocks, every staircase has length 4, and so does the round circle itself: a taxi driving around a circular park, hugging its edge as closely as the grid allows, still drives exactly 4 diameters. Taxicab length cannot see the difference between a curve and a staircase that follows it, because taxicab length only ever counts horizontal and vertical motion. The picture’s only mistake is to switch rulers halfway through: it measures the staircases with the taxi’s ruler, which is the only one under which they all equal 4, and then reads off the answer as if it had been measured with string.
Seen this way, the 4/π from the dial lab has a lovely meaning. It is the exchange rate between the two geometries: on average, around a circle, a taxi has to drive 4/π ≈ 1.27 times the crow-flies distance. Urban planners and delivery companies know this number in a rougher form, as the “detour index” of a street grid.
The same trap, one dimension up
If you think only students fall for this, consider what happened to surface area. In the middle of the nineteenth century, the natural way to define the area of a curved surface was to copy the definition of length: cover the surface with tiny flat triangles whose corners lie on it, add up their areas, and let the triangles shrink. The French mathematician Joseph-Alfred Serret put essentially this definition into his respected calculus textbook in 1868. It looked like the obvious generalisation of Archimedes’s polygons.
In 1880 the German mathematician Hermann Amandus Schwarz described, in a letter to the Italian mathematician Angelo Genocchi, why it fails. Take an ordinary cylinder. Slice it into thin rings, put a ring of points around each slice, and twist every other ring by half a step. Join the points into triangles. The result looks like a folded paper lantern, and every one of its corners lies exactly on the cylinder. As you add more points around each ring and more rings up the height, the lantern hugs the cylinder as closely as you like. But if you add rings much faster than points, the triangles tilt until they lie almost flat, crumpled like an accordion, and the total area of the lantern grows without limit. A few years later, in 1882, the young Giuseppe Peano found the same flaw independently while teaching from Serret’s book, only to learn that Schwarz had got there first.
- Triangles
- 48
- Area ÷ 2π
- 1.083
Every corner lies on the cylinder, and as the triangles shrink the lantern hugs the cylinder as tightly as you like. Yet stack the rings faster than you add sides and the triangles tilt flatter and flatter, like a paper lantern folded shut, and the area runs off to infinity.

Schwarz’s lantern is the staircase paradox for grown-ups. With curves, corners on the curve are enough to make the chords line up, which is why Archimedes and Jordan were safe. With surfaces even that safeguard fails, and a correct definition of area had to wait for the work of Henri Lebesgue and others in the early twentieth century. The lesson is the same in both dimensions. Being near is cheap. Pointing the right way is what counts.
The staircase in everyday life
Once you know the staircase, you start seeing it everywhere. Every circle on the screen you are reading this on is a staircase of square pixels. Count the pixel edges around its rim and you get the taxicab answer, about four diameters, not π. Graphics software has to be careful about this: if you estimate the length of a curve in an image by counting the boundary edges of its pixels, you overestimate it by up to 41 per cent depending on its direction, and image analysis programs use corrected formulas that weight diagonal steps differently to undo exactly the bias in our dial lab.
Robots that move on a grid, from warehouse carts to the bots in strategy games, face the same tax. A pathfinding program that only allows four directions will plan routes that are 27 per cent longer, on average, than a program that allows any direction, and it will produce paths that look like staircases. Many such programs allow diagonal moves as well, which lowers the average detour, and then smooth the final path so the robot does not zigzag.
The most famous relative of the staircase lives on the coast. In the 1950s the English mathematician Lewis Fry Richardson noticed that published lengths of the same borders and coastlines disagreed wildly, and that the disagreement depended on the length of the ruler used to measure them: the shorter the ruler, the longer the coast. In 1967 Benoit Mandelbrot turned the observation into a famous paper in Science, “How Long Is the Coast of Britain?”. A coastline is wiggly at every scale, so every finer ruler finds new detours, and the measured length grows without settling. The staircase has a fixed amount of wiggle at every scale and its length stays stuck at 4; a coastline has more wiggle the closer you look, and its length has no fixed value at all.
The staircase has the same wiggle at every scale, so its length freezes at 4. A coast has new wiggles at every scale, so each shorter ruler finds more shoreline.
What the picture teaches
The staircase paradox endures because it exploits a habit that is usually a good one. We trust pictures. If two shapes look the same at every magnification we can manage, we assume they share every property we care about. Most of the time this works: area, position, the rough outline, the place where the shape sits on the page. The staircase shows the habit’s limit. Some properties of a shape, length most of all, depend not only on where it is but on which way it is going, and those can stay stubbornly different even when the eye has given up telling the shapes apart.
That is why mathematicians insist on proofs even for things that look obvious, and why they are so careful about the word “limit”. A limit is not a blur or a photograph taken from far away. It is a precise promise about one particular quantity, and a promise about where a shape is says nothing about how long it is. The same care separates the honest polygons of Archimedes from the staircase, the inscribed chords of Jordan from Serret’s triangles, and a correct estimate of π from a bill in the Indiana legislature.
So the next time the picture comes round, you can answer the dare in a sentence. The staircases converge to the circle in position, not in direction; length depends on direction; and every tiny step still charges its detour, so the staircase stays 4/π times too long forever. π is safe. It was only ever 4 in a city where you are not allowed to cut across the park.
Frequently asked
What is the staircase paradox?
The staircase paradox is a picture that seems to prove π = 4. Draw a square around a circle of diameter 1, then keep folding its corners inward until the jagged outline hugs the circle. Every outline has perimeter 4, and the outlines close in on the circle, so the circle's circumference, π, appears to be 4.
Why is the staircase proof that π = 4 wrong?
Because a shape getting closer to a curve does not make its length get closer to the curve's length. The staircase converges to the circle in position and in area, but its tiny steps always run horizontally and vertically while the circle runs at every angle in between. Each step is a detour, and the detours never shrink in proportion, so the staircase stays 4/π, about 1.27, times longer than the circle.
Does the area of the staircase approach the area of the circle?
Yes. The area between the staircase and the circle shrinks to zero, so the staircase's area does tend to π/4, the area of a circle of diameter 1. Area behaves well under this kind of limit; length does not, which is exactly what the paradox exposes.
How do you correctly approximate π with polygons?
Use polygons whose corners lie on the circle and whose edges point along it, as Archimedes did with 96-sided polygons around 250 BC. As the number of sides grows, each edge lines up with the arc it replaces, so the perimeters really do approach π. Archimedes proved that π lies between 3 10/71 and 3 1/7 this way.
Is π equal to 4 in taxicab geometry?
Yes. In taxicab geometry distance is measured along a grid, like blocks in Manhattan, and a circle is a square standing on its corner. Measured in that same grid distance, the ratio of its perimeter to its diameter is exactly 4. The staircase picture is in fact a correct proof of that taxicab fact.
Sources and further reading
- Fermat’s Library, post on X, “This is called the staircase paradox, or why π ≠ 4”, 31 August 2018.
- Archimedes, Measurement of a Circle, in T. L. Heath (ed.), The Works of Archimedes, Cambridge University Press, 1897.
- Schwarz’s Lantern and Taxicab Metric, Wolfram MathWorld.
- Eugene F. Krause, Taxicab Geometry: An Adventure in Non-Euclidean Geometry, Addison-Wesley, 1975; Dover reprint, 1986.
- Benoit Mandelbrot, “How Long Is the Coast of Britain? Statistical Self-Similarity and Fractional Dimension”, Science 156 (1967), 636–638.
- Petr Beckmann, A History of π, St. Martin’s Press, 1971, for Liu Hui, Zu Chongzhi, al-Kāshī and van Ceulen.
- Frank Morgan, Geometric Measure Theory: A Beginner’s Guide, Academic Press, for why length is only lower semicontinuous.





