Calculators.Life Calculator
Math

Pythagorean Theorem Calculator

Input Parameters

Scenarios
Choose which side or attribute of the right triangle to calculate
Length of leg a (must be positive)
Length of leg b (must be positive)
Length of hypotenuse c (must be greater than leg)

Computed Results

Solved Side Length
5
Triangle Area6
Perimeter12
Angle α (opposite a)36.8699
Angle β (opposite b)53.1301

The Pythagorean theorem calculator determines the missing side length of a right triangle when two sides are known. It also calculates the triangle's area, perimeter, and interior angles, helping students, builders, and designers quickly solve geometric problems.

Practical Use Cases

The Pythagorean theorem is a fundamental principle in geometry with numerous real-world applications. Builders and carpenters frequently use it to ensure corners are perfectly square (often applying the 3-4-5 rule). It is also used in navigation to find the shortest straight-line distance between two points, and in architecture to calculate the length of diagonal supports or roof slopes.

Formula & Explanation

The Pythagorean theorem states that in a right-angled 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). The core equation is:

a² + b² = c²

Depending on which side you need to find, the formula is rearranged:

The calculator also determines the triangle's area (0.5 × a × b), perimeter (a + b + c), and the interior angles using inverse trigonometric functions.

Verified Scenario Walkthroughs

Standard 3-4-5 Triangle

If you have a right triangle with legs measuring 3 and 4, solving for the hypotenuse (c) yields exactly 5. The area is 6, the perimeter is 12, and the interior angles are approximately 36.8699° and 53.1301°.

Large Triangle Solving for Leg a

Consider a large triangle where the hypotenuse (c) is 260 and leg b is 240. Solving for leg a results in exactly 100. This triangle has a perimeter of 600 and an area of 12,000.

Isosceles Right Triangle

If both legs (a and b) are 10, solving for the hypotenuse gives approximately 14.1421. Because the legs are equal, the two non-right interior angles are exactly 45° each, and the area is 50.

How to Use the Calculator

Follow these steps to find the missing dimensions of your right triangle:

  1. Select the Target Variable: Use the "Solve For" dropdown to choose whether you are calculating leg a, leg b, or the hypotenuse c.
  2. Enter Known Sides: Input the lengths of the two known sides. Ensure the hypotenuse is always larger than either leg.
  3. Review the Results: The calculator will display the missing side length, along with the triangle's total area, perimeter, and the specific angles opposite legs a and b.

Inputs & Outputs Table

FieldTypeDescription
Solve ForInputChoose which side of the right triangle to calculate (a, b, or c).
Side a (Leg)InputLength of the first leg (must be positive).
Side b (Leg)InputLength of the second leg (must be positive).
Side c (Hypotenuse)InputLength of the hypotenuse (must be greater than either leg).
Solved Side LengthOutputThe calculated length of the missing side.
Triangle AreaOutputThe total area enclosed by the triangle.
PerimeterOutputThe total distance around the outside of the triangle.
Angle αOutputThe interior angle opposite leg a, in degrees.
Angle βOutputThe interior angle opposite leg b, in degrees.

Frequently Asked Questions

Does the Pythagorean theorem apply to all triangles?

No, the Pythagorean theorem only applies to right-angled triangles (triangles where one angle is exactly 90 degrees).

What happens if I enter a hypotenuse that is shorter than a leg?

In a valid right triangle, the hypotenuse must always be the longest side. If you enter a hypotenuse shorter than or equal to a leg when solving for the other leg, the calculation will return 0, as such a triangle cannot exist.

How are the angles calculated?

The calculator uses inverse trigonometric functions (specifically arcsine) based on the ratio of the sides to determine the angles in degrees. The two non-right angles will always add up to 90 degrees.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.