MATHS & STATISTICS / GEOMETRY

Right triangle and Pythagorean theorem calculator

Find the hypotenuse of a right triangle from its two shorter sides with Pythagoras's theorem, plus its area, perimeter, angles and height.

Last reviewed:

← All tools

Your numbers

The two sides that meet at the right angle, in the same unit.
◈ Your values stay in your browser. No account needed.
YOUR RESULT

Enter your numbers to see a result.

WORKED EXAMPLE

Right triangle and Pythagorean theorem calculator: a worked example

With side a (leg) 3, side b (leg) 4, the hypotenuse (c) is 5.

Inputs
Side a (leg)3
Side b (leg)4
Results
Hypotenuse (c)5
Area6
Perimeter12
Angle A (opposite side a)36.86989765 °
Angle B (opposite side b)53.13010235 °
Height to the hypotenuse2.4
THE METHOD

How it works

In a right triangle the two sides that meet at the right angle are called legs, and the longest side, opposite the right angle, is the hypotenuse. Pythagoras's theorem says the square on the hypotenuse equals the sum of the squares on the legs. Enter both legs to get the hypotenuse, the two acute angles and the height from the right angle to the hypotenuse.

Formulac = √(a² + b²) (Pythagoras's theorem). Area = a × b ÷ 2. Angle A = arctan(a ÷ b).
ASSUMPTIONS

Assumptions and limits

  • Sides a and b are the two legs that meet at the right angle.
  • Angles are in degrees; the two acute angles always add up to 90°.
  • Lengths share one unit, and the area is in that unit squared.
  • Results are estimates based on the inputs and assumptions on this page, not professional advice.
  • Try this: use “Save scenario A”, change one input and compare the two results side by side.
QUESTIONS

Frequently asked questions

How is the result of the “Right triangle and Pythagorean theorem calculator” calculated?

c = √(a² + b²) (Pythagoras's theorem). Area = a × b ÷ 2. Angle A = arctan(a ÷ b). In a right triangle the two sides that meet at the right angle are called legs, and the longest side, opposite the right angle, is the hypotenuse. Pythagoras's theorem says the square on the hypotenuse equals the sum of the squares on the legs. Enter both legs to get the hypotenuse, the two acute angles and the height from the right angle to the hypotenuse.

What does the worked example show?

With side a (leg) 3, side b (leg) 4, the hypotenuse (c) is 5. Area: 6; Perimeter: 12; Angle A (opposite side a): 36.86989765 °; Angle B (opposite side b): 53.13010235 °; Height to the hypotenuse: 2.4.

What assumptions and limits apply?

This is an estimate based on the inputs and assumptions shown on this page, not professional advice. Check anything with financial, health or safety consequences independently.

Is my data private?

Yes. Calculations run in your browser and your numbers are not sent to a server. A share link contains the inputs you choose to share, so check it before sending it to anyone.

How do I find the hypotenuse?

Square each leg, add the squares and take the square root. With legs 5 and 12: 25 + 144 = 169, and √169 = 13.

Can I find a missing leg instead?

Rearrange the theorem: leg = √(hypotenuse² − other leg²). For a hypotenuse of 10 and a leg of 6, the missing leg is √(100 − 36) = 8. You can check the answer by entering 6 and 8 here.

What are Pythagorean triples?

Whole-number sides that satisfy a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17. Multiplying a triple by any number gives another right triangle, so 6-8-10 is also right-angled.

FOR WEBSITE OWNERS

Embed this calculator on your site

Free to use. Paste this where you want the calculator to appear. It resizes itself and links back to Calculator786.