Pythagorean Theorem Calculator

Find the third side of a right triangle from two known lengths. Use the diagram to identify the legs and the hypotenuse before entering your measurements.

Enter your values

b a c
c = √(a² + b²)

Enter sides a and b that meet at 90°. The dashed line marks the diagonal c you want to find.

Result

5
Need help with your result? Ask a question about your inputs or calculation. Ask AI
0 / 2000
20 requests per day · resets at 00:00 UTC

When to use Pythagorean Theorem Calculator

Find the third side of a right triangle from two known lengths. Use the diagram to identify the legs and the hypotenuse before entering your measurements.

Apply the calculation to a diagram, coordinate problem or measurement task with the same geometric assumptions.

How to use this tool

  1. Choose the calculation mode that matches your task and the information you have.
  2. Enter the inputs listed below. Follow the field format, and select units beside each supported quantity.
  3. Results update automatically. Review the main result and its breakdown. Use Clear to enter a new scenario.
  • Leg a
  • Leg b
  • Hypotenuse c
  • Known leg

How it works

Find the hypotenuse
Square the two legs that meet at 90°, add their squares, and take the square root. The result is the side opposite the right angle.

Worked example

The examples below use fixed sample inputs. They explain the calculation and do not change when you edit the tool above.

Find the hypotenuse

Leg a
3 m
Leg b
4 m
Result
5 m

Find a leg

Hypotenuse c
5 m
Known leg
3 m
Result
4 m

Understanding the result and its limits

Choose the correct shape and dimensions. Area uses squared units and volume uses cubed units; neither is a length.

Frequently asked questions

Which side is the hypotenuse?

It is the side opposite the right angle and the longest of the three. For example, legs of 3 m and 4 m give a hypotenuse of 5 m. If you know the hypotenuse and one leg, choose Find a leg.

Methodology and references

Use the formulas and assumptions above when interpreting the example. Any practical estimate depends on the accuracy of the inputs.