Is It a Right Triangle Calculator
Test cases replayed : 5 of 5 match · Methodology · No outside source listed
Enter three side lengths in any order to find out whether they make a right triangle, an acute or obtuse triangle, or no triangle at all.
Result
Verdict
Sum of the squares of the two shorter sides
- Square of the longest side
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Side 1 (length units): enter 0 or more.
- Side 2 (same units): enter 0 or more.
- Side 3 (same units): enter 0 or more.
- Read the result: Verdict; the panel also shows Sum of the squares of the two shorter sides and Square of the longest side.
How this calculator works
By the converse of the Pythagorean theorem (Euclid's Elements, Book I, Proposition 48), a triangle with sides a ≤ b ≤ c is a right triangle exactly when a² + b² = c².
If a² + b² > c² the largest angle is acute, and if a² + b² < c² it is obtuse. Three lengths form a triangle only when the two shorter ones add up to more than the longest (triangle inequality). Decimal sides are compared with a relative tolerance of one billionth.
Worked example
| Side 1 (length units) | 5 |
|---|---|
| Side 2 (same units) | 12 |
| Side 3 (same units) | 13 |
| Verdict | Yes: a right triangle (the two shorter sides squared add up to the longest squared) |
|---|---|
| Sum of the squares of the two shorter sides | 169 |
| Square of the longest side | 169 |
Frequently asked questions
Is a triangle with sides 5, 12 and 13 a right triangle?
Yes: 5² + 12² = 25 + 144 = 169 = 13².
Is 4, 5, 6 a right triangle?
No: 16 + 25 = 41 is more than 36, so it is an acute triangle.