Geometry

Pythagorean Theorem Practice Problems

The Pythagorean theorem says that in a right triangle the squares of the two legs add up to the square of the hypotenuse: a2+b2=c2a^2 + b^2 = c^2. Use the solver to run your own numbers and see each step.

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

Try it with your numbers

Show every step

The problems on this page run from one-step arithmetic to algebra, coordinates and 3D boxes, and each comes with a worked solution. The explanations focus on the places where points are actually lost, and the full lesson on the Pythagorean theorem is there if you want the basics first.

How do you solve Pythagorean theorem practice problems?

Every problem comes down to five moves, and the order matters more than the arithmetic. Most lost points come from the first and fourth moves, not from squaring or square roots.

  1. Find the right angle and label the side opposite it cc. That is the hypotenuse. Do this before reading any numbers, because the letters in a diagram rarely match the formula.
  2. Write a2+b2=c2a^2 + b^2 = c^2 with the known values in place and a letter for the unknown.
  3. Square each known number.
  4. Add if the unknown is the hypotenuse. Subtract if the unknown is a leg.
  5. Take the square root, then simplify or round as the question asks.

Here is the whole process on legs 44 and 77:

42+72=c2  ⇒  16+49=65  ⇒  c=65≈8.064^2 + 7^2 = c^2 \;\Rightarrow\; 16 + 49 = 65 \;\Rightarrow\; c = \sqrt{65} \approx 8.06

The radical stays as 65\sqrt{65} because 65=5⋅1365 = 5 \cdot 13 has no perfect-square factor. Remember that the theorem only describes right triangles, so first confirm that you have one. The page on types of triangles shows how to spot the right angle, including when it is only implied by perpendicular sides or a rectangle’s corner.

Quick check

A right triangle has legs 1.51.5 and 22. Find the hypotenuse.

Why does the Pythagorean theorem work?

Square of side 7 with four 3-4-5 triangles leaving a tilted square of area 25
A 3-4-5 triangle copied four times inside a 7 by 7 square leaves a middle square of area 25, which is 5².

The whole theorem comes from comparing one area in two ways. Draw a big square with side a+ba + b. Place four copies of your right triangle inside it, one in each corner, so the leftover space in the middle is a tilted square with side cc.

The big square’s area is (a+b)2(a+b)^2. It also equals the four triangles plus the tilted square:

(a+b)2=4⋅12ab+c2  ⇒  a2+2ab+b2=2ab+c2  ⇒  a2+b2=c2(a+b)^2 = 4 \cdot \tfrac{1}{2}ab + c^2 \;\Rightarrow\; a^2 + 2ab + b^2 = 2ab + c^2 \;\Rightarrow\; a^2 + b^2 = c^2

The theorem is about area

a2a^2, b2b^2 and c2c^2 are literally the areas of squares built on each side. Any similar shape works, so semicircles on the three sides also have areas that add up the same way.

This is why the formula squares lengths instead of adding them: lengths add along a line, but the theorem balances areas, which is why the area of a square shows up at its heart. There are over a hundred proofs, and a few of the cleanest are collected in the proofs of the Pythagorean theorem.

How do you find a missing leg without adding by mistake?

Right triangle with hypotenuse 17 and leg 8 solved by multiplying 9 by 25
With hypotenuse 17 and leg 8, the difference of squares gives 9 × 25 = 225, so the missing leg is 15.

When a hypotenuse is given, the unknown is a leg and the equation rearranges to b2=c2−a2b^2 = c^2 - a^2. The trap: the formula is printed as a sum, so tired students add anyway and get a “leg” longer than the hypotenuse. A leg can never be longer than the hypotenuse, so one glance at the answer catches this.

Take a hypotenuse of 1212 and a leg of 99:

b2=122−92=144−81=63b^2 = 12^2 - 9^2 = 144 - 81 = 63

b=63=9⋅7=37≈7.94b = \sqrt{63} = \sqrt{9 \cdot 7} = 3\sqrt{7} \approx 7.94

The result 7.947.94 is less than 1212, so it passes the sanity check. To simplify a radical quickly, pull out the largest perfect square, here 99.

There is also a faster route that skips big squares. Since c2−a2=(c−a)(c+a)c^2 - a^2 = (c - a)(c + a), the same problem becomes 3⋅21=633 \cdot 21 = 63 in your head. With hypotenuse 1717 and leg 88 you get 9⋅25=2259 \cdot 25 = 225, so the other leg is 1515 with almost no writing.

