Draw a triangle on a sheet of paper, measure the three corners, and add them up. You get 180 degrees, every time, for every triangle. Schoolbooks treat this as a fact about triangles. It is really a fact about flat surfaces.

Now take three points on a globe and join them with the straightest possible lines. Start at the North Pole, walk down to the equator, turn 90 degrees, walk a quarter of the way round the equator, turn 90 degrees again, and walk back up to the pole. You have walked a triangle with a right angle at every corner. That is 270 degrees. Try it below.

Drag a lime corner to move it. Drag anywhere else to spin the globe.

–Angle sum
–Over 180°
–Share of globe

Straight lines on a curved surface

On a sphere there are no true straight lines, but there is something that plays the same role: a great circle, the path you get by slicing the sphere through its centre. The equator is one. So is every line of longitude. Flying along a great circle is the shortest way between two points, which is why flight paths on a flat map look curved while the plane is, in effect, going straight.

The coloured edges in the demo are great-circle arcs. A triangle on a sphere is three such arcs joining three points. Everything else follows from how the surface bends.

Small triangles behave, big ones do not

Press Tiny triangle. The angle sum is almost exactly 180 degrees. Zoom in on any curved surface and it looks flat, which is why a builder never notices that the ground is round. Now press Huge triangle and watch the sum climb. Drag one corner around and you will find it never drops below 180 degrees. On a sphere, every triangle overshoots.

The overshoot is not random. It is called the spherical excess, and it has a clean rule, proved in the 17th century by the mathematician Albert Girard:

excess (in radians) = area of the triangle ÷ radius²

The bigger the triangle is compared to the sphere, the larger the excess. Check it against the first triangle. Its three right angles sum to 270 degrees, so the excess is 90 degrees, a quarter of a half-turn, or π/2 radians. That triangle covers exactly one eighth of the sphere (the globe splits into eight such corners, like an orange cut into eight wedges). One eighth of the surface area 4πr² is πr²/2, divided by r² gives π/2. It matches.

What this means on Earth

Earth has a radius of about 6,371 km and a surface of roughly 510 million km². The three-right-angle triangle covers one eighth of that, about 64 million km². Its corners are the North Pole and two points on the equator, a quarter of the way round the planet from each other.

At the other end of the scale, a triangle covering about 200 km², roughly a mid-sized city, has an excess of only one arcsecond, a 3,600th of a degree. Surveyors who measure large areas have to account for this, which is why geodesy uses spherical rather than flat trigonometry.

Curvature you can measure from the inside

The deepest idea hiding here is that you can detect curvature without ever leaving the surface. An ant on the sphere does not need to see the globe from space. It only needs to walk a big triangle and add up the corners. If the sum is more than 180 degrees, its world curves like a sphere. If it were less, the surface would curve the other way, like a saddle. Carl Friedrich Gauss developed this idea in the early 19th century, and it became the language of Einstein's general relativity.

So the next time someone says a triangle's angles add up to 180 degrees, ask which surface they have in mind.