Last verified · v1.0
Calculator · math
Is It A Right Triangle? Calculator
Check if three side lengths form a right triangle using the Pythagorean theorem. Enter sides in any order — hypotenuse detected automatically.
Inputs
Is Right Triangle (1 = Yes, 0 = No)
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
How to Determine Whether Three Side Lengths Form a Right Triangle
A right triangle contains exactly one 90-degree interior angle. The side opposite that angle — the hypotenuse — is always the longest side. The two shorter sides are called legs. To verify whether any triangle is a right triangle, apply the Pythagorean theorem, one of the most fundamental identities in mathematics.
The Pythagorean Theorem Formula
Given three side lengths a, b, and c, where c is the longest side, the triangle is a right triangle if and only if:
a² + b² = c²
This identity was codified by the Greek philosopher Pythagoras (c. 570–495 BCE), though Babylonian clay tablets from around 1800 BCE demonstrate its practical application even earlier. According to D. Joyce at Clark University, the Pythagorean theorem is the foundational identity of right-triangle trigonometry and one of the most applied theorems across all of mathematics and physics.
Automatic Hypotenuse Detection
There is no need to sort the input values or pre-identify the hypotenuse. The calculator automatically selects the largest of the three entered values as c and assigns the remaining two values as a and b. It then evaluates a² + b² against c² and reports the result.
Tolerance and Real-World Measurement Error
Physical measurements are never exact. A carpenter reading a tape measure, a student rounding a square root, or a surveyor estimating a field distance all introduce small numerical discrepancies. To handle this, the calculator includes a configurable tolerance parameter (default: 0.01%) representing the maximum allowable relative difference between a² + b² and c². The relative error is calculated as:
Relative Error = |a² + b² − c²| ÷ c² × 100%
If this percentage falls at or below the tolerance, the triangle is classified as a right triangle. Raising the tolerance to 1% accommodates rough field measurements; setting it near 0% demands near-perfect numerical precision.
Step-by-Step Calculation Examples
Example 1 — Classic 3-4-5 triple:
- Side a = 3, Side b = 4, Side c = 5 (longest)
- a² + b² = 9 + 16 = 25
- c² = 25
- Relative error = 0.00%
- Result: Yes, it is a right triangle.
Example 2 — Slightly imprecise field measurement (sides 3.002, 4, and 5):
- a² + b² = 9.012 + 16 = 25.012
- c² = 25
- Relative error = 0.048%
- At default tolerance 0.01%: Not a right triangle (error exceeds threshold)
- At tolerance 0.05%: Right triangle confirmed
Common Pythagorean Triples to Recognize
Pythagorean triples are integer sets satisfying a² + b² = c² exactly. Recognizing them speeds up geometry, construction layout, and standardized test problems:
- 3, 4, 5 — the most widely used triple
- 5, 12, 13 — common in architecture and carpentry
- 8, 15, 17 — useful in surveying
- 7, 24, 25 — appears in engineering layouts
- Scaled versions: 6-8-10, 9-12-15, 10-24-26 all work as multiples of base triples
Real-World Applications
Verifying a right angle without a physical square is essential across many disciplines:
- Construction: The 3-4-5 rule confirms that walls meet at exactly 90 degrees. Mark 3 feet along one wall, 4 feet along the adjacent wall, and verify the diagonal measures 5 feet.
- Navigation and aviation: Pilots resolve wind correction angles and groundspeed using right triangle vector decomposition.
- Physics: As explained in the UMass Physics 131 appendix on trigonometry, right triangle relationships are essential for decomposing force vectors and solving classical mechanics problems.
- Computer graphics: The distance formula d = √((x&sub2;−x&sub1;)² + (y&sub2;−y&sub1;)²) is a direct application of the Pythagorean theorem on a coordinate plane.
- Tile and flooring installation: Diagonal measurements across a room confirm square corners before laying tiles.
Acute, Right, and Obtuse: How the Math Distinguishes Them
The same comparison that identifies a right triangle also classifies any valid triangle:
- a² + b² = c²: Right triangle (exactly one 90° angle)
- a² + b² > c²: Acute triangle (all angles below 90°)
- a² + b² < c²: Obtuse triangle (one angle above 90°)
For a comprehensive treatment of right triangle properties and their trigonometric extensions, the Portland Community College right triangle trigonometry guide provides detailed worked examples and angle relationships.
Reference