For a right triangle, the Pythagorean theorem is a² + b² = c², where a and b are the legs meeting at the 90° angle and c is the hypotenuse.

The theorem itself does not change from one triangle to another. Your practical task is to identify the two sides you know, recognize which one is the hypotenuse, and solve for the missing side. The order matters: the hypotenuse goes by itself on one side of the equation, while the two legs are added together.

how to find pythagorean theorem of a triangle
How to Find the Pythagorean Theorem of a Triangle

Identify the triangle’s sides

Before calculating, identify the longest side. In a right triangle, the hypotenuse is opposite the right angle and is longer than either leg. The legs are the two shorter sides that meet at the 90° angle. Once you know which lengths you have, choose the corresponding rearrangement of the formula.

Known lengths Formula to use Unknown side found
Both legs c = √(a² + b²) Hypotenuse
Hypotenuse and one leg b = √(c² − a²) Missing leg

Knowing only one side is not enough to determine a unique third side through this theorem. The supported calculator workflow requires two known side lengths: either the two legs or the hypotenuse and one leg. This also prevents a common error caused by treating the hypotenuse as if it were one of the legs.

Find the missing side with the calculator

  1. Confirm that the triangle is right-angled. Locate the 90° angle and label the side opposite it as the hypotenuse. Label the two sides that meet at that angle as the legs.
  2. Choose the correct calculation. Select Find hypotenuse when the two legs are known. Select Find missing leg when the hypotenuse and one leg are known.
  3. Enter the two known lengths. Open the Pythagorean Theorem Calculator, type the measurements into the relevant input boxes, and use the same unit for both lengths.
  4. Read the missing side and supporting results. The calculator returns the missing side, along with the area, perimeter, and both acute angles. A formula line shows the relationship being applied so you can check the calculation instead of relying on an unexplained answer.

Results update whenever an input changes, making it easy to test another pair of measurements. The displayed numbers are rounded to a readable number of decimal places while retaining enough precision to verify exact Pythagorean triples. All calculations are performed privately in your browser, and nothing is uploaded.

Work through one missing-side example

Suppose a right triangle has legs measuring 3 units and 4 units, while the hypotenuse is unknown. Start with the two-leg formula and substitute the known measurements:

c = √(3² + 4²)= √(9 + 16)= √25= 5

The hypotenuse is therefore 5 units. This result passes the basic length check because the calculated hypotenuse is longer than both known legs.

Read the available triangle results

A missing side is the main result, but the completed side lengths also support several related measurements. Read each output according to its purpose rather than treating every number as another side of the triangle.

Result What it represents Underlying relationship
Missing side The hypotenuse or leg not entered The selected square-root formula
Area The area enclosed by the triangle ½ · a · b
Perimeter The total length of all three sides a + b + c
Two acute angles The two angles that are not 90° Found with arctangent; together they total 90°

The area and perimeter become available once all three sides are known. The angle results are useful for checking the triangle’s shape, while the formula line provides a direct way to trace the missing-side calculation. This makes the tool useful when the task extends beyond simply finding the hypotenuse.

Handle measurements that cannot form a right triangle

The Pythagorean theorem applies only to right triangles. For a non-right triangle, use the Law of Cosines instead: c² = a² + b² − 2ab·cos(C). When angle C is 90°, its cosine is zero, so the expression reduces to the Pythagorean theorem.

There is also a strict ordering requirement. The hypotenuse must be greater than either leg. If the supplied hypotenuse is shorter than a known leg, the measurements cannot describe the required right triangle. The calculator checks this relationship and flags impossible inputs.

Make sure the problem identifies a right angle. A triangle with three ordinary acute angles may fail the Pythagorean relationship even when two side lengths are known. Likewise, one known side alone does not provide enough information for the theorem or the calculator’s two-length workflow.

Avoid common side-labeling mistakes

  • Do not treat the longest side as a leg. The longest side is the hypotenuse because it lies opposite the right angle.
  • Do not subtract when finding the hypotenuse. When both legs are known, square each leg and add the results before taking the square root.
  • Do not add when finding a missing leg. When the hypotenuse is known, subtract the known leg’s square from the hypotenuse’s square.
  • Keep both inputs in the same unit. Mixing measurements such as feet and inches would make the values mathematically inconsistent.
  • Avoid rounding during the calculation. Keep full precision until the final result, especially when the expected answer is close to a whole number.

After calculating, substitute the three resulting side lengths back into a² + b² = c². If the two sides do not balance, check the labels, the selected calculation, and the units before using the result.

Apply the theorem beyond geometry exercises

The same side relationship supports practical measurements whenever the geometry forms a right triangle. Builders use it to establish true right angles and check diagonal lengths. Navigators and surveyors combine perpendicular north-south and east-west distances to calculate a straight-line distance. The theorem also connects a display’s width and height to its diagonal.

Coordinate geometry and game development use the same idea when distance is calculated from horizontal and vertical components. In each situation, identify the perpendicular components as the legs and the direct distance as the hypotenuse, then apply the matching formula. For repeated calculations or measurements that need extra outputs such as area, perimeter, and angles, the calculator handles the complete right-triangle result from the two known lengths.

For a deeper look, see Equilateral Triangle Area: Accurate Calculator Steps.