How to Find the Hypotenuse of a Triangle with Two Sides (Formulas & Examples)
Step-by-step guide to finding the hypotenuse of a right triangle from two sides using c = √(a² + b²), plus how to solve when given one leg and the hypotenuse or a non-right triangle.
Finding the Hypotenuse When You Know Two Sides
If you know the lengths of two sides of a right-angled triangle, finding the hypotenuse (the longest side, directly opposite the 90° angle) takes just three arithmetic steps using the Pythagorean Theorem.
Before calculating, confirm which two sides you have:
- You know both legs (`a` and `b`) forming the 90° corner → Use
c = √(a² + b²). - You know one leg (`a`) and the hypotenuse (`c`) → Use
b = √(c² - a²). - The triangle is NOT a right triangle → You also need the angle between the two sides and must use the Law of Cosines.
Let us walk through every case with clear worked examples.
1. Standard Case: Finding the Hypotenuse from Two Legs
In any right triangle, the two shorter perpendicular sides are called legs (a and b), and the diagonal side opposite the 90° right angle is the hypotenuse (c).
Formula:
a² + b² = c² c = √(a² + b²)
3-Step Method:
- Square side
a(a × a) and square sideb(b × b). - Add the two squared values together.
- Take the square root of that sum.
Worked Example 1: Whole Number Answer (Pythagorean Triple)
Suppose a right triangle has legs a = 6 cm and b = 8 cm.
6² = 36and8² = 6436 + 64 = 100c = √100 = 10 cm
Worked Example 2: Decimal Answer (TV Screen Diagonal)
A monitor is 24 inches wide and 13.5 inches tall. What is its diagonal screen size (hypotenuse)?
24² = 576and13.5² = 182.25576 + 182.25 = 758.25c = √758.25 ≈ 27.54 inches(sold as a 27.5-inch or 28-inch display).
2. Quick Reference Table of Common Right Triangles
Memorizing these exact Pythagorean Triples lets you spot the hypotenuse instantly on exams and construction sites:
Leg a | Leg b | Hypotenuse c | Common Use Case |
|---|---|---|---|
| 3 | 4 | 5 | Carpenter's 3-4-5 squaring rule |
| 5 | 12 | 13 | Roof pitches and ladder setups |
| 6 | 8 | 10 | Scaled 3-4-5 geometry problems |
| 7 | 24 | 25 | Surveying and trigonometry tests |
| 8 | 15 | 17 | Coordinate distance problems |
| 9 | 12 | 15 | Architecture & framing layouts |
3. Special Right Triangles (Shortcuts When Legs Have Patterns)
Two special right triangles appear constantly in geometry and standardized tests:
A. 45°–45°–90° Isosceles Right Triangle (Both Legs Equal)
If both legs have the exact same length a:
Hypotenuse c = a × √2 (≈ a × 1.4142)
- Example: A square tile is
10 cm × 10 cm. Its diagonal hypotenuse is10 × √2 ≈ 14.14 cm.
B. 30°–60°–90° Triangle
If the shortest leg (opposite 30°) has length a:
- Longer leg (opposite 60°) =
a × √3 - Hypotenuse =
2 × a(simply double the shortest leg!).
4. What If the Triangle Is NOT a Right Triangle? (Law of Cosines)
A triangle without a 90° angle does not technically have a hypotenuse—only a longest side. Knowing only two side lengths (a and b) is not enough to determine the third side c, because the angle between them could be narrow (making c short) or wide (making c long).
If you know two sides (a, b) and the angle `γ` between them, use the Law of Cosines:
c = √(a² + b² - 2 × a × b × cos(γ))
Notice what happens when γ = 90°: since cos(90°) = 0, the entire 2ab·cos(γ) term vanishes, leaving the Pythagorean formula c = √(a² + b²)!
5. Common Mistakes to Avoid
- Forgetting the Square Root: Writing
c = 3² + 4² = 25instead of√25 = 5. Always check that your answer is shorter thana + b(by the Triangle Inequality Theorem,c < a + b). - Mixing Units: Make sure both sides use the same unit (convert feet and inches, or meters and centimeters, before squaring). Use our **Unit Converter** to convert measurements cleanly.
- Adding When You Should Subtract: Only add squares when solving for the hypotenuse (
c). If you already knowcand want a missing leg, subtract:a = √(c² - b²).
For angle calculations using inverse tangent (tan⁻¹) and 3D coordinate distance formulas, read our full **Pythagoras Equation Solver Guide**.
Frequently Asked Questions
Published by Use All Tools's engineering and research desk. All calculations, privacy guarantees, and algorithms referenced in this article are open-source and run client-side in the browser.
Recommended Further Reading
Calculate hypotenuse lengths, missing triangle legs, and angles with our Pythagoras equation solver guide. Explore the a² + b² = c² theorem, 3-4-5 rule, and inverse tangent formulas.
Read GuideDemystify computer arithmetic: understand positional radix systems, how transistors translate voltage into 1s and 0s, and why developers love hexadecimal color codes.
Read GuideEvery time you properly shuffle a standard 52-card deck, the resulting card arrangement has almost certainly never existed before in the entire history of the universe.
Read Guide