Calculators.Life Calculator
Math

Pythagoras Theorem Calculator

Input Parameters

Scenarios
Choose which side of the right-angled triangle to calculate.
Length of leg a (required when solving for b or c).
Length of leg b (required when solving for a or c).
Length of hypotenuse c (required when solving for a or b).

Computed Results

Calculated Side Length
5
Perimeter12
Area6
Angle α (opposite side a)36.8699
Angle β (opposite side b)53.1301

The Pythagoras theorem calculator determines the missing side length of a right-angled triangle when two sides are known. It also calculates the triangle's perimeter, area, and interior angles, providing a complete geometric profile based on standard trigonometric principles.

How to Use the Calculator

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

  1. Select the missing side: Choose whether you need to solve for Side a (leg), Side b (leg), or Side c (the hypotenuse).
  2. Enter the known sides: Input the lengths of the two sides you already know. If solving for a leg, the hypotenuse must be longer than the known leg.
  3. Review the results: The calculator instantly provides the missing side length, the total perimeter, the area, and the two non-right interior angles (Angle α and Angle β).

Formulas and Explanation

The calculator is built on the Pythagorean theorem, which 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.

a² + b² = c²

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

The calculator also determines the triangle's area (0.5 × a × b) and perimeter (a + b + c). The interior angles are calculated using inverse trigonometry, where Angle α is the arcsine of (a / c), and Angle β is exactly 90 degrees minus Angle α.

Inputs and Outputs

FieldTypeDescription
Solve ForInputThe specific side (a, b, or c) you want to calculate.
Side a (Leg)InputThe length of one of the sides adjacent to the right angle.
Side b (Leg)InputThe length of the other side adjacent to the right angle.
Side c (Hypotenuse)InputThe longest side of the triangle, opposite the right angle.
Calculated Side LengthOutputThe length of the missing side you selected to solve for.
PerimeterOutputThe total distance around the outside of the triangle.
AreaOutputThe total space enclosed within the triangle.
Angle αOutputThe interior angle opposite Side a, measured in degrees.
Angle βOutputThe interior angle opposite Side b, measured in degrees.

Verified Scenario Walkthroughs

Here are examples of how the calculator processes different inputs:

Calculate Hypotenuse for Small Triangle

If you need to find the hypotenuse (c) for a triangle with leg a at 6 and leg b at 8, the calculated hypotenuse is 10. The perimeter is 24, the area is 24, Angle α is 36.869898°, and Angle β is 53.130102°.

Solve for Leg a with Large Values

When solving for leg a with a known leg b of 150 and a hypotenuse c of 250, the missing side a is 200. The perimeter equals 600, the area is 15,000, Angle α is 53.130102°, and Angle β is 36.869898°.

Solve for Leg b with Decimal Inputs

If solving for leg b where leg a is 5.5 and hypotenuse c is 12.25, the missing side b is calculated as 10.94589. The perimeter is 28.69589, the area is 30.101197, Angle α is 26.678234°, and Angle β is 63.321766°.

Calculate Hypotenuse with Equal Legs

For an isosceles right triangle where both leg a and leg b are 10, solving for hypotenuse c yields 14.142136. The perimeter is 34.142136, the area is 50, and both Angle α and Angle β are exactly 45°.

Practical Use Cases

The Pythagorean theorem is widely used in fields requiring precise spatial measurements. In construction and carpentry, it is used to ensure walls and frames are perfectly square by checking that the diagonal measurement matches the calculated hypotenuse. In navigation, it helps determine the shortest straight-line distance between two points on a grid. It is also fundamental in drafting, surveying, and various engineering disciplines to calculate unknown distances when horizontal and vertical measurements are known.

Frequently Asked Questions

Can I use this calculator for any type of triangle?

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

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

In a right-angled triangle, the hypotenuse must always be the longest side. If you input a hypotenuse that is shorter than or equal to a known leg, the calculator will return values of zero, as such a triangle cannot exist geometrically.

How are the angles calculated?

The angles are calculated using standard trigonometric functions. Angle α is found using the arcsine of side a divided by the hypotenuse c. Because the sum of angles in a triangle is 180 degrees and the right angle is 90 degrees, Angle β is simply 90 degrees minus Angle α.

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.