Pythagorean triples: the fastest way to check practice answers

A Pythagorean triple is a set of whole numbers that satisfies the formula exactly, so no square root ever gets messy. Recognizing one lets you answer in seconds, and any scaled copy counts too, because multiplying all three sides by the same number gives a similar triangle with the same angles. The full list and the pattern behind it live on the Pythagorean triples page.

Core triple Scaled versions
3,4,53, 4, 5 6,8,106, 8, 10 and 9,12,159, 12, 15 and 30,40,5030, 40, 50
5,12,135, 12, 13 10,24,2610, 24, 26 and 15,36,3915, 36, 39
8,15,178, 15, 17 16,30,3416, 30, 34
7,24,257, 24, 25 14,48,5014, 48, 50

Here is a test most students never learn. In every triple, some leg is a multiple of 33, some leg is a multiple of 44, and some side is a multiple of 55. So 7,11,137, 11, 13 cannot be a triple, and you know it before squaring anything.

Builders use the 33-44-55 shape to square a corner. Measure 66 ft along one wall and 88 ft along the other. If the diagonal between the marks is exactly 1010 ft, the corner is a true right angle. The other two shapes that come up in geometry, the 4545-4545-9090 and the 3030-6060-9090, have their own ratios in special right triangles.

Quick check

A right triangle has a hypotenuse of 6565 and one leg of 2525. Find the other leg.

Pythagorean theorem practice with algebra and variables

Algebra problems give the sides as expressions and ask you to find the variable. The equation is the same, but the expansion is where errors creep in. Suppose the legs are xx and x+7x + 7 and the hypotenuse is x+8x + 8:

x2+(x+7)2=(x+8)2x^2 + (x+7)^2 = (x+8)^2

2x2+14x+49=x2+16x+642x^2 + 14x + 49 = x^2 + 16x + 64

x2−2x−15=0  ⇒  (x−5)(x+3)=0x^2 - 2x - 15 = 0 \;\Rightarrow\; (x-5)(x+3) = 0

The roots are x=5x = 5 and x=−3x = -3. A length cannot be negative, so only x=5x = 5 survives, giving sides 55, 1212 and 1313. Check: 25+144=16925 + 144 = 169.

The trap is (x+7)2(x+7)^2. It is not x2+49x^2 + 49, and the missing middle term 14x14x is exactly what turns the equation into a quadratic. If the factoring is not obvious, the quadratic formula practice problems will build that skill.

Squaring also hides signs, which is why a negative root can appear as a false answer. One more fact worth knowing: the 33-44-55 triangle is the only right triangle whose sides are three consecutive integers. Setting up x2+(x+1)2=(x+2)2x^2 + (x+1)^2 = (x+2)^2 gives x=3x = 3 and nothing else.

How do you tell if a triangle is right, acute or obtuse?

The converse of the theorem lets you test any three side lengths. Call the longest side cc and compare a2+b2a^2 + b^2 with c2c^2:

a2+b2=c2 (right),a2+b2>c2 (acute),a2+b2<c2 (obtuse)a^2 + b^2 = c^2 \text{ (right)}, \qquad a^2 + b^2 > c^2 \text{ (acute)}, \qquad a^2 + b^2 < c^2 \text{ (obtuse)}

For sides 77, 99 and 1111: 49+81=13049 + 81 = 130, which is greater than 112=12111^2 = 121, so every angle is acute. For 44, 55 and 77: 16+25=4116 + 25 = 41, which is less than 4949, so the largest angle is obtuse. The reason comes from the law of cosines, c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C: the right angle is exactly the case where cos⁡C=0\cos C = 0 and the extra term vanishes. The page on types of angles reviews the three categories.

Longest side goes alone

If you square the wrong side as cc, the test gives nonsense. Sort the three lengths first, and check that the two shorter ones sum to more than the longest.

That last condition is the triangle inequality theorem. Sides 22, 33 and 77 fail it, so no triangle exists, and the Pythagorean test would be meaningless.

Pythagorean theorem practice with distance and 3D boxes

The distance formula is the theorem in disguise. Any two points form the corners of a right triangle whose legs are the horizontal and vertical differences. For (−4,5)(-4, 5) and (8,−4)(8, -4):

