The Pythagorean theorem calculator computes the length of the hypotenuse (the longest side, c) of a right-angled triangle when the two shorter sides (legs a and b) are known: c = √(a² + b²).
What is a Pythagorean theorem calculator?
A Pythagorean theorem calculator finds the hypotenuse of a right triangle when you know the two shorter legs a and b. It uses c = √(a² + b²). It also shows triangle area and perimeter from those sides. The tool matches the Class 9 and 10 geometry rule that only works when the angle between a and b is 90 degrees.
How to use the Pythagorean Theorem calculator
- Enter side a, one leg of the right triangle.
- Enter side b, the other leg.
- Read hypotenuse c in the main blue result card.
- Check area (a × b) ÷ 2 and perimeter a + b + c.
- Use the diagram to confirm the right angle sits between a and b.
About this calculator
The Pythagorean theorem calculator computes the length of the hypotenuse (the longest side, c) of a right-angled triangle when the two shorter sides (legs a and b) are known: c = √(a² + b²). It's probably the most widely used theorem in geometry.
The theorem shows up in construction, navigation, computer graphics, physics, and engineering — wherever you have a right angle and need a distance.
How the math works
- : The two legs of the right triangle
- : The hypotenuse (longest side, opposite the right angle)
Pythagorean theorem example: legs 3 and 4
A right triangle has legs a = 3 and b = 4. Compute c² = a² + b² = 9 + 16 = 25, so c = √25 = 5. Area is (3 × 4) ÷ 2 = 6 square units. Perimeter is 3 + 4 + 5 = 12.
Enter a = 3 and b = 4. Hypotenuse should display 5.0000. Try a = 5 and b = 12 for the 5-12-13 triple: c² = 25 + 144 = 169, so c = 13. Carpenters use the 3-4-5 triple scaled up to check square corners on a floor slab before tiling.
Always label legs as the sides that meet at the right angle; the hypotenuse is opposite that corner and is always the longest side. Legs 5 and 12 give hypotenuse 13, a scaled 3-4-5 triple. Diagonal of a 6 m by 8 m rectangular room is 10 m, useful when you only measure two walls and need the corner span.
Common uses
- Calculate the diagonal distance across a rectangular room
- Find the length of a ladder needed to reach a height
- Determine distances in coordinate geometry
- Check if a corner is truly square in construction
Frequently asked questions
What is the Pythagorean theorem?
In a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c². For example, a right triangle with legs 3 and 4 has a hypotenuse of √(9 + 16) = √25 = 5.
What are Pythagorean triples?
Pythagorean triples are integer sets where a² + b² = c². Common triples: (3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25). Any multiple of these is also a triple (e.g., 6, 8, 10). These are useful in construction for creating perfect right angles.
What is the hypotenuse of a right triangle with legs 6 m and 8 m?
10 m. c² = 6² + 8² = 36 + 64 = 100, so c = √100 = 10. Enter 6 and 8 as legs. The calculator returns hypotenuse 10 and perimeter 24 m for the full triangle outline.
Can I use the Pythagorean theorem when I only know one leg and the hypotenuse?
Yes, rearrange: a = √(c² − b²). This tool expects both legs as inputs and solves for c. If you know c and one leg, subtract the square of the known leg from c² before taking the square root.
Related calculators
- Math Calculator
- Percentage Calculator
- Fraction Calculator
- Exponent Calculator
- Logarithm Calculator
- Nth Root Calculator
- Ratio Calculator
- Slope Calculator
Maintained by J Jaya Prakash · Last updated: October 2026