Last verified · v1.0
Calculator · math
Missing Side Of A Right Triangle Calculator
Calculate the missing side of a right triangle instantly. Enter any two sides to find the hypotenuse or missing leg using the Pythagorean theorem.
Inputs
Missing Side Length
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
Understanding the Pythagorean Theorem
The Pythagorean theorem is one of the most fundamental relationships in geometry, establishing that in any right triangle the square of the hypotenuse equals the sum of the squares of the other two sides. This missing side of a right triangle calculator applies that proven relationship to compute any unknown side the moment two sides are entered.
The Core Formula
The theorem takes two forms depending on which side is unknown:
- Finding the hypotenuse (c): c = √(a² + b²)
- Finding a missing leg (a or b): a = √(c² − b²) or b = √(c² − a²)
Here c is the hypotenuse — the side opposite the right angle and always the longest side — while a and b are the two legs that meet at the 90° corner.
Variable Definitions
- c (hypotenuse): Always opposite the right angle. Computed from c = √(a² + b²) when both legs are known.
- a (leg): One shorter side adjacent to the right angle. Solved from a = √(c² − b²) when the hypotenuse and leg b are known.
- b (leg): The other shorter side adjacent to the right angle. Solved from b = √(c² − a²) when the hypotenuse and leg a are known.
Formula Derivation
Euclid formalized the geometric proof around 300 BCE, but the algebraic form follows directly from rearranging c² = a² + b². Subtracting b² from both sides yields c² − b² = a², and taking the positive square root gives a = √(c² − b²). Because all physical side lengths are positive real numbers, the square root is always defined for any valid right triangle. According to the University of Houston right triangle trigonometry module, the Pythagorean theorem applies exclusively to triangles that contain a 90° interior angle — a constraint this calculator enforces by validating all inputs before computing.
Worked Examples
Example 1 — Finding the hypotenuse: Legs a = 3 and b = 4. c = √(9 + 16) = √25 = 5. The 3-4-5 Pythagorean triple produces an exact integer result with zero rounding error.
Example 2 — Finding a missing leg: Hypotenuse c = 13, known leg b = 5. a = √(169 − 25) = √144 = 12. This is the 5-12-13 Pythagorean triple, another exact integer answer.
Example 3 — Non-integer result: Hypotenuse c = 10, known leg b = 7. a = √(100 − 49) = √51 ≈ 7.14 units. The calculator returns a decimal result rounded to appropriate precision.
Real-World Applications
The theorem powers calculations across many disciplines:
- Construction and carpentry: Builders use the 3-4-5 ratio to square corners, verify right angles in framing, and lay out foundations with precision.
- Navigation: Pilots and marine navigators compute straight-line distances by treating perpendicular coordinate differences as the two legs of a right triangle.
- Screen and display sizing: Diagonal measurements for 16:9 displays derive directly from this formula — a 65-inch television has a width of approximately 56.6 inches and a height of approximately 31.8 inches.
- Surveying: Land surveyors measure across physical obstacles by establishing perpendicular reference lines and computing the direct distance as the hypotenuse.
- Physics: Vector addition of perpendicular force or velocity components uses this same formula, as documented in the UMass Amherst Physics 131 trigonometry appendix.
Pythagorean Triples
A Pythagorean triple is any set of three positive integers (a, b, c) satisfying a² + b² = c² with no remainder. Common triples include 3-4-5, 5-12-13, 8-15-17, and 7-24-25. Multiplying any triple by a positive integer produces another valid triple — for instance, 6-8-10 derived from 3-4-5. When inputs match a Pythagorean triple, this calculator returns an exact integer, providing built-in verification that no rounding has occurred.
Validity Constraints
For a valid right triangle, all side lengths must be positive real numbers, and the hypotenuse must be strictly greater than either individual leg. If a leg value entered exceeds the stated hypotenuse, the radicand becomes negative, indicating an impossible triangle. The calculator identifies and flags such inputs rather than returning an undefined or imaginary result.
Reference