d2=(8−(−4))2+(−4−5)2=122+(−9)2=144+81=225d^2 = (8-(-4))^2 + (-4-5)^2 = 12^2 + (-9)^2 = 144 + 81 = 225

d=15d = 15

Subtracting a negative turns into adding, and the squaring erases the sign of −9-9, so the order of the points never matters. The same idea gives the equation of a circle: a circle is every point at one fixed distance from the center.

In three dimensions, apply the theorem twice. A box that is 33 by 44 by 1212 has a floor diagonal of 32+42=5\sqrt{3^2 + 4^2} = 5. That diagonal and the height form a second right triangle:

d=52+122=169=13d = \sqrt{5^2 + 12^2} = \sqrt{169} = 13

The shortcut is d2=l2+w2+h2d^2 = l^2 + w^2 + h^2. It tells you the longest rod that fits inside a rectangular prism, which is a standard shipping and packing question.

Quick check

Find the distance between (1,1)(1, 1) and (9,16)(9, 16).

How do you check a Pythagorean theorem answer?

Four checks take under ten seconds and catch nearly every error:

  • The hypotenuse must be the longest side, and each leg must be shorter than it.
  • Estimate the root between two perfect squares. Since 64<65<8164 < 65 < 81, 65\sqrt{65} lies between 88 and 99, close to 88.
  • Plug the answer back in and confirm that a2+b2a^2 + b^2 really equals c2c^2.
  • Look at the units and the form requested: exact radical, decimal, or a labelled length such as feet.

Try this: Without a calculator, place 85\sqrt{85} between two whole numbers using perfect squares, then guess the first decimal. Check it against 9.229.22 and note how close the estimate lands.

The method also has limits. It cannot be used on a triangle without a right angle, and a diagram that only looks square is not proof. For a general triangle, use the law of cosines for a missing side. Scores of exam errors come from using a2+b2=c2a^2 + b^2 = c^2 on an isosceles or acute triangle just because it looks tidy. Confirm the right angle first, then run the five moves.

Practice problems

0 of 10 solved

  1. A right triangle has legs 66 and 88. Find the hypotenuse.

  2. A right triangle has a hypotenuse of 2525 and one leg of 77. Find the other leg.

  3. A right triangle has legs 55 and 99. Find the hypotenuse to two decimal places.

  4. A right triangle has a hypotenuse of 1111 and one leg of 66. Find the other leg to two decimal places.

  5. A 2020 ft ladder leans on a wall with its base 88 ft from the wall. How high up the wall does it reach? Give the exact value and a decimal to two places.

  6. Triangle sides are 88, 1111 and 1414. Is the triangle right, acute or obtuse?

  7. Find the distance between (−3,2)(-3, 2) and (5,−4)(5, -4).

  8. An isosceles right triangle has a hypotenuse of 1010. Find the length of each leg.

  9. The legs of a right triangle are xx and x+1x + 1, and the hypotenuse is 2929. Find xx.

  10. A box measures 66 by 88 by 2424. Find the length of its longest interior diagonal.

Common questions

What is the Pythagorean theorem formula?

For a right triangle with legs aa and bb and hypotenuse cc, the formula is a2+b2=c2a^2 + b^2 = c^2. The hypotenuse is the side opposite the right angle and is always the longest side.

How do you know which side is the hypotenuse?

Find the right angle (the small square marker) and look straight across from it. That side is the hypotenuse, no matter how the triangle is rotated or which letters label it.

Can the Pythagorean theorem be used on any triangle?

No, only on right triangles. For other triangles, compare a2+b2a^2 + b^2 with c2c^2 to classify the angle, or use the law of cosines to find a missing side.

How do you find a missing leg using the Pythagorean theorem?

Subtract instead of adding: b2=c2−a2b^2 = c^2 - a^2, then take the square root. The result must be smaller than the hypotenuse, which is a quick way to catch a mistake.

Should the answer be a simplified radical or a decimal?

Follow the question. If it says exact, simplify the radical, for example 63=37\sqrt{63} = 3\sqrt{7}. If it asks for a rounded value or involves a real object, give a decimal with units.

What are the most common Pythagorean triples?

The ones worth memorizing are 33-44-55, 55-1212-1313, 88-1515-1717 and 77-2424-2525. Every whole-number multiple of a triple, such as 66-88-1010, is also a triple.

Up next