Mathematics
8 min read

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.

U
Use All Tools Mathematics Desk
Geometry & STEM Education Specialists
Live Interactive Utility
Try Unit & Length Converter Online
Free, instant calculations running 100% in your browser.
Convert Triangle Units (cm, m, in, ft)

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:

  1. You know both legs (`a` and `b`) forming the 90° corner → Use c = √(a² + b²).
  2. You know one leg (`a`) and the hypotenuse (`c`) → Use b = √(c² - a²).
  3. 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:

  1. Square side a (a × a) and square side b (b × b).
  2. Add the two squared values together.
  3. 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.

  1. 6² = 36 and 8² = 64
  2. 36 + 64 = 100
  3. c = √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)?

  1. 24² = 576 and 13.5² = 182.25
  2. 576 + 182.25 = 758.25
  3. c = √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 aLeg bHypotenuse cCommon Use Case
345Carpenter's 3-4-5 squaring rule
51213Roof pitches and ladder setups
6810Scaled 3-4-5 geometry problems
72425Surveying and trigonometry tests
81517Coordinate distance problems
91215Architecture & 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 is 10 × √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

  1. Forgetting the Square Root: Writing c = 3² + 4² = 25 instead of √25 = 5. Always check that your answer is shorter than a + b (by the Triangle Inequality Theorem, c < a + b).
  2. 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.
  3. Adding When You Should Subtract: Only add squares when solving for the hypotenuse (c). If you already know c and 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**.

Run Computations Client-Side
Ready to use the Unit & Length Converter?
No sign-up, no server storage, and zero tracking cookies. Test your figures right now.

Frequently Asked Questions

For a right-angled triangle where the two given sides are the legs (a and b) forming the 90° angle, the hypotenuse c is c = √(a² + b²). Square both sides, add the results together, and take the square root.
Related Search Topics & Keywords
#how to find the hypotenuse of a triangle with two sides
#find hypotenuse with two sides
#hypotenuse formula right triangle
#pythagorean theorem calculate c
#how to calculate hypotenuse from 2 sides
#law of cosines third side triangle
#3 4 5 triangle hypotenuse
U
Use All Tools Mathematics Desk
Geometry & STEM Education Specialists

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 Guide

Demystify computer arithmetic: understand positional radix systems, how transistors translate voltage into 1s and 0s, and why developers love hexadecimal color codes.

Read Guide

Every 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