Enter any two sides of the right triangle to calculate the missing one.
The Pythagorean Theorem Explained
In a right triangle, a² + b² = c², so the hypotenuse is c = √(a² + b²). Legs of 3 and 4 give a hypotenuse of 5, and a missing leg is √(c² − b²). Enter any two sides above and the calculator finds the third, plus both acute angles, the area and the perimeter, with every step shown.
In any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². The hypotenuse (c) is always the longest side and always sits opposite the 90° angle.
Known to Babylonian mathematicians nearly 4,000 years ago, the theorem is named after Pythagoras (about 570 to 495 BC), who is traditionally credited with its first formal proof. It is arguably the most used theorem in all of mathematics.
Finding the Hypotenuse
Finding a Leg
Pythagorean Triples
Real-World Uses
All Primitive Pythagorean Triples Up to 100
A primitive triple has no common factor. There are exactly 16 with a hypotenuse of 100 or less. Each comes from Euclid’s formula a = m² − n², b = 2mn, c = m² + n² with the m and n shown. The angle column is the smallest angle of the triangle.
| Sides a, b, c | m, n | Smallest angle |
|---|---|---|
| 3, 4, 5 | 2, 1 | 36.87° |
| 5, 12, 13 | 3, 2 | 22.62° |
| 8, 15, 17 | 4, 1 | 28.07° |
| 7, 24, 25 | 4, 3 | 16.26° |
| 20, 21, 29 | 5, 2 | 43.60° |
| 12, 35, 37 | 6, 1 | 18.92° |
| 9, 40, 41 | 5, 4 | 12.68° |
| 28, 45, 53 | 7, 2 | 31.89° |
| 11, 60, 61 | 6, 5 | 10.39° |
| 16, 63, 65 | 8, 1 | 14.25° |
| 33, 56, 65 | 7, 4 | 30.51° |
| 48, 55, 73 | 8, 3 | 41.11° |
| 13, 84, 85 | 7, 6 | 8.80° |
| 36, 77, 85 | 9, 2 | 25.06° |
| 39, 80, 89 | 8, 5 | 25.99° |
| 65, 72, 97 | 9, 4 | 42.08° |
Multiply any row by a whole number to get another triple: 3, 4, 5 becomes 6, 8, 10 or 30, 40, 50. The angles stay the same.
Special Right Triangles
| Triangle | Side ratio | Example |
|---|---|---|
| 45°, 45°, 90° | 1 : 1 : √2 | legs 5 and 5, hypotenuse 7.07 |
| 30°, 60°, 90° | 1 : √3 : 2 | legs 5 and 8.66, hypotenuse 10 |
| 3, 4, 5 | 3 : 4 : 5 | angles 36.87° and 53.13° |
The diagonal of any square is its side times √2 (1.4142). A square with 10 ft sides has a 14.14 ft diagonal.
Worked Examples
How high a ladder reaches
A 12 ft ladder with its foot 3 ft from the wall reaches √(12² − 3²) = √135 = 11.62 ft up the wall. Setting the foot out one quarter of the ladder’s length is the OSHA rule of thumb for a safe angle, about 76°.
TV screen width and height
A 65 inch TV is measured on the diagonal. With a 16:9 screen, width = 65 × 16 ÷ √(16² + 9²) = 56.65 in and height = 31.87 in.
Room diagonal, flat and in 3D
A 12 by 16 ft floor has a corner to corner diagonal of √(144 + 256) = 20 ft. With an 8 ft ceiling, the longest straight line from a floor corner to the opposite ceiling corner is √(12² + 16² + 8²) = 21.54 ft.
Baseball diamond
The bases are 90 ft apart on a square, so the throw from home plate to second base is 90 × √2 = 127.28 ft.
Common Mistakes
- Adding before squaring. √(3 + 4)² is 7, not 5. Square each side first, then add.
- Adding when you should subtract. To find a leg, subtract: a² = c² − b².
- Putting the longest side in the wrong place. The hypotenuse is always opposite the right angle and always the longest side.
- Using it on a triangle without a 90° angle. For other triangles use the Law of Cosines in the triangle calculator.
- Mixed units. Convert feet and inches to one unit before squaring.