Pythagorean Theorem Calculator

Use the relationship between the sides of a right triangle to find the hypotenuse or a leg, test whether three measurements make a right angle, or work out the distance between two points on a plane. No sign-up, instant results. For angles and other kinds of triangles, use the triangle calculator.

Missing side of a right triangle

hypotenuse (c) 0
triangle area 0
perimeter 0

Is it a right triangle?

result 0
a² + b² (two shorter) 0
c² (longest side) 0

Distance between two points

distance 0
difference in x 0
difference in y 0

What the theorem says

In every right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the legs: c² = a² + b². The hypotenuse is always the longest side, and the theorem only holds when one angle measures exactly 90°.

How to find the missing side

If you know both legs, the hypotenuse is c = √(a² + b²). If you know the hypotenuse and one leg, the other leg is b = √(c² − a²). The calculator handles both cases and also shows the triangle's area and perimeter.

Pythagorean triples and distance between points

When all three sides are whole numbers that satisfy the theorem, like 3, 4, 5 or 5, 12, 13, they form a Pythagorean triple. The same idea measures the distance between two points (x1, y1) and (x2, y2): it is the hypotenuse of a triangle whose legs are the differences in x and in y.

Practical example

A 5 m ladder leaning with its base 3 m from the wall reaches 4 m up, since 5² − 3² = 4². The diagonal of a 12 m by 5 m room is 13 m, because √(12² + 5²) = 13.

Frequently asked questions

When can I use the Pythagorean theorem?

Only in right triangles, meaning those with a 90 degree angle. For other triangles you need the law of cosines.

How do I know which side is the hypotenuse?

The hypotenuse is the side opposite the right angle and always the longest of the three. In the right triangle check, the calculator sorts the sides for you.

What is a Pythagorean triple?

It is a set of three positive whole numbers that satisfies a² + b² = c², like 3, 4, and 5. Multiples of a triple, such as 6, 8, and 10, are also Pythagorean triples.