Is it a Right Triangle Calculator

Enter the three side lengths of a triangle to check whether it is a right triangle using the converse of the Pythagorean theorem (a² + b² = c²), plus its angle-based classification.

Quick Facts

Pythagorean theorem
a² + b² = c²
c is the hypotenuse — the side opposite the right angle, and always the longest side.
Right-triangle test
Compare a² + b² to c²
If they are equal (within rounding), the triangle has a 90° angle opposite the longest side.
Angle classification
a²+b² > c²: acute · =: right · < c²: obtuse
Based on the largest angle, which sits opposite the longest side c.
Valid triangle rule
a + b > c
The two shorter sides must add to more than the longest side, or no triangle exists.

Your Results

Calculated
Right Triangle?
-
Converse of the Pythagorean theorem
Triangle Type
-
Acute, right, or obtuse
Largest Angle
-
Opposite the longest side (law of cosines)
a² + b² vs c²
-
Sides re-labeled so c is the longest

Ready

Enter three side lengths, then press Calculate.

How to Determine if a Triangle Is a Right Triangle

A right triangle has exactly one 90° interior angle. The most reliable way to test three known side lengths is the converse of the Pythagorean theorem: label the longest side c and the other two sides a and b, then check whether a² + b² = c². If the equation holds, the angle opposite c is exactly 90°. This calculator also validates that the three lengths can even form a triangle, classifies the triangle as acute, right, or obtuse, and reports the largest angle using the law of cosines.

How the calculation works

First, the calculator checks the triangle inequality — the two shorter sides must add up to more than the longest side (a + b > c), otherwise no triangle exists and the calculation stops there. Next, it sorts your three inputs so the longest is always treated as c, regardless of which field you typed it into, and computes a² + b² and c² for comparison. If the two sums are equal (within a small rounding tolerance to account for measured, decimal-rounded lengths), the triangle is a right triangle. If a² + b² is larger, every angle is under 90° and the triangle is acute; if a² + b² is smaller, the angle opposite c exceeds 90° and the triangle is obtuse. The exact size of that largest angle comes from the law of cosines, cos(C) = (a² + b² − c²) / (2ab), which reduces to the right-angle case (C = 90°) exactly when a² + b² = c².

Common mistakes

  • Not identifying the longest side as c: the Pythagorean relationship only works when c is the longest side. Plugging in whichever side you entered third, instead of the actual longest side, gives a false negative.
  • Expecting exact equality with measured lengths: real-world measurements are rounded, so a²+b² and c² may differ by a tiny amount even for a true right triangle. A small tolerance (built into this calculator) accounts for that rounding.
  • Confusing "right triangle" with "isosceles right triangle": a right triangle only needs one 90° angle — it does not need two equal sides. Sides 3, 4, 5 form a right triangle with no equal sides at all.

Real-world applications

  • Carpentry and construction use the "3-4-5 rule" (and its multiples, like 6-8-10) to square corners and foundations without a protractor
  • Surveying and layout work verify that plots, rooms, or building footprints are truly rectangular by checking the diagonals
  • Engineering and physics use right-triangle relationships constantly when resolving forces or vectors into perpendicular components
  • Navigation and mapping use the Pythagorean theorem to find straight-line distances between points defined by perpendicular offsets

Frequently Asked Questions

How can I tell if three side lengths form a right triangle?
Sort the three lengths so c is the longest, then check the converse of the Pythagorean theorem: if a² + b² = c², the triangle has a 90° angle opposite the longest side. For example, sides 3, 4, and 5 give 3² + 4² = 9 + 16 = 25, which equals 5² = 25, so it is a right triangle.
What if a² + b² doesn't exactly equal c²?
If a² + b² is greater than c², every angle is less than 90° and the triangle is acute. If a² + b² is less than c², the angle opposite the longest side is greater than 90° and the triangle is obtuse. This calculator allows a small rounding tolerance so measured lengths that are extremely close still register as a right triangle.
Do any three side lengths always form a valid triangle?
No. The triangle inequality requires that the two shorter sides add up to more than the longest side (a + b > c). If that fails, the three lengths cannot form a triangle at all, right or otherwise, no matter what angle you check.
What is the 3-4-5 rule used in construction?
The 3-4-5 rule uses the fact that 3² + 4² = 5² to square a corner: measure 3 units along one edge and 4 units along the other, and if the diagonal between those points is exactly 5 units, the corner is a true 90°. Any multiple, such as 6-8-10 or 9-12-15, works the same way.