Skip to content

Hypotenuse Calculator (Pythagorean Theorem)

Type the two legs of a right triangle to get the hypotenuse…

Type the two legs of a right triangle to get the hypotenuse, as an exact square root and a decimal, or the hypotenuse and one leg to get the other.

°
°

Angle C

90° (the right angle)

Legs a and b meet at the right angle; c, the hypotenuse, is opposite it.

More optionsNo length unit

Length unit

A label for the answers; the maths is the same in any unit.

ExampleHypotenuse c

8.6023

Exactly √74. From c² = a² + b² = 74.

Type your own values, or drag a corner.

a 5b 7c 8.6A35.5°B54.5°C

Drag the handle on B to change leg a, or on A to change leg b; the right angle stays at C.

Keep fixed while dragging
Every side and angle of the triangle
SideOpposite angle
a = 5givenA = 35.538°
b = 7givenB = 54.462°
c = 8.6023exactly √74C = 90°exactly 90° = π/2 rad

Area 17.5Perimeter 12 + √74 ≈ 20.6023

Area, perimeter, heights and circlesEvery other measurement of this triangle
More measurements of the triangle
Area17.5 square units
Perimeter12 + √74 ≈ 20.6023
Height to side a7
Height to side b5
Height to side c4.0687
Inradius (inscribed circle)1.6988
Circumradius (circle through the corners)4.3012
Angles in radiansA 0.6202, B 0.9505, C 1.5708
How this works: 6 sources,

How this works

Method

Square each leg, add the squares and take the square root: c = √(a² + b²). That is the Pythagorean theorem, true for every right triangle and for no other. Legs of 9 and 12 give √(81 + 144) = √225 = 15. Full method

How it’s tested

2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: any three values, both triangles in the ambiguous case, exact answers, worked steps, a drawing you can drag and seven focused pages.

Every change on What’s new

How we make toolsReport a mistake

How to find the hypotenuse

Square each leg, add the squares and take the square root: c = √(a² + b²). That is the Pythagorean theorem, true for every right triangle and for no other. Legs of 9 and 12 give √(81 + 144) = √225 = 15.

Most pairs of legs don’t come out whole, and then the exact answer is a square root. Legs of 5 and 7 give √74, which is about 8.6023; the calculator also simplifies roots that hide a square, so legs of 4 and 8 give √80 = 4√5. A TV that is 48 inches wide and 27 inches tall has a diagonal of √(2304 + 729) = √3033 ≈ 55.07 inches, which is why it is sold as a 55-inch set.

To go the other way, from the hypotenuse to a missing leg, subtract instead of add: b = √(c² − a²). A 13 ft ladder whose foot is 5 ft from the wall reaches √(169 − 25) = √144 = 12 ft up it. Whole-number solutions like 3-4-5, 5-12-13 and 8-15-17 are called Pythagorean triples.

c = √(a² + b²) · a = √(c² − b²)

Hypotenuse for common pairs of legs

The hypotenuse for each pair of legs, as an exact square root and a decimal; whole-number rows are Pythagorean triples.

The hypotenuse for each pair of legs, as an exact square root and a decimal; whole-number rows are Pythagorean triples.
Legs a and ba² + b²Hypotenuse cDecimal
1 and 12√21.4142
1 and 25√52.2361
2 and 313√133.6056
3 and 42555
4 and 8804√58.9443
5 and 774√748.6023
5 and 121691313
6 and 81001010
7 and 246252525
8 and 152891717
Show all 15 rows
9 and 122251515
9 and 4016814141
12 and 3513693737
20 and 218412929
48 and 2730333√33755.0727

Common questions

Does a² + b² = c² work for any triangle?

Only for right triangles. For any other triangle the law of cosines adds a correction term: c² = a² + b² − 2ab·cos C, which shrinks to Pythagoras when C is 90° because cos 90° = 0.

How do I check whether a triangle is a right triangle?

Square the longest side and compare it with the sum of the squares of the other two. 7, 24, 25: 49 + 576 = 625 = 25², so it is right. If the square of the longest side is bigger, the triangle is obtuse; if smaller, acute.

Why is the answer a square root?

Because c² is what the theorem gives, and most whole numbers are not perfect squares. √74 can’t be simplified (74 = 2 × 37 has no square factor), but √80 = √(16 × 5) = 4√5 can.