terican

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.

FreeInstantNo signupOpen source

Inputs

Is Right Triangle (1 = Yes, 0 = No)

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Is Right Triangle (1 = Yes, 0 = No)

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

Frequently asked questions

How do I check if three side lengths form a right triangle?
Square each of the two shorter sides, add the results, and compare to the square of the longest side. If a² + b² equals c², the triangle is a right triangle. For example, sides 5, 12, and 13 give 25 + 144 = 169, and 13² = 169, confirming a perfect right triangle with zero error.
Does it matter which side I enter as Side A, B, or C?
No. The calculator automatically identifies the largest of the three entered values as the hypotenuse and labels the other two as the legs. Simply enter all three side lengths in any order. There is no need to pre-sort them or determine which side is the hypotenuse before running the calculation.
What is the tolerance setting and when should I change it?
The tolerance defines the maximum allowable relative error between a² + b² and c², expressed as a percentage. The default of 0.01% suits precise digital or textbook values. Raise it to 0.5% or 1% when working with physical tape-measure readings, hand-cut lumber, or any scenario where slight rounding in the measured values is unavoidable.
What are Pythagorean triples and why do they matter?
Pythagorean triples are sets of three positive integers satisfying a² + b² = c² exactly, with zero error. The most common are 3-4-5, 5-12-13, 8-15-17, and 7-24-25. Multiplying any triple by a constant also yields a valid right triangle (e.g., 6-8-10 is a scaled 3-4-5). Carpenters, surveyors, and test-makers rely on these triples constantly.
Can a right triangle have sides with decimal or fractional values?
Yes. The Pythagorean theorem applies to all positive real numbers, not just integers. For instance, sides of 1, 1, and √2 (approximately 1.4142) form a right triangle because 1² + 1² = 2 and (√2)² = 2. This is the 45-45-90 triangle, which appears in diagonal measurements of squares and is foundational in geometry and architecture.
How is a right triangle different from acute and obtuse triangles?
All three types are classified using the same Pythagorean comparison. When a² + b² equals c², the triangle is right-angled at exactly 90 degrees. When a² + b² exceeds c², all angles are less than 90 degrees (acute). When a² + b² is less than c², one angle exceeds 90 degrees (obtuse). The is it a right triangle calculator focuses on the equality case.