📏 Enter known values
Formula Reference
Worked example
If we use the result to calculate Leg A, we should get the value you entered:
The Pythagorean theorem
In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs:
\[ c^2 = a^2 + b^2 \]
So the hypotenuse and each leg are:
\[ \text{Hypotenuse} = \sqrt{a^2 + b^2} \]
\[ a = \sqrt{c^2 - b^2} \]
It only works for right triangles, the ones with a 90° angle. The hypotenuse is the side opposite the right angle and is always the longest side.
How to use the calculator
- Enter two of the three sides.
- Leave empty the one you want to find.
- Press Calculate. To find a leg, the hypotenuse must be longer than the other leg.
Worked examples
1. Legs of 3 and 4
\[ c = \sqrt{3^2 + 4^2} = \sqrt{25} = 5 \]
2. Missing leg with a hypotenuse of 13 and a leg of 5
\[ b = \sqrt{13^2 - 5^2} = \sqrt{144} = 12 \]
3. Diagonal of a TV screen
A screen is 121 cm wide and 68 cm tall. Its diagonal is \( \sqrt{121^2 + 68^2} = \sqrt{19{,}265} \approx 138.8 \) cm, about 55 inches.
4. Checking a right angle on site
Builders mark 3 m along one wall and 4 m along the other. If the distance between the marks is exactly 5 m, the corner is square. On large slabs, 6, 8 and 10 m give a more precise check.
Pythagorean triples
Whole numbers that satisfy the theorem. Any multiple of a triple is also a triple: 6, 8, 10 is 3, 4, 5 times 2.
| Leg a | Leg b | Hypotenuse c |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
| 20 | 21 | 29 |
| 12 | 35 | 37 |
| 9 | 40 | 41 |
| 11 | 60 | 61 |
Is the triangle right, acute or obtuse?
With the three sides, compare the square of the longest side \( c \) with the sum of the squares of the other two:
- \( c^2 = a^2 + b^2 \): right triangle.
- \( c^2 < a^2 + b^2 \): acute triangle.
- \( c^2 > a^2 + b^2 \): obtuse triangle.
When Do You Need to Use the Pythagorean Theorem?
Screens are sold by their diagonal. With the width and the height you get the diagonal, and with the diagonal you can check the real size that fits on your wall or desk.
Check that a TV fits before buying itThe 3-4-5 rule checks that foundations, walls and decks are square. A diagonal that does not match the theorem means the corner is not 90°.
Avoids crooked walls and tiles that do not line upWith the height to reach and the safe distance from the wall, the theorem gives the ladder length. With the ladder length, it tells how high it reaches.
Choose a ladder that reaches safelyOn a map or a grid, the direct distance between two points is the hypotenuse of the horizontal and vertical displacements. It is the basis of the distance formula.
Distance between two points on a planeThe longest rod that fits flat in a box or a car trunk lies along the diagonal. The theorem tells you whether a pole, a shelf or a pipe will fit.
Know if it fits before moving itThe theorem is the base of trigonometry, the distance formula and many proofs. It appears in almost every math course from middle school on.
A must-know tool for studentsCommon Mistakes
⚠️ Adding the Sides Without Squaring
⚠️ Forgetting the Square Root
⚠️ Adding When Finding a Leg
⚠️ Using It on a Non-Right Triangle
⚠️ Choosing the Wrong Hypotenuse
⚠️ Squaring a Sum
Applications by Industry
Construction
- Layout: 3-4-5 checks for square corners
- Roofs: Rafter length from the rise and the run
- Stairs: Stringer length from the total rise and run
Technology & Electronics
- Screens: Diagonal size from the width and the height
- Images: Distance between pixels in image processing
- Circuit boards: Length of diagonal traces
Navigation & Mapping
- Distances: Straight-line distance from north and east displacements
- Maps: Short distances on projected maps
- Orienteering: Direct route across a field
Physics & Engineering
- Vectors: Magnitude of a vector from its components
- Forces: Resultant of two perpendicular forces
- Electricity: Impedance from resistance and reactance in AC circuits
Games & Graphics
- Collisions: Distance between two objects in a 2D game
- 3D graphics: Length of vectors for movement and lighting
- Pathfinding: Cost of diagonal moves on a grid
Education
- Geometry: Proofs and right-triangle problems
- Algebra: Distance formula between two points
- Number theory: Pythagorean triples
External Resources
- How to use the Pythagorean theorem to find a missing side — Math is Fun
- Pythagorean theorem statement, proofs, and history — Wikipedia
- Pythagorean theorem from Wolfram MathWorld — Wolfram MathWorld