SARATH THARAYILST
WRITEUPSCONCEPTSPROJECTSLABABOUT
SARATH THARAYIL
മ
IGARATIPO: AMAZON TRIBUTARIES
/ SYSTEM

Building thoughtful software, writing notes, and shipping experiments across data, AI, and the web.

No cookies, no tracking. Preferences are stored locally in your browser. Anonymous view counts are kept server-side.

Hey, there's a story for the river above/© 2026 Sarath Tharayil/IST --:--:--/--- LOC
/ System--:--:-- IST

Building thoughtful software, writing notes, and shipping experiments across data, AI, and the web.

© 2026 Sarath Tharayil--- LOC

No cookies, no tracking. Preferences stored locally. Anonymous view counts server-side.

Hey, there's a story for the river above→
writeup6 MIN READ
Mathematics
Mathematics2026.5.29

The Staircase That Looks Straight

The Staircase That Looks Straight

SYS.METADATA //MODULE_03
DATE2026.5.29
AUTHORSARATH THARAYIL
READ TIME6 MIN READ
COMPLEXITYCASUAL
ENGAGEMENT--
CATEGORIES
Mathematics
NAVIGATE[ GO BACK ]
2026.5.29 ◆ 6 MIN READ ◆ CASUAL[ GO BACK | <<< ]
Mathematics
SYS.ARTICLE //

Looking straight and being straight are two different things.

This is obvious in life. It is less obvious in mathematics, where we tend to assume that if something looks like it is converging to the right answer, it probably is. The staircase paradox is a polite but firm correction to that assumption.


One Square, Two Numbers

Draw a unit square. Sides of length one. Now draw a diagonal from the bottom-left corner to the top-right corner. By Pythagoras, the length of that diagonal is 12+12=2≈1.4142\sqrt{1^2 + 1^2} = \sqrt{2} \approx 1.414212+12​=2​≈1.4142.

Now forget the diagonal for a moment and draw a staircase instead. Start at the bottom-left corner. Go right by half a unit, then up by half a unit, then right by half a unit, then up by half a unit. You have arrived at the top-right corner using two steps.

How long is that path? One unit to the right, total, plus one unit up, total. The staircase length is 2.

Make the steps smaller. Four steps instead of two. Each step goes right by a quarter, up by a quarter. Still one unit right plus one unit up. Still 2.

Eight steps. Sixteen. A hundred. A million. The length stays at 2, every single time, because each staircase always covers exactly one unit of horizontal distance and one unit of vertical distance.

Segments8
Each segment0.2500
Staircase length2.0000
Diagonal (√2)1.4142
Gap, forever0.5858

Drag the slider. Segments multiply, each one shrinks, the staircase length stays exactly where it started.

The staircase and the diagonal share a starting point and an ending point. They trace the same general route across the square. But one has length 2\sqrt{2}2​ and the other has length 2, and the gap between them, 2−2≈0.5862 - \sqrt{2} \approx 0.5862−2​≈0.586, does not shrink. Not even a little.


It Keeps Looking Like It Is Working

Here is where your brain starts to object.

With a million steps, the staircase is so fine that you cannot see the difference between it and the diagonal. Each individual step is a millionth of the side of the square. The staircase hugs the diagonal so tightly that no screen, no printer, no microscope you own could show you any gap between them.

And yet: the length is 2. Always 2.

This feels wrong in a specific way. We are used to the idea that if a sequence of shapes converges to a target shape, the measurements of those shapes should converge to the measurement of the target. That intuition has served us well for most of our lives. The staircase paradox is here to explain, gently, that this intuition is not a law.


Why Your Eyes Lied

The staircase does converge to the diagonal, in a perfectly precise mathematical sense. Every point on the staircase gets arbitrarily close to the diagonal as the number of steps grows. This kind of convergence, called uniform convergence, is about as well-behaved as convergence gets.

But arc length does not care about that. It cares about how the curve is oriented at every point.

The diagonal moves at a constant 45-degree angle. At every point along it, the direction is northeast.

