We use the Pythagorean theorem because it’s the simplest reliable way to calculate distance, whether that’s the length of a roof beam, the space between two GPS satellites, or how similar two data points are in a machine learning algorithm. The formula a² + b² = c² connects the two shorter sides of a right triangle to its longest side, and right triangles show up almost everywhere: in construction layouts, coordinate grids, physics problems, and the geometry running inside your phone. That’s why a relationship first recorded on clay tablets nearly 4,000 years ago still gets daily use in fields its inventors never imagined.
It Turns Any Two Measurements Into a Distance
At its core, the Pythagorean theorem solves one problem: if you know two sides of a right triangle, you can find the third. That sounds narrow, but it isn’t. Any time you have a horizontal measurement and a vertical measurement, connecting them with a straight line creates a right triangle. The theorem tells you how long that straight line is.
This is exactly how the distance formula works on a coordinate grid. To find the shortest path between two points, you treat the horizontal gap and vertical gap as the two legs of a right triangle. The distance between them is the square root of those two gaps squared and added together. Every distance calculation in algebra, from plotting lines on a graph to computing the length of a diagonal, traces back to this single geometric relationship.
Construction and the 3-4-5 Rule
Carpenters and builders use the Pythagorean theorem constantly, often without writing a single equation. The technique is called the 3-4-5 method: measure 3 feet along one edge, 4 feet along the adjacent edge, and if the diagonal between those endpoints is exactly 5 feet, the corner is a perfect 90-degree angle. Since 3² + 4² = 5² (9 + 16 = 25), the math guarantees a right angle every time.
For larger structures like house foundations, builders scale the numbers up. A 6-8-10 triangle, a 12-16-20 triangle, or a 15-20-25 triangle all work the same way, just with longer tape measures. This is one of the oldest practical applications of the theorem. Babylonian clay tablets from between 1900 and 1600 BC show builders and scribes solving exactly these kinds of problems, calculating the breadth of a rectangle from its length and diagonal, or finding the radius of a circle passing through the vertices of a triangle.
GPS Relies on It to Find You
Your phone’s GPS chip determines your location by measuring how far you are from multiple satellites. The core equation behind that measurement is a three-dimensional version of the Pythagorean theorem. The distance between you and a satellite is calculated as the square root of the squared differences in your x, y, and z coordinates. With signals from four or more satellites, the system solves for the three unknowns of your position (plus a correction for clock error) and pins you on the map.
Without the theorem providing a clean, exact way to convert coordinate differences into distances, satellite navigation wouldn’t work. The same principle applies to any system that needs to locate something in space: radar, sonar, cell tower triangulation.
Screen Sizes Are Diagonal Measurements
When a TV is advertised as 48 inches, that number is the diagonal of the screen, not the width. To figure out the actual width and height, you need the aspect ratio and the Pythagorean theorem. A 48-inch HD television with a 16:9 aspect ratio is roughly 42 inches wide and 24 inches tall. Older TVs with a 4:3 ratio follow the proportions of a 3-4-5 triangle, so a 15-inch screen in that format is 12 inches wide and 9 inches tall. If you’ve ever been surprised that a TV looked smaller than expected after measuring your wall, this is why.
Physics Uses It for Forces and Velocities
Forces and velocities have both a size and a direction, which makes them vectors. In physics, when two forces act at right angles to each other, finding the combined result means treating them as the two legs of a right triangle. The magnitude of the combined force is the hypotenuse. If a boat is motoring east at 30 km/h while a current pushes it north at 40 km/h, its actual speed over the ground is the square root of 30² + 40², which is 50 km/h. Physicists use this constantly to break complicated motion into horizontal and vertical components, solve each one separately, and then recombine them with the Pythagorean theorem.
Machine Learning Measures Similarity With It
One of the less obvious but most widespread modern uses of the theorem is in data science. When a machine learning algorithm needs to decide how similar two things are, it often treats each characteristic as a dimension and calculates the straight-line distance between them. This is called Euclidean distance, and its formula is a direct generalization of a² + b² = c² extended to as many dimensions as needed.
Recommendation engines, spam filters, image recognition systems, and medical diagnostic tools all depend on this. A common algorithm called K-Nearest Neighbors classifies a new data point by finding the existing data points closest to it, measured by Euclidean distance, and assigning it the most common label among those neighbors. Clustering algorithms like K-Means group data by minimizing the squared distances between points and their cluster centers. In both cases, the Pythagorean theorem is running underneath every calculation, thousands or millions of times per second.
Video Games Use It for Collision Detection
In game development, the theorem determines when objects collide. The simplest version works like this: if two circular objects (or spheres in 3D) are on screen, the game engine continuously calculates the distance between their centers using the Pythagorean theorem. If that distance is less than the sum of their radii, they’re overlapping, and the game triggers a collision. This runs every frame, often 60 or more times per second, for every pair of objects that could potentially interact. More complex collision systems still use distance calculations as a first pass to quickly rule out objects that are too far apart to touch.
A 4,000-Year-Old Tool That Keeps Scaling
The Babylonians used the theorem to compute diagonals of squares, solve for unknown sides of rectangles, and generate tables of integer triples (sets of whole numbers that satisfy a² + b² = c²). A tablet held at Yale University shows a square with its diagonal calculated using an approximation of the square root of 2 that’s accurate to several decimal places. The tablet known as Plimpton 322, now at Columbia University, contains an organized list of Pythagorean triples that scholars believe served as a reference for practical computation.
What makes the theorem so durable is its generality. It doesn’t care whether the right triangle is drawn in sand, plotted on a graph, embedded in a satellite equation, or stretched across a hundred-dimensional dataset. The relationship between the sides holds every time, which is why it moved seamlessly from ancient surveying to modern artificial intelligence. Few mathematical ideas have remained this consistently useful for this long.

