Pythagorean Theorem Calculator

Solve for the missing side of any right triangle using a² + b² = c². Find the hypotenuse or either leg, plus the triangle area, perimeter, and both acute angles.

Share:
Pythagorean Theorem Calculator

a² + b² = c²

c = hypotenuse (longest side)

Hypotenuse (c)

5

c = √(3² + 4²) = √25

Triangle Area

6

square units

Perimeter

12

units

Angles
Angle A (opposite leg a)36.8699°
Angle B (opposite leg b)53.1301°
Right Angle C90°
Sum of Angles180.00°

What Is the Pythagorean Theorem?

The Pythagorean theorem is one of the most fundamental relationships in geometry. It states that in a right triangle, the square of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the other two sides (the legs). This relationship was known to ancient mathematicians and is attributed to the Greek philosopher Pythagoras.

The theorem is used in construction, navigation, engineering, physics, and computer graphics. Any time you need to find the length of an unknown side of a right triangle, the Pythagorean theorem provides the answer.

What This Calculator Does

This calculator solves for any missing side of a right triangle given the other two sides. It also calculates the area, perimeter, and the two non-right angles of the triangle.

  • Find hypotenuse: Given both legs a and b, calculate the hypotenuse c
  • Find leg a: Given leg b and hypotenuse c, calculate leg a
  • Find leg b: Given leg a and hypotenuse c, calculate leg b
  • Bonus outputs: Triangle area, perimeter, and both acute angles

How the Calculation Works

The Core Formula

a² + b² = c²

Where a and b are the two legs of the right triangle and c is the hypotenuse. To solve for each unknown:

Finding the Hypotenuse

c = √(a² + b²)

Finding a Missing Leg

a = √(c² - b²)

b = √(c² - a²)

The hypotenuse must always be longer than either leg. If c is not longer than both a and b, the inputs do not form a valid right triangle.

Calculating the Angles

Angle A = arctan(a / b)

Angle B = arctan(b / a)

Angle C = 90°

The three angles of any triangle always sum to 180°. In a right triangle, one angle is always 90°, so the other two must sum to 90°.

How to Use the Calculator

  1. Select what you want to find: the hypotenuse or one of the legs
  2. Enter the two known side lengths
  3. The missing side, area, perimeter, and angles calculate instantly
  4. Ensure the hypotenuse is longer than either leg to get a valid result

Example Calculations

Example 1: The 3-4-5 Triangle

The most well-known right triangle has legs of 3 and 4. Hypotenuse = √(9 + 16) = √25 = 5. This triple (3, 4, 5) is commonly used in construction to verify right angles because all three sides are whole numbers.

Example 2: Diagonal of a Screen

A monitor is 48 cm wide and 27 cm tall. The diagonal = √(48² + 27²) = √(2,304 + 729) = √3,033 ≈ 55.07 cm. Screen sizes are typically measured diagonally, making this a practical everyday application.

Example 3: Staircase Design

A staircase rises 3 meters and extends 4 meters horizontally. The stringer (the diagonal board supporting the stairs) = √(3² + 4²) = 5 meters. Builders use this to cut stair stringers to the correct length.

Real-World Scenarios

Construction and Carpentry

Builders use the 3-4-5 rule to square up corners. If a corner has legs of 3 and 4 feet and the diagonal measures exactly 5 feet, the corner is a perfect right angle. This check is standard practice when laying foundations and framing walls.

Navigation and Surveying

When navigating, the straight-line distance between two points can be calculated from their horizontal and vertical displacement using the Pythagorean theorem. GPS calculations and map routing rely on this principle at a fundamental level.

Computer Graphics and Gaming

In 2D and 3D rendering, the distance between two points is calculated using the Pythagorean theorem. Collision detection, pathfinding, and camera positioning all rely on distance calculations that extend this formula to two and three dimensions.

Why This Calculation Matters

The Pythagorean theorem connects length, distance, and angles in a simple and universally applicable formula. It is one of the few theorems that appears equally in pure mathematics, applied engineering, and everyday problem-solving. A reliable calculator makes these computations instant and error-free.

Common Mistakes to Avoid

  • Applying the theorem to non-right triangles: The Pythagorean theorem only applies to right triangles. For other triangles, use the law of cosines instead
  • Confusing legs and hypotenuse: The hypotenuse is always the longest side and is always opposite the right angle. Mixing this up leads to incorrect input and negative values under the square root
  • Entering a hypotenuse shorter than a leg: This is mathematically impossible. If c is not greater than both a and b, the inputs do not form a valid right triangle
  • Mixing units: All three sides must be measured in the same unit. A triangle with legs in feet and a hypotenuse in meters will give an incorrect result

Frequently Asked Questions

Embed This Calculator

Pythagorean Theorem Calculator

Calculate
Reset