Online Pythagorean Calculator

Calculate hypotenuse (c) or either leg (a or b) in any right-angled triangle using the Pythagorean theorem.

Formula: a² + b² = c²

What Is the Pythagorean Theorem?

The Pythagorean theorem is a foundational geometric principle stating that in any right-angled triangle (a triangle with a 90-degree angle), the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two legs. Written algebraically: a² + b² = c².

How to Use the Pythagorean Calculator

  1. Select which side you want to solve for: Hypotenuse (c), Leg a, or Leg b.
  2. Enter the lengths of the two known sides in the input fields.
  3. Click "Calculate" to see the unknown side length, along with step-by-step intermediate squares.

Formula & How the Calculation Works

Hypotenuse (c) = √(a² + b²)
Leg (a) = √(c² - b²)
Leg (b) = √(c² - a²)

The hypotenuse is always the longest side of a right triangle. When solving for a leg, the square of the known leg is subtracted from the square of the hypotenuse before taking the square root.

Worked Calculation Example

Scenario: Find hypotenuse c when leg a = 6 and leg b = 8.

Key Considerations & Common Mistakes to Avoid

Frequently Asked Questions

What is the Pythagorean theorem formula?

The formula is a² + b² = c², where a and b are the lengths of the perpendicular legs and c is the length of the hypotenuse opposite the right angle.

What is a Pythagorean triple?

A Pythagorean triple consists of three positive integers that satisfy a² + b² = c². Well-known examples include (3, 4, 5), (5, 12, 13), and (8, 15, 17).

Can the hypotenuse ever be shorter than a leg?

No. The hypotenuse is opposite the largest angle (90°) and is mathematically always the longest side of a right-angled triangle.