A little clarity, calculated.

culators

Math / Pythagorean Theorem

Pythagorean Theorem Calculator

Solve a right triangle when two side lengths are known, identifying the hypotenuse when needed. The tool checks whether the supplied pair can form a right triangle and reports the missing side together with the verification relation. For legs a and b, c=√(a²+b²). If hypotenuse c and leg a are known, the remaining leg is √(c²−a²), requiring c>a. The hypotenuse is opposite the right angle and is always the longest side; checking this ordering prevents taking the square root of a negative value.

Your inputs

Make it your own
Calculator settings

units

units

Your result
5
units
Missing or derived side
Right triangle · proportional sidesa 3 · b 4 · c 5
Right triangle · proportional sides
Leg 1
3
Leg 2
4
Hypotenuse
5

Example inputs shown. Adjust them to explore.

A familiar situation

Find a rectangular room’s diagonal from its length and width.

How to use this calculator

  1. Enter known sides, first side, second side.
  2. Select Calculate to see the answer and its breakdown.
  3. Keep a scenario, change an input and compare the results.

Use consistent units and check the assumptions below before applying the result.

How pythagorean theorem is calculated

For legs a and b, c=√(a²+b²). If hypotenuse c and leg a are known, the remaining leg is √(c²−a²), requiring c>a. The hypotenuse is opposite the right angle and is always the longest side; checking this ordering prevents taking the square root of a negative value. Legs 3 and 4 yield hypotenuse √(9+16)=5.

a²+b²=c² for a right triangle.
A worked example

Legs 3 and 4 yield hypotenuse √(9+16)=5.

Assumptions & useful context

The result depends on the values you enter and the method described above. Displayed numbers may be rounded; calculations use the unrounded values. Check that this model matches your situation before relying on it.

Frequently asked questions

Can the hypotenuse be shorter than a leg?

No; it is the longest side of a right triangle.

Are inputs side lengths or coordinates?

Enter positive side lengths; coordinate geometry uses the distance calculator.

Find a calculator