Do these three sides make a right triangle?
If the square of the longest side equals the sum of the squares of the other two, the triangle is right-angled, and the right angle faces the longest side. That is the converse of the Pythagoras theorem. The test is short, and the mistakes come from squaring the wrong side or trusting a close answer.
All the lengths below are invented for practice, with no units. For the theorem and its use on a known right triangle, see the Class 10 triangles chapter page.
The test
- Find the longest side. Look at all three before you decide.
- Square the two shorter sides and add them.
- Square the longest side on its own.
- If the two results are exactly equal, the triangle is right-angled. If not, it is not.
Example 1: sides already in order
Sides: 20, 21, 29. Longest: 29. Other squares: 400 + 441 = 841. Longest squared: 841.
The longest side is 29, so it is the only candidate for the hypotenuse. The other two squares are 20 × 20 = 400 and 21 × 21 = 441, and 400 + 441 = 841. Also 29 × 29 = 841. The two numbers are equal, so the triangle is right-angled, with the right angle opposite the side of length 29.
Check: The right angle sits between the two shorter sides, 20 and 21, and faces the longest side.
Example 2: sides given in a jumbled order
Sides: 36, 39, 15. Longest: 39. Other squares: 1296 + 225 = 1521. Longest squared: 1521.
Scan all three numbers before you start, because the list is not sorted. The longest is 39. Square the other two: 36 × 36 = 1296 and 15 × 15 = 225, so 1296 + 225 = 1521. And 39 × 39 = 1521. Equal, so the triangle is right-angled.
Check: Every side is a multiple of 3: 12, 13 and 5, times 3. Since 5, 12 and 13 satisfy the same relation, scaling by 3 keeps it true.
Example 3: decimal sides
Sides: 2.5, 6, 6.5. Longest: 6.5. Other squares: 6.25 + 36 = 42.25. Longest squared: 42.25.
The longest side is 6.5. Squares of the others: 2.5 × 2.5 = 6.25 and 6 × 6 = 36, and the sum is 42.25. Then 6.5 × 6.5 = 42.25. Equal again, so it is a right triangle.
Check: Double every side to remove the decimals and get 5, 12 and 13. That is a right triangle, and scaling does not change the angles.
A near miss that is not a right triangle
Sides: 8, 9, 12. Longest: 12. Other squares: 64 + 81 = 145. Longest squared: 144.
The longest side is 12 and 12 × 12 = 144. The other squares are 64 and 81, which add to 145. The difference is only 1, but 145 is not 144, so this is not a right triangle. Because the sum is greater than 144, the angle opposite the side of length 12 is a little less than a right angle. If you square-root 145 you get about 12.04, which is close to 12, but close is not equal.
The wrong-hypotenuse trap
Take the right triangle 15, 36, 39 from Example 2 and test it with the wrong side as the candidate. Using 36 as the largest, you compare 36 × 36 = 1296 with 15 × 15 + 39 × 39 = 225 + 1521 = 1746. They differ, so you would wrongly decide it is not a right triangle. The relation only holds with the longest side on its own. Sort first, then square.
Try two yourself
Are the sides 16, 30 and 34 a right triangle? Are the sides 16, 9 and 12 a right triangle?
Show the worked self-check
First: the longest is 34. 16 × 16 = 256 and 30 × 30 = 900, and the sum is 1156. 34 × 34 = 1156. Equal, so yes, it is a right triangle.
Second: the longest is 16. 9 × 9 = 81 and 12 × 12 = 144, and the sum is 225. 16 × 16 = 256. 225 is less than 256, so it is not a right triangle, and the angle opposite 16 is more than 90 degrees.
Limits of this page
- The test needs exact side lengths. Measured values with rounding need a stated tolerance, which is outside this page.
- It tells you whether the angle opposite the longest side is a right angle. The other two angles are then acute.
- Equal squares give exactly one right angle, the one opposite the longest side.
- The lengths are practice values, not a textbook exercise key.
Common questions
Why square only the longest side on its own?
In a right triangle, the hypotenuse is the longest side, so the equation has the longest square alone on one side. If you pick a shorter side for that role, the equation fails even for a true right triangle.
What does the test say when the two sides are not equal?
If the two smaller squares add to less than the longest square, the largest angle is more than 90 degrees. If they add to more, all angles are less than 90 degrees. Only equality gives a right angle.
Can I use rounded square roots to compare?
It is risky. Sides 8, 9 and 12 give a square root of 145 that rounds to 12.04, which looks close to 12. Compare the squares as exact numbers instead. 145 and 144 are clearly different.
Do I need to check that the sides make a triangle first?
If the squares of the two shorter sides add to the longest square, the sides already make a triangle, because the two shorter sides together are longer than the longest side. That follows from the algebra.
Sources and scope
Source checked . It states the converse of the Pythagoras theorem for a triangle. The side lengths, traps and practice here are original EZT work.
- NCERT Class 10 Mathematics, Chapter 6: Triangles, on the converse of the Pythagoras theorem.