A triangle drawn on paper can look like it has a perfect 90-degree corner and still be off by several degrees, which is exactly why the question "is the following shape a right triangle?Practically speaking, " cannot be answered by eye alone. Learning how to test a triangle for a right angle — using the Pythagorean theorem, slope, angle measurement, or the distance formula — gives you a reliable, repeatable method that works whether you are holding a ruler, solving a geometry problem, or checking whether a picture frame is square.
What Exactly Makes a Triangle a Right Triangle?
Every triangle has three sides and three interior angles that add up to 180 degrees. A right triangle (also called a right-angled triangle) is simply the special case where one of those angles measures exactly 90 degrees It's one of those things that adds up. Practical, not theoretical..
That 90-degree angle creates a very specific structure:
- The two sides that form the right angle are called the legs (often labeled a and b).
- The side opposite the right angle is the hypotenuse (c), and it is always the longest side.
- The two non-right angles are acute and must add up to 90 degrees, since 180 − 90 = 90.
This last point is worth pausing on. Plus, if a triangle has a right angle, the other two angles are automatically complementary. That single fact is the foundation of trigonometry, and it is why right triangles appear everywhere from roof pitches to GPS triangulation.
Four Reliable Ways to Check Whether a Shape Is a Right Triangle
1. The Pythagorean Theorem (the Converse Test)
The most common method uses the converse of the Pythagorean theorem. The original theorem says that in a right triangle, a² + b² = c². The converse says the reverse is also true: **if the squares of the two shorter sides add up to the square of the longest side, the triangle must be a right triangle.
The procedure is always the same:
- Identify the longest side and label it c.
- Square all three side lengths.
- Add the two smaller squares.
- Compare that sum to the largest square.
If the two values match, the triangle is right. If they do not match, it is not.
Worked example — sides 6, 8, and 10:
- Longest side: c = 10, so c² = 100
- Other two: 6² = 36 and 8² = 64
- Sum: 36 + 64 = 100
- Since 100 = 100, this is a right triangle, with the right angle between the sides of length 6 and 8.
Worked example — sides 4, 5, and 6:
- Longest side: c = 6, so c² = 36
- Other two: 4² = 16 and 5² = 25
- Sum: 16 + 25 = 41
- Since 41 ≠ 36, this is not a right triangle.
2. The Slope Test (for Shapes on a Coordinate Grid)
When a triangle is drawn on the x-y plane, you can test its corners using slope. Two lines are perpendicular exactly when their slopes are negative reciprocals of each other — meaning one slope is m and the other is −1/m, so their product is −1.
This is the bit that actually matters in practice Simple, but easy to overlook..
Find the slope of each side using:
m = (y₂ − y₁) / (x₂ − x₁)
Then multiply the slopes of each pair of sides that meet at a vertex. If any pair multiplies to −1, that corner is a right angle.
Watch for two special cases: a vertical line has an undefined slope, and a horizontal line has a slope of 0. A vertical side and a horizontal side are always perpendicular, so no calculation is needed when you spot that pairing.
3. Measuring the Largest Angle Directly
If you have a physical object, a protractor, a set square, or a digital angle finder, you can measure the largest angle directly. This is fast but
4. Using the Law of Cosines (or Vectors/Dot Product)
Even without a protractor, you can determine whether a shape forms a right triangle by applying the Law of Cosines to the side lengths you already know. For any triangle with sides (a), (b) and included angle (C) opposite side (c),
[ c^{2}=a^{2}+b^{2}-2ab\cos C . ]
Re‑arranged,
[ \cos C=\frac{a^{2}+b^{2}-c^{2}}{2ab}. ]
If the numerator becomes zero, (\cos C=0) and therefore (C=90^{\circ}). Because the side opposite the right angle is always the **long