Last verified · v1.0
Calculator · math
Pythagorean Theorem Triangle Calculator
Calculate any side of a right triangle using the Pythagorean theorem. Enter two known sides to instantly find the hypotenuse or a missing leg.
Inputs
Unknown Side Length
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is the Pythagorean Theorem?
The Pythagorean theorem is one of the most fundamental relationships in all of geometry, establishing that in every right triangle the square of the hypotenuse equals the sum of the squares of the two shorter sides. Attributed to the ancient Greek mathematician Pythagoras of Samos (c. 570–495 BC), the theorem has been independently proved in over 370 documented ways — more than any other theorem in mathematics. A right triangle is defined by the presence of exactly one 90° interior angle.
The Core Formula
The standard algebraic expression of the Pythagorean theorem is:
c² = a² + b²
Where c is the hypotenuse — always the side opposite the right angle and always the longest side — and a and b are the two shorter sides called legs. Rearranging this equation allows calculation of any unknown side when the other two are known:
- To find the hypotenuse: c = √(a² + b²)
- To find leg a: a = √(c² − b²)
- To find leg b: b = √(c² − a²)
Geometric Interpretation
Beyond the algebraic formula, the Pythagorean theorem has a profound geometric meaning: the area of the square constructed on the hypotenuse equals the combined area of the squares constructed on the two legs. This visual interpretation, known as the geometric proof, demonstrates that the relationship is not merely numerical but reflects a fundamental property of space and right angles themselves. Ancient mathematicians used this geometric understanding to develop elegant visual proofs long before modern algebraic notation existed.
Understanding the Calculator Variables
Solve For
This setting determines which side is unknown. Select Hypotenuse when both legs are known. Select Leg when the hypotenuse and one leg are known and the second leg must be found.
Side 1
When solving for the hypotenuse, Side 1 is leg a — one of the two shorter sides of the triangle. When solving for a missing leg, Side 1 must be the hypotenuse c, which is always the longest side.
Side 2
When solving for the hypotenuse, Side 2 is leg b. When solving for a missing leg, Side 2 is the known leg and must be shorter in length than the hypotenuse entered in Side 1.
Worked Example: Solving for the Hypotenuse
A right triangle has legs of a = 3 and b = 4. To find the hypotenuse:
- c² = 3² + 4² = 9 + 16 = 25
- c = √25 = 5
This is the famous 3-4-5 Pythagorean triple — the integer right triangle most widely used in construction to verify square corners without specialized instruments.
Worked Example: Solving for a Missing Leg
A right triangle has a hypotenuse of c = 13 and one known leg of b = 5. To find the missing leg:
- a² = 13² − 5² = 169 − 25 = 144
- a = √144 = 12
This yields the 5-12-13 Pythagorean triple, another integer solution regularly used in engineering and surveying contexts.
Real-World Applications
The Pythagorean theorem underpins calculations across many professional disciplines and everyday situations:
- Construction: Builders apply the 3-4-5 rule to confirm right angles in foundations, wall framing, and tile layouts.
- Navigation: The theorem forms the basis of the coordinate-plane distance formula, enabling straight-line distance calculations between two geographic points.
- Screen measurement: Television and monitor diagonal measurements represent the hypotenuse of the screen width and height.
- Structural engineering: Engineers compute brace lengths and load paths in trusses and steel frames.
- Surveying: Land surveyors determine horizontal distances across sloped or uneven terrain.
- Photography: The diagonal field of view in camera sensors relies on Pythagorean calculations for determining lens requirements and coverage areas.
Important Limitations
The Pythagorean theorem is valid only for right triangles. For oblique triangles — those with no 90° angle — the Law of Cosines applies instead: c² = a² + b² − 2ab·cos(C). The Law of Cosines reduces to the Pythagorean theorem when C = 90°, because cos(90°) = 0, eliminating the correction term entirely.
Sources and Further Reading
For a foundational introduction including visual proofs, visit Khan Academy's Intro to the Pythagorean Theorem. For a rigorous geometric treatment of right-triangle properties and derivations, see the reference at Clark University's Right Triangles page. Applied examples and triangle similarity extensions are covered at Maricopa Open Mathematics and practical library guidance is available at CCCUA DIY Maths: The Pythagorean Theorem.
Reference