Math / Pythagorean Theorem

Pythagorean Theorem calculator

Solve the right-triangle relationship in either direction.

Your answer will appear here.

Formula: a² + b² = c². Solve for the hypotenuse with c = √(a² + b²), or for a leg with a = √(c² − b²).

The basics

The oldest shortcut in geometry

The theorem says the square of the hypotenuse equals the sum of the squares of the legs. In practice it lets you find one distance when you know two. Choose the mode that matches what you already have, then enter the two known lengths in the same unit. The result and the perimeter use that same unit; the area is in square units.

In practice

Worked examples

Input

Legs 3 and 4

Answer

c = 5 · area 6 · perimeter 12

Input

Hypotenuse 13, leg 5

Answer

missing leg = 12

Good to know

Frequently asked questions

Only on right triangles. It relates the two legs and the hypotenuse, which is the side opposite the 90° angle.

Keep going