Skip to content
YouNeed Tools
Free VPN

Pythagorean Theorem Calculator

Choose which side to find and enter the other two. You get the missing side, exact and as a decimal, the angles, area and the working.

Find
bac

c = 5

Exact: c = 5

Angle A (opposite a)

36.87°

Angle B (opposite b)

53.13°

Area

6

Perimeter

12

Working

  1. a² + b² = c²
  2. c² = 3² + 4² = 9 + 16 = 25
  3. c = √25 = 5
Pythagorean triples up to 100

3–4–5, 6–8–10, 5–12–13, 9–12–15, 8–15–17, 12–16–20, 7–24–25, 15–20–25, 10–24–26, 20–21–29, 18–24–30, 16–30–34, 21–28–35, 12–35–37, 15–36–39, 24–32–40, 9–40–41, 27–36–45, 14–48–50, 30–40–50, 24–45–51, 20–48–52, 28–45–53, 33–44–55, 40–42–58, 36–48–60, 11–60–61, 16–63–65, 25–60–65, 33–56–65, 39–52–65, 32–60–68, 42–56–70, 48–55–73, 24–70–74, 21–72–75, 45–60–75, 30–72–78, 48–64–80, 18–80–82, 13–84–85, 36–77–85, 40–75–85, 51–68–85, 60–63–87, 39–80–89, 54–72–90, 35–84–91, 57–76–95, 65–72–97, 28–96–100, 60–80–100

Worked out on your device.

Worked example

A 12 ft ladder leans against a wall with its foot 4 ft out. How high up the wall does it reach? The ladder is the hypotenuse, so height = √(12² − 4²) = √(144 − 16) = √128 = 8√2 ≈ 11.31 ft, and the ladder makes an angle of 70.5° with the ground. Safety guides suggest about 75° (the 4-to-1 rule: 1 ft out for every 4 ft of height), so this one is a little shallow; 3 ft out would be about right.

Real-life uses

  • Screen sizes: a TV’s size is its diagonal. A screen 48 in wide and 27 in tall is √(48² + 27²) ≈ 55.1 in, sold as a 55-inch TV.
  • Square corners: builders mark 3 ft along one side and 4 ft along the other; if the diagonal is exactly 5 ft, the corner is square. 6-8-10 or 9-12-15 work for bigger layouts.
  • Distances on a map: 3 blocks east and 4 north is 5 blocks as the crow flies.
  • Ramps and roofs: the sloping length from the rise and the run.

Pythagorean triples up to 30

3-4-5, 6-8-10, 5-12-13, 9-12-15, 8-15-17, 12-16-20, 7-24-25, 15-20-25, 10-24-26, 20-21-29, 18-24-30

Euclid’s formula makes all of them: for whole numbers m > n, the sides m² − n², 2mn and m² + n² always form a right triangle.

Converse and checks

The theorem also works backwards: if a² + b² = c² for three sides, the angle opposite c is a right angle. If a² + b² is bigger than c² the triangle is acute, and if smaller it is obtuse. A quick sanity check on any answer is that the hypotenuse must be longer than each leg but shorter than their sum.

Related tools

Sources

Checked on November 26, 2026:

Frequently asked questions

What is the Pythagorean theorem?
In a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides: a² + b² = c².
How do I find the hypotenuse?
Square the two shorter sides, add them, and take the square root: c = √(a² + b²). For legs of 3 and 4, c = √25 = 5.
How do I find a missing leg?
Subtract the square of the known leg from the square of the hypotenuse and take the square root: a = √(c² − b²). The hypotenuse must be the longest side.
What is a Pythagorean triple?
Three whole numbers that fit a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17. Any multiple of a triple is a triple too: 6-8-10, 9-12-15.
Does it work for triangles without a right angle?
No. For other triangles use the law of cosines, c² = a² + b² − 2ab cos C, which becomes Pythagoras when C = 90°.
Why give an exact answer?
Many hypotenuses are irrational. Legs of 1 and 1 give c = √2 exactly, about 1.414214. Teachers often want the exact form, and it avoids rounding errors in later steps.

Last updated: 2026-11-26