Is It a Right Triangle Calculator
Check three side lengths for a right triangle using the Pythagorean relation and the strict triangle inequality; 1 means yes, 0 means no.
Formula
For longest side L: other sides squared sum to L².
Right triangle? 1=yes, 0=no ≈ (1)×(1-min(1,ceil(max(0,(0)-0.0000000001))))
How to use
- Enter all three side lengths in cm.
- The order of the sides does not matter.
- Read 1 for a right triangle or 0 otherwise.
Examples
- Sides 3, 4, 5 return 1; sides 1, 2, 3 return 0.
Frequently asked questions
How is rightness checked?
The squared-side residual divided by L² must be at most 10⁻¹⁰.
Can a flat triangle pass?
No. The two shorter sides must sum to more than the longest side.
Does 1 prove measured lengths are exact?
No. The numerical tolerance handles rounding; measurement uncertainty is not modeled.
Sources
Updated: