Pythagorean Theorem Calculator

Find the hypotenuse of a right triangle from the two legs.

Hypotenuse c 5
Triangle area 6

Formula: c = sqrt(a^2 + b^2)

Step-by-step with your numbers:
1. ▶ Given: leg a = 3, leg b = 4
2.
3. ▶ Step 1 — Square leg a: a² = 3 × 3 = 9
4.
5. ▶ Step 2 — Square leg b: b² = 4 × 4 = 16
6.
7. ▶ Step 3 — Sum: a² + b² = 9 + 16 = 25
8.
9. ▶ Step 4 — Hypotenuse: c = √(25) = 5
10.
11. ▶ Step 5 — Area: ½ × 3 × 4 = 6
Did we solve your problem today?

For a right triangle, find the longest side (hypotenuse) from the two shorter sides.

How the Math Works

The Pythagorean Theorem is a fundamental principle in geometry that relates the sides of a right-angled triangle. When given the lengths of the two legs (a and b), the theorem allows you to calculate the length of the hypotenuse (c) using the formula c = sqrt(a^2 + b^2). This works because squaring each leg's length and adding them together gives the square of the hypotenuse's length, which is then square-rooted to find its actual value. The relationship holds true for all right triangles, making it an essential tool for solving problems involving right angles.

Practical Applications

This calculation is widely used in construction, architecture, and engineering to ensure structures are built with precise right angles. For example, when constructing a roof, laying out a foundation, or designing furniture, knowing two sides of a right triangle allows you to determine the third side for accurate measurements. It's also applied in navigation and surveying to calculate distances between points on a flat surface, and in computer graphics for determining pixel distances or object sizes in 2D space.

Day-to-Day Use

In everyday life, this theorem helps with practical tasks like determining the correct size for a TV or monitor to fit a specific wall space, or calculating the shortest path between two points when walking or driving. DIY enthusiasts use it to build projects like garden beds or decks with accurate corner angles, and students often apply it when solving real-world geometry problems, such as measuring the diagonal of a room or checking if a piece of furniture will fit through a doorway.

Worked example

Legs 3 and 4 -> c = sqrt(9 + 16) = sqrt(25) = 5.

FAQ

How do I find a missing leg?

Rearrange: a = sqrt(c^2 - b^2).