The staircase never moves at a 45-degree angle. At every single point along it, the direction is either due east or due north. There is no step, at any scale, where the staircase is actually heading northeast. It is always making a right-angle detour to get somewhere a straight line would have reached directly.

The Formal Explanation

Arc length is preserved under a limit only when the derivatives of the curves also converge uniformly. The staircase functions converge uniformly to the diagonal as curves, but their derivatives do not converge at all. At every point, the staircase derivative is either (1, 0) or (0, 1). The diagonal's derivative is constant at (1/2, 1/2)(1/\sqrt{2},\ 1/\sqrt{2})(1/2​, 1/2​). The derivatives never agree, so there is no reason for the lengths to agree, and they do not.

Think of it this way. At every scale, the staircase is making two moves to get somewhere one move would have covered. It goes east, then north, when it needed to go northeast. Making those moves smaller does not make them more efficient. You end up with millions of tiny inefficient detours instead of a few large ones, and the total cost stays exactly the same.

The shape converges. The character of the shape does not.


The π = 4 Cousin

The staircase paradox has a more viral sibling that surfaces online whenever someone wants to upset a mathematician.

Take a circle with diameter 1. Its circumference is π≈3.14159\pi \approx 3.14159π≈3.14159. Now take the square that tightly wraps the circle. Its perimeter is 4. Fold the corners of the square inward until they touch the circle. The perimeter stays at 4, because you are only replacing right-angle bumps with smaller right-angle bumps. Keep folding. Keep folding. Forever.

The jagged boundary converges to the circle. Every point on it gets arbitrarily close to the circle. The perimeter at every stage is exactly 4.

Therefore π=4\pi = 4π=4.

It Does Not Therefore

π\piπ is not 4. The argument breaks for exactly the same reason as the staircase: the right-angle bumps are always horizontal and vertical, never tangent to the circle. The derivatives do not converge to the circle's derivatives. Arc length is not preserved. The gap between 4 and π\piπ is not a rounding error. It is a structural failure.

What keeps this one circulating is that it is genuinely hard to locate the flaw intuitively. You can stare at the folded square for a while and feel unsettled. That unsettled feeling is correct. It means your intuition is bumping up against something it was not built to handle.


What This Is Actually About

The staircase paradox is not a trick and it is not a mistake. It is a theorem about the relationship between convergence and measurement.

The lesson is not that limits are unreliable. Limits are extremely reliable. The lesson is more specific: the convergence of a sequence of objects does not automatically drag every property of those objects along with it. You have to check which kind of convergence you have, and whether that kind is strong enough to preserve the specific measurement you care about.

For arc length, you need the curves' directions to also converge, uniformly, all the way along. The shapes looking the same is not enough. The shapes behaving the same, at every point, is what matters.

“

The map gets closer and closer to the territory. The map's total road length stays exactly where it started.

”

There is something worth sitting with here. A great deal of practical reasoning works by approximation: two things look close enough, so we treat them as interchangeable. Often that works. The staircase paradox is one of the places where it does not, stated with full mathematical precision, in a space small enough to hold in your head.

The staircase is not trying to deceive you. It converges to the diagonal in every way it can while still being made entirely of right angles. It is just that right angles, no matter how small you make them, add up to more than diagonals do.

Looking straight and being straight are two different things. The staircase has always known this. Now you do too.

If this was worth sharing, send it to someone on 𝕏 or LinkedIn. Got a question or a thought? Drop me a message , I read everything. If this was worth your time, .

Sarath Tharayil
/ SEE ALSO
How Google Maps Finds Your Route, and Why a 66-Year-Old Idea Still WinsJun 6, 2026One Sphere, Two Spheres: The Theorem That Broke GeometryMay 10, 2026Position 44: The Card Trick That Does the Maths ItselfMay 9, 2026
/ CONTENTS5 SECTIONS
One Square, Two NumbersIt Keeps Looking Like It Is WorkingWhy Your Eyes LiedThe π = 4 CousinWhat This Is Actually About
ENGAGEMENT--
/ THAT'S A WRAP

Have a great day.

Thanks for reading all the way to the end.