Pythagorean Theorem: Definition, Method and Examples

MathPublished

Pythagorean Theorem: Formula, Method, and Examples

In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. Identify the hypotenuse first, substitute the two known lengths, solve for the missing length and give a positive answer in linear units.

What is the Pythagorean theorem?

The Pythagorean theorem, also known as the Pythagoras theorem, is a mathematical rule that explains the relationship between the three sides of a right-angled triangle. It states that the square of the longest side is exactly equal to the sum of the squares of the two shorter sides.


The square of the longest side equals the sum of the squares of the shorter sides.


This Pythagorean relationship is commonly remembered as a squared plus b squared equals c squared. When the legs of the right triangle are labelled aa and bb, and the longest side is labelled cc, the formula is written as a simple equation.

Equation: a2+b2=c2a^2 + b^2 = c^2

A right triangle has legs labeled a and b, and a hypotenuse labeled c. The equation a squared plus b squared equals c squared is shown beside it.

Identify the hypotenuse first

Before applying the formula, always locate the hypotenuse. The hypotenuse is the longest side of a right triangle and is permanently positioned directly opposite the right angle.

In the mathematical equation, the hypotenuse must always be substituted for the variable cc.


The other two shorter sides are called the legs. They are substituted for aa and bb. Because you add their squares together, it does not matter which leg acts as aa and which leg acts as bb.

Learning to correctly label the sides based on the right angle is a foundational skill when working with right triangles.

Use the theorem to find a side

You can calculate any missing right triangle side length as long as you know the measurements of the other two sides. Set up the equation systematically before performing arithmetic.


Method for finding a missing side:

  1. Identify the hypotenuse and assign it the variable cc.
  2. Substitute the two known side lengths into the formula a2+b2=c2a^2 + b^2 = c^2.
  3. Square the known values.
  4. If solving for a leg, subtract the squared leg from the squared hypotenuse.
  5. Take the positive square root of the final calculated area to find the missing length.

Calculating square roots is a necessary final step because the algebraic equation isolates the area of the square built on the side, not the linear side length itself.

Derive it with square-area visuals

The theorem can be visualized by physically drawing a square outward from each side of the right triangle. The total area of the large square built on the hypotenuse is exactly equal to the combined areas of the two smaller squares built on the legs.


If a right triangle has legs measuring 33 units and 44 units, those attached squares have areas of 99 and 1616. The hypotenuse has a length of 55 units, creating a square with an area of 2525. Adding the smaller areas together yields exactly the largest area.

A right triangle with side lengths 3, 4, and 5 has squares drawn outward on each side. The areas 9 and 16 sum to 25.

Decide when it applies

The formula applies strictly to right-angled triangles. Because it only applies to triangles with exactly one 9090-degree angle, it is sometimes called the right triangle theorem. It cannot be used to find missing side lengths in acute or obtuse triangles.


If you already know all three side lengths of a triangle, you can test them in the equation to determine if the triangle contains a right angle. This verification process is known as the converse of the Pythagorean theorem.

When a set of three whole numbers satisfies the relationship perfectly, such as 33, 44, and 55, the values form special sets called Pythagorean triples.

A right triangle shows the theorem applies, while an acute triangle shows the theorem does not apply.

Worked examples

These Pythagorean theorem examples show how to find a missing hypotenuse, how to calculate a missing leg, and how to verify if a triangle is a right triangle. The procedure is also the mathematical foundation for finding the distance between two points on a coordinate plane.


Example 1: Missing hypotenuse


Question: A right triangle has legs measuring 5 cm5\text{ cm} and 12 cm12\text{ cm}. What is the length of the hypotenuse?


Method:

  1. Identify the hypotenuse as the unknown value cc.
  2. Substitute the known legs into the formula.
  3. Square the values and add them.
  4. Take the positive square root to find cc.

Answer: The equation is 52+122=c25^2 + 12^2 = c^2. Squaring the legs gives 25+144=c225 + 144 = c^2. Adding them yields 169=c2169 = c^2. Taking the positive square root gives c=13 cmc = 13\text{ cm}.


Check: The calculated hypotenuse is 13 cm13\text{ cm}, which makes sense because it is strictly longer than both legs.


Example 2: Missing leg


Question: A right triangle has a hypotenuse of 12 mm12\text{ mm} and one leg measuring 7 mm7\text{ mm}. Find the exact length of the other leg, and then state its decimal value rounded to two decimal places.


Method:

  1. Identify the hypotenuse as 1212, which is placed into the formula as cc.
  2. Substitute 77 for aa and leave bb as the unknown leg.
  3. Square the substituted values.
  4. Subtract the squared leg from the squared hypotenuse to isolate b2b^2.
  5. Take the square root to find bb.

Answer: Substituting the values produces 72+b2=1227^2 + b^2 = 12^2. Squaring gives 49+b2=14449 + b^2 = 144. Subtracting yields b2=95b^2 = 95. The exact length is b=95 mmb = \sqrt{95}\text{ mm}. The rounded length is b≈9.75 mmb \approx 9.75\text{ mm}.


Check: Testing the rounded value gives 72+9.752=49+95.0625=144.06257^2 + 9.75^2 = 49 + 95.0625 = 144.0625, which is approximately 12212^2.


Example 3: Non-right-triangle non-example


Question: A triangle has side lengths of 4 m4\text{ m}, 6 m6\text{ m}, and 8 m8\text{ m}. Is this a right-angled triangle?


Method:

  1. Identify the longest given side as the potential hypotenuse.
  2. Substitute all three values into the formula.
  3. Check if both sides of the equation balance exactly.

Answer: The longest side is 88, so we test c=8c = 8. The equation becomes 42+62=824^2 + 6^2 = 8^2. Squaring gives 16+36=6416 + 36 = 64. Adding the legs gives 52≠6452 \neq 64. Because the sum of the squares of the shorter sides does not equal the square of the longest side, this is not a right-angled triangle.


Check: No reverse calculation is necessary because the direct test reliably proves the inequality.

Common mistakes

One common error is adding the side lengths directly without squaring them first. The mathematical relationship applies strictly to the squared areas, never to the linear lengths of the sides.


Another frequent mistake is placing a leg value into the cc position. The hypotenuse must always act as cc. If you substitute a leg in the cc position, you will mistakenly solve for a much shorter hypotenuse.


Finally, learners often forget to take the square root at the very end of the method. If your final answer is dramatically larger than the other two sides, you have likely stopped at the squared area instead of solving for the single side length.

Frequently asked questions

What is the Pythagorean theorem used for?

It is used to calculate the single unknown side length of a right-angled triangle whenever the other two lengths are known. It is heavily applied in construction, architecture, surveying, and navigation to establish exact distances and right angles.


Can the theorem be applied to any triangle?

No. The equality only holds true for a triangle containing exactly one 9090-degree angle.


Does it matter which leg is a and which leg is b?

No. Because addition allows values to be added in any order, a2+b2a^2 + b^2 produces the same total as b2+a2b^2 + a^2. The only strict requirement is that the longest side must always be assigned to the variable cc.

Practice questions

Question

A right triangle with vertices labeled P, Q, and R. The leg opposite P is p, the leg opposite R is r, and the hypotenuse opposite the right angle Q is q.

Which equation correctly represents the relationship between the sides of this right-angled triangle?

  • p2+q2=r2p^2 + q^2 = r^2

  • p2+r2=q2p^2 + r^2 = q^2

  • q2+r2=p2q^2 + r^2 = p^2

  • p+r=qp + r = q

Answer:

p2+r2=q2p^2 + r^2 = q^2

Question

A right triangle has legs of 99 units and 1212 units. What is the length of its hypotenuse?

  • 1515 units

  • 2121 units

  • 10.510.5 units

  • 225225 units

Answer:

1515 units

Question

The hypotenuse of a right triangle is 14 cm14\text{ cm} and one leg is 10 cm10\text{ cm}. What is the exact length of the missing leg?

  • 296 cm\sqrt{296}\text{ cm}

  • 96 cm\sqrt{96}\text{ cm}

  • 4 cm4\text{ cm}

  • 96 cm96\text{ cm}

Answer:

96 cm\sqrt{96}\text{ cm}

Question

A student attempts to find the missing leg bb when the hypotenuse c=10c=10 and leg a=6a=6 by writing b=102+62b = \sqrt{10^2 + 6^2}. What is their mistake?

  • The student forgot to square the 1010 and the 66 before adding them together.

  • The student should have divided the hypotenuse by the leg instead of adding them.

  • The student added the squared values instead of subtracting the squared leg from the squared hypotenuse.

  • The student correctly applied the theorem, and their method has no mistakes.

Answer:

The student added the squared values instead of subtracting the squared leg from the squared hypotenuse.

Question

A diagram shows a ladder leaning against a vertical wall forming a right triangle. The base is 5 meters from the wall, and the ladder reaches 12 meters high.

A ladder leans against a vertical wall. The base of the ladder is 5 meters5\text{ meters} away from the wall, and the ladder reaches 12 meters12\text{ meters} up the wall. How long is the ladder?

  • 17 m17\text{ m}

  • 10.9 m10.9\text{ m}

  • 169 m169\text{ m}

  • 13 m13\text{ m}

Answer:

13 m13\text{ m}