Pythagorean Theorem Calculator
Find the missing side of a right triangle with a² + b² = c², as an exact answer such as 6√2 and a decimal. Check whether three sides make a right triangle, and see the squares on each side that prove it.
How to Use
- Choose what to find: the hypotenuse c, a leg a or b, or check three sides.
- Type the two known sides (or all three to check). Decimals and fractions are fine.
- Read the answer in exact form, such as 6√2, and as a decimal, plus the two other angles and the area.
- Show Work squares, adds or subtracts, and takes the square root.
- The drawing puts a square on each side: the two smaller squares together have the same area as the biggest.
Worked Example
A TV’s width and height. A 55-inch 16:9 television measures 55″ across the diagonal. The sides are 16k and 9k with (16k)² + (9k)² = 55², so 337k² = 3025, k = 2.996, giving 47.94″ wide and 26.96″ tall.
A missing leg. A 13 ft ladder with its foot 5 ft from the wall: a² = 13² − 5² = 169 − 25 = 144, so the top is 12 ft up.
The common mistake: adding the sides, not the squares. With legs 6 and 8, the hypotenuse is not 6 + 8 = 14. It is √(36 + 64) = √100 = 10.
Show Work
Formulas
Older Than Pythagoras
The relationship was known long before Pythagoras (around 570–495 BC). The Babylonian tablet Plimpton 322, from about 1800 BC, lists fifteen Pythagorean triples including 12,709-13,500-18,541. Indian Śulba Sūtras state the rule for altar building, and the Chinese Zhoubi Suanjing gives a visual proof with the 3-4-5 triangle.
Euclid’s proof (Elements I.47) cuts the big square into two rectangles equal to the smaller squares, the picture drawn here. Hundreds of proofs are now known; one of them is by James Garfield, later the 20th US president, published in 1876.
About This Calculator
This calculator finds the hypotenuse or either leg of a right triangle in simplest radical form and as a decimal, along with its other angles, area and perimeter, and spots Pythagorean triples. With three sides it decides whether the triangle is right, acute or obtuse, and the drawing shows the squares on the sides either way.
Everything runs in your browser; nothing is sent anywhere.
Related calculators: Triangle Calculator, Distance Calculator, and Trigonometry Calculator.
Frequently Asked Questions
What does the Pythagorean theorem say?
In a right triangle, the square on the hypotenuse equals the sum of the squares on the other two sides: a² + b² = c², where c is the side opposite the right angle. For legs of 3 and 4: 9 + 16 = 25, so the hypotenuse is √25 = 5.
How do I find a missing leg?
Subtract instead of adding: a² = c² − b². A 13-foot ladder with its foot 5 feet from a wall reaches √(169 − 25) = √144 = 12 feet up the wall. The hypotenuse must be the longest side, or there is no such triangle.
How can I tell if a triangle is a right triangle?
Square the three sides and compare the two smaller squares’ sum with the largest square. Equal means a right angle; more means all angles are acute; less means the largest angle is obtuse. 5, 12, 13 is right (25 + 144 = 169); 2, 3, 4 is obtuse (4 + 9 = 13 < 16).
What are Pythagorean triples?
Whole numbers that fit a² + b² = c², such as 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Any multiple of one is also a triple (6-8-10). Builders use 3-4-5 to set out square corners: measure 3 ft along one wall, 4 ft along the other, and adjust until the diagonal is exactly 5 ft.
Why give the answer as 6√2 instead of 8.485?
Because 8.485 is rounded and 6√2 is exact. When legs are 6 and 6, c² = 72 = 36 × 2, so c = 6√2. Teachers usually ask for this simplest radical form, and keeping it exact avoids rounding errors in later steps.
How do I use the Pythagorean Theorem Calculator?
Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Does it cost anything or need an account?
No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.
Is anything I type uploaded?
No. The tool works entirely on your device, so the values you enter never leave your browser.
Common Use Cases
Ladders
A 13 ft ladder 5 ft from the wall reaches 12 ft up.
Screens
A 55″ 16:9 TV is 47.94″ wide and 26.96″ tall.
Square corners
3-4-5 (or 6-8-10) checks a corner is exactly 90°.
Shortcuts
Across a 40 × 30 m park diagonally is 50 m instead of 70 m.
Homework
Legs of 6 and 6 give a hypotenuse of 6√2 ≈ 8.485.
Last updated: