Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Is It a Right Triangle Calculator

Side 1 (length units): enter 0 or more. Prefilled example: 5.

Side 2 (same units): enter 0 or more. Prefilled example: 12.

Side 3 (same units): enter 0 or more. Prefilled example: 13.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Side 1 (length units): enter 0 or more.
  2. Side 2 (same units): enter 0 or more.
  3. Side 3 (same units): enter 0 or more.
  4. 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
VerdictYes: a right triangle (the two shorter sides squared add up to the longest squared)
Sum of the squares of the two shorter sides169
Square of the longest side169

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.

Questions answered

Related calculators