Pythagorean Theorem Calculator

Calculated on this device
Length of right triangle leg a (> 0)
units
Length of right triangle leg b (> 0)
units
SOLVED C
c = 5

c = √(3² + 4²) = √(25.0000) = 5.0000

Leg a / Leg b3 / 4
Hypotenuse (c)5
Area / Perimeter6 / 12
Angles (α / β)36.87° / 53.13°

Assumes a Euclidean right triangle with 90° angle opposite hypotenuse c.

HOW IT WORKS

Right-triangle side & property formulas

In any Euclidean right triangle, the square of the hypotenuse (c, opposite the 90° angle) equals the sum of the squares of the two legs (a and b).

01

Solve for Hypotenuse (c)

When both legs a and b are known:

c = √(a² + b²)
02

Solve for a Leg (a or b)

When the hypotenuse c and one leg are known (requires c > known leg):

a = √(c² − b²) · b = √(c² − a²)
03

Area, Altitude & Angles

Derived directly from the three sides:

Area = ½ab · h = ab ÷ c · α = arctan(a ÷ b)

PYTHAGOREAN THEOREM GUIDE

Practical uses, Pythagorean triples, and related triangle tools

When to use this tool vs. the Right Triangle or Triangle Calculator

Use this calculator when you know two side lengths of a right triangle and want the third side immediately. If you instead know one side and an acute angle (or area/altitude), use the Right Triangle Calculator. For general non-right triangles, use the Triangle Calculator.

Frequently asked questions

What is a Pythagorean triple?

A Pythagorean triple is a set of three positive integers (a, b, c) that satisfy a² + b² = c², such as (3, 4, 5), (5, 12, 13), (8, 15, 17), and (7, 24, 25).

Why must the hypotenuse c be longer than either leg?

Because c² = a² + b² and both legs are positive, c² > a² and c² > b², so c must always be the longest side of a right triangle.

Does the Pythagorean theorem work in 3D or on coordinates?

Yes—in 2D and 3D coordinate geometry, Euclidean distance is a direct extension of the Pythagorean theorem. Try our Distance Calculator for coordinate pairs.

How is the altitude to the hypotenuse calculated?

Since area equals both ½ab and ½ch, the perpendicular altitude from the right angle to the hypotenuse is h = (a × b) ÷ c.