Skip to tool
ZirkoMirkoTools

Pythagorean Theorem Calculator

Find a missing leg or hypotenuse with a diagram and steps in your browser.

Enter two known right triangle sides.

Example · 3–4–5 right triangle

Hypotenuse c

5

c = √(3² + 4²) = 5.

Angle A
36.8698976458°
Angle B
53.1301023542°
Calculation steps
  1. Use a² + b² = c².
  2. Take the square root of 3² + 4² to get 5.

Next tool · Find the triangle’s area

Right triangle with legs a and b and hypotenuse c a b c B A
The highlighted side is the hypotenuse c.

Processed on this device — nothing is uploaded

What you can do here

  • Right triangle solver
  • Missing leg or hypotenuse
  • Two acute angles
  • Labelled triangle diagram

How do I find the missing side of a right triangle?

The Pythagorean theorem calculator finds the missing side of a right triangle when you know two sides. Choose a leg or the hypotenuse, enter the known lengths in the same unit and follow the working. Legs 3 and 4 give a hypotenuse of 5. Calculation happens in your browser.

The diagram compares the sides and the result gives the two acute angles in degrees.

Key facts

Price
Free
Sign-up
None
Upload
None — runs on your device
Limits
One angle must be 90° · Known hypotenuse must exceed the known leg
Works with
Two side lengths in the same unit
Output
Missing side length, two acute angles and calculation steps
Updated

How to solve a right triangle from two sides

  1. Choose the missing side

    Select the hypotenuse or either leg. The diagram marks the missing side.

  2. Enter the known side lengths

    Use positive lengths in one unit. When the hypotenuse is known, it must be longer than the known leg.

  3. Read the side and angles

    Calculate the missing side, then open Calculation steps to see the square and square-root operations.

The Pythagorean formula and worked examples

The Pythagorean theorem says a² + b² = c² for a right triangle. The sides meeting at the right angle are legs a and b. The side opposite that angle is the hypotenuse c. If both legs are known, add their squared lengths and take the positive square root. For legs 3 and 4, c = √(3² + 4²) = √25 = 5.

For a missing leg, subtract the square of the known leg from the square of the hypotenuse before taking the square root. With c = 13 and b = 12, a = √(169 − 144) = 5. A hypotenuse equal to or shorter than the other given side cannot form a right triangle with positive lengths.

Angle A is opposite leg a and Angle B is opposite leg b. Use arctan(a ÷ b) for Angle A and arctan(b ÷ a) for Angle B, then convert to degrees. The two acute angles add to 90°.

Frequently asked questions

Which side is the hypotenuse?

The side opposite the 90° angle, and always the longest. In the diagram it is c, and a and b meet at the right angle.

How do I find a missing leg?

Subtract the square of the known leg from the square of the hypotenuse, then take the square root. With a hypotenuse of 10 and a leg of 8 the missing leg is √(100 − 64) = 6.

What are Pythagorean triples?

Whole-number sets that satisfy a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17. Any multiple works too, so 6-8-10 is a triple.

Does the theorem work for every triangle?

Only right triangles. The tool assumes the two sides you enter belong to one.

How do I find the two acute angles?

Take the inverse tangent of opposite ÷ adjacent. For legs 3 and 4 the angles are about 36.87° and 53.13°.

Related tools

About this tool

Made by ZirkoMirko. Last updated .

Check it yourself in your browser’s Network panel while using the tool. How we handle your data.