Pythagorean Theorem Calculator
Solve for any missing side of a right triangle using a² + b² = c². Enter any two sides and find the third with full step-by-step working.
c² = a² + b²c² = 3² + 4² = 9 + 16 = 25c = √25 = 5Builders Have Used This Theorem for 4,000 Years Without Calling It That
Long before Pythagoras, ancient Egyptian rope-stretchers used knotted ropes with 12 equally-spaced knots to form right angles on building sites. Pull the rope into a 3-4-5 triangle and the corner between the 3-unit and 4-unit sides is exactly 90°. Construction workers still use this trick today — measure 3 feet along one wall, 4 feet along the adjacent wall, and if the diagonal is exactly 5 feet, the corner is square. The Pythagorean theorem a² + b² = c² was a practical tool for thousands of years before anyone thought to write a formal proof.
This free Pythagorean theorem calculator solves for any of the three sides — hypotenuse or either leg — given the other two, with a 3-step solution showing all intermediate values. Choose what you want to find, enter the two known values, and get the answer instantly alongside a reference table of classic Pythagorean triples.
Every Distance Formula in Mathematics Is This Theorem in Disguise
The straight-line distance between two points (x₁,y₁) and (x₂,y₂) is d = √((x₂−x₁)² + (y₂−y₁)²). That is a² + b² = c² with a = Δx and b = Δy. Every GPS distance calculation, every pixel distance in image processing, every collision detection sphere-check in a game engine, every nearest-neighbour search in machine learning — all of them square the differences, sum them, and take the square root. In 3D: d = √(Δx² + Δy² + Δz²). The theorem scales to any number of dimensions, which is why it is the definition of distance in all of mathematics and data science.
In physics, the resultant of two perpendicular force components is F = √(Fx² + Fy²). Voltage in an AC circuit with resistive and reactive components is V = √(VR² + VX²). The magnitude of any 2D vector — velocity, acceleration, displacement — is its Pythagorean length. The theorem does not just describe triangles; it describes the geometry of any two quantities that are at right angles to each other, which turns out to be most of physics.
Pythagorean Triples — When All Three Sides Are Whole Numbers
A Pythagorean triple is a set of three positive integers (a, b, c) satisfying a² + b² = c² exactly. The simplest is (3, 4, 5): 9 + 16 = 25. These are useful in construction because they eliminate rounding errors — a 3-4-5 corner check gives a provably exact right angle, not an approximation. Primitive triples (where GCD of all three = 1) can be generated by the formula a = m²−n², b = 2mn, c = m²+n² for m > n > 0. For m=2, n=1: (3,4,5). For m=3, n=2: (5,12,13). Every non-primitive triple is a multiple of a primitive: (6,8,10) = 2×(3,4,5).
There are infinitely many Pythagorean triples — they never run out no matter how large the numbers grow. Whether it is a roofer checking a right-angle, a programmer computing screen distances, or a physicist resolving force vectors, the theorem is the same calculation. For triangles that are not right-angled — where you have three sides and need angles, or two sides and a non-right angle — the Triangle Calculator handles all configurations using the Law of Cosines and Law of Sines. To verify that GCD(3,4,5) = 1 confirming it is a primitive triple, use the LCM & GCD Calculator. All calculations here run entirely in your browser.
✓Verified by ToollyX Team · Last updated June 2026