Right Triangle Calculator

Pythagorean theorem calculator — find the missing side, angles, area, and perimeter of a right triangle

Leg a3.0000
Leg b4.0000
Hypotenuse5.0000
Angle opposite a36.87°
Angle opposite b53.13°
Area6.0000
Perimeter12.0000

Frequently Asked Questions

What is the Pythagorean theorem?
For any right triangle, a² + b² = c², where c is the hypotenuse (the side opposite the right angle) and a, b are the two legs. Given any two of the three sides, the third is always solvable.
Is my data sent anywhere?
No. Everything is calculated locally in your browser.

The Pythagorean theorem — a² + b² = c², where c is the hypotenuse — relates the three sides of a right triangle, and this calculator extends that core relationship to also solve for angles, area, and perimeter, since knowing any sufficient combination of a right triangle's properties mathematically determines all the others.

Why the Pythagorean theorem alone isn't the whole calculation

The Pythagorean theorem specifically relates the two legs and the hypotenuse of a right triangle — given any two of the three sides, the third can be calculated directly. But a right triangle has more properties than just its three side lengths: its two non-right angles, its area, and its perimeter are all additionally derivable once enough side lengths (or a side and an angle) are known, using trigonometric relationships alongside the core Pythagorean relationship. This is why a "right triangle calculator" needs to do more than apply a²+b²=c² once — it needs to combine that core relationship with trigonometric functions to fully characterize the triangle from whatever starting information is actually available.

A worked example

Knowing just the two legs of a right triangle is enough to calculate the hypotenuse directly via the Pythagorean theorem, and from there, both non-right angles can be calculated using inverse trigonometric functions applied to the now-known side ratios — a chain of calculations that starts from the Pythagorean relationship but extends well beyond it to fully describe the triangle.

How this connects to your other geometry calculations

For triangles that aren't necessarily right triangles, the general Triangle Calculator handles the broader case using the Law of Sines and Law of Cosines, which reduce to the simpler right-triangle relationships as a special case when one angle happens to be 90 degrees.

Common mistakes

Applying the Pythagorean theorem to a triangle that isn't actually a right triangle is a common and fundamental error — the a²+b²=c² relationship specifically depends on one angle being exactly 90 degrees, and using it on a non-right triangle produces a meaningless result, since the underlying geometric relationship simply doesn't hold for other triangle types.

Related Calculators

Permutation & Combination CalculatorTriangle CalculatorCircle CalculatorSurface Area CalculatorURL Encoder / DecoderWater Intake Calculator