terican

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.

FreeInstantNo signupOpen source

Inputs

Missing Side Length

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Missing Side Lengthunits

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

Frequently asked questions

What formula does this calculator use to find the missing side of a right triangle?
The calculator applies the Pythagorean theorem in two forms: c = √(a² + b²) to solve for the hypotenuse when both legs are known, and a = √(c² − b²) to solve for a missing leg when the hypotenuse and one leg are known. The theorem, proven rigorously by Euclid around 300 BCE, states that in any right triangle the square of the hypotenuse equals the sum of the squares of the two legs, making it the definitive tool for this calculation.
How do I find the hypotenuse of a right triangle with legs of 5 and 12?
Enter 5 as leg a and 12 as leg b, then select the mode for finding the hypotenuse. The calculator computes c = √(5² + 12²) = √(25 + 144) = √169 = 13. This is the well-known 5-12-13 Pythagorean triple — three integers that satisfy the theorem exactly with no rounding whatsoever. Recognizing common triples like this one provides a fast sanity check on any result the calculator returns.
Can this calculator find a missing leg when only the hypotenuse and one leg are known?
Yes. Select the find-a-missing-leg mode, enter the hypotenuse length in the first field and the known leg length in the second field. The calculator solves using a = √(c² − b²). For example, a hypotenuse of 10 and a known leg of 6 yields the missing leg: √(100 − 36) = √64 = 8 units. This mode is especially useful in construction, navigation, and physics problems where the longest side is the measurement taken first.
What is a Pythagorean triple and why does it matter for right triangle calculations?
A Pythagorean triple is a set of three positive integers (a, b, c) satisfying a² + b² = c² exactly, producing no decimal remainder. Common examples 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 from 3-4-5. When calculator inputs form a Pythagorean triple, the output is an exact integer, offering immediate confirmation that the result contains no accumulated rounding error.
What is the difference between the hypotenuse and the legs of a right triangle?
A right triangle has exactly three sides: two legs and one hypotenuse. The legs are the two sides that meet at the 90° right angle and can take any positive lengths relative to each other. The hypotenuse is always the side directly opposite the right angle and is always the longest side in the triangle. Before entering values, identify the hypotenuse as the side that does not touch the right-angle vertex — this distinction determines which calculator mode to select.
Does the Pythagorean theorem apply to all triangles, or only right triangles?
The Pythagorean theorem applies exclusively to right triangles — those containing exactly one 90° interior angle. For non-right triangles, the Law of Cosines extends the relationship: c² = a² + b² − 2ab·cos(C), where C is the included angle between sides a and b. When angle C equals 90°, cos(90°) equals zero, the correction term vanishes, and the Law of Cosines reduces exactly to the Pythagorean theorem — confirming that right triangles are simply the special case. This calculator is designed for right triangles only.