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.
No. For a general triangle you need the law of cosines or the law of sines. This calculator assumes one angle is exactly 90°.
The hypotenuse is always the longest side and sits opposite the right angle. The other two sides are the legs.
Keep going
Related calculators
Right Triangle TrigonometrySolve every side and angle of a right triangle with sine, cosine, and tangent.MathCircleCalculate diameter, circumference, area, arc length, and sector area from a radius.MathSquare RootFind principal square roots of non-negative values with clear validation for inputs outside the real-number domain.Math