Pythagorean Theorem Calculator
Find the missing side of a right triangle from the other two.
In
Out
Hypotenuse c
5.0000
c = √(a² + b²)
How the Pythagorean Theorem calculation works
In a right-angled triangle, the squares of the two shorter sides (the legs a and b) add up to the square of the longest side (the hypotenuse c): a² + b² = c².
To find the hypotenuse, take the square root of a² + b². To find a leg, take the square root of c² minus the other leg squared. The hypotenuse must always be the longest side.
The angles come from the inverse tangent of the legs. The area is half of a × b, because the two legs are the base and the height.
Worked example
With legs of 3 and 4, the hypotenuse is √(9 + 16) = √25 = 5. Angle A is 36.87° and angle B is 53.13°. The area is 6 and the perimeter is 12.
The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.
Frequently asked questions
Related tools
Area and perimeter of rectangles, triangles, circles and more.
Volume and surface area of cubes, cylinders, spheres, cones and pyramids.
A plain calculator that you can type into, with a running history.
Trig, logs, powers, roots and factorials, in degrees or radians.
Three percentage questions, answered instantly.
How far apart two values are, when neither is the starting point.
- pythagorean theorem
- hypotenuse
- right triangle
- a² + b² = c²
- geometry
- math