Triangle Inequality Theorem Calculator
Enter three side lengths to check if they form a valid triangle, with all inequality conditions shown and full triangle properties calculated.
📐 What is the Triangle Inequality Theorem?
The triangle inequality theorem states that the sum of any two sides of a triangle must be strictly greater than the third side. For three side lengths a, b, and c to form a valid triangle, all three conditions must hold simultaneously: a + b > c, a + c > b, and b + c > a. If even one condition fails, the three lengths cannot form a triangle in Euclidean geometry, regardless of how close the numbers are to satisfying the inequality.
This theorem is foundational in geometry, trigonometry, and real-world measurement. Builders use it to verify whether three given lengths can frame a triangular structure. Surveyors apply it when triangulating land boundaries. Physicists use it to describe when three force vectors can achieve equilibrium in a closed triangle. Students encounter it when checking whether a proposed triangle with integer side lengths is valid before computing area or angles.
A common misconception is that only the largest side needs to be checked against the other two. While it is true that if the largest side is less than the sum of the other two, all three conditions are automatically satisfied, verifying all three conditions explicitly is useful for teaching and understanding why the theorem works. This calculator shows each condition individually with a clear pass or fail label and the actual arithmetic.
Beyond the simple validity check, this calculator also computes full triangle properties when the sides are valid: area via Heron's formula, perimeter, all three interior angles via the Law of Cosines, and the triangle type by both sides (equilateral, isosceles, scalene) and angles (acute, right, obtuse). This makes it a complete tool for quickly solving any triangle when all three sides are known, not just a validity checker.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 - Valid scalene triangle: 5, 7, 10
Check if sides 5, 7, 10 form a valid triangle
Example 2 - Invalid triangle: 2, 3, 8
Check if sides 2, 3, 8 can form a triangle
Example 3 - Equilateral triangle: 6, 6, 6
Verify and compute properties for an equilateral triangle with side 6
❓ Frequently Asked Questions
🔗 Related Calculators
What is the triangle inequality theorem?
The triangle inequality theorem states that the sum of any two sides of a triangle must be strictly greater than the third side. For three sides a, b, and c, all three conditions must hold: a + b > c, a + c > b, and b + c > a. If any condition fails, the sides cannot form a triangle. This is a necessary and sufficient condition for a valid triangle.
How do you check if three sides form a triangle?
Sort the three numbers from smallest to largest. Call them p, q, r where r is largest. The only condition you need to check is p + q > r, because the other two conditions are automatically satisfied when r is the largest. If p + q > r, the sides form a valid triangle. Example: check 5, 7, 10. Smallest two sum: 5 + 7 = 12 > 10. Valid triangle.
Can 3, 4, 8 form a triangle?
No. Check the critical condition: 3 + 4 = 7, which is not greater than 8 (7 is less than 8). The triangle inequality fails for condition a + b > c. These three lengths cannot form any triangle. The gap is 1 unit, meaning the two shorter sides fall exactly 1 unit short of reaching each other when the longest side is straight.
Can 5, 12, 13 form a triangle?
Yes. Check all three conditions: 5 + 12 = 17 > 13 (pass), 5 + 13 = 18 > 12 (pass), 12 + 13 = 25 > 5 (pass). All three inequalities hold. Moreover, 5 squared + 12 squared = 25 + 144 = 169 = 13 squared, so this is a right triangle and a Pythagorean triple.
What is a degenerate triangle?
A degenerate triangle occurs when the three sides satisfy exactly a + b = c for some arrangement (for example, sides 1, 2, 3: 1 + 2 = 3 exactly). The three points would be collinear, the area would be zero, and there would be no enclosed region. A degenerate triangle fails the strict triangle inequality (it needs strictly greater than, not equal). This calculator requires a + b > c, not a + b greater than or equal to c.
What triangle types does this calculator identify?
This calculator classifies valid triangles by two criteria. By sides: equilateral (all three sides equal), isosceles (exactly two sides equal), or scalene (all three sides different). By angles: acute (all angles less than 90 degrees), right (one angle equals exactly 90 degrees), or obtuse (one angle greater than 90 degrees). Both labels are shown simultaneously, for example Isosceles, Acute.
How does Heron's formula calculate triangle area?
Heron's formula computes triangle area from the three side lengths without needing angles or height. First compute the semi-perimeter s = (a + b + c) divided by 2. Then area = square root of (s times (s minus a) times (s minus b) times (s minus c)). Example: sides 3, 4, 5. s = 6. Area = sqrt(6 times 3 times 2 times 1) = sqrt(36) = 6 square units.
Why do we need all three conditions for the triangle inequality?
Technically, if you already know which side is longest, you only need to check one condition. But in general, without sorting, you must check all three: a + b > c, a + c > b, and b + c > a. This calculator checks all three and displays each result separately so you can see exactly which condition passes or fails, which is useful for educational understanding.
What angle does this calculator use the Law of Cosines for?
For a valid triangle with sides a, b, c, the calculator computes all three angles using the Law of Cosines: angle A = arccos((b squared + c squared minus a squared) divided by (2bc)), and similarly for B and C. The three angles are then classified as acute, right, or obtuse based on the largest angle. Angles are shown in decimal degrees.
Can the triangle inequality theorem be used in 3D geometry?
Yes. The triangle inequality extends to any metric space, meaning the concept applies to distances in 3D coordinates, graph edges, and abstract spaces. In 3D geometry, if three points are given by coordinates, you can compute the three distances between them and then check the triangle inequality to confirm they form a non-degenerate triangle.
What happens if two sides are equal in this calculator?
If exactly two sides are equal, the triangle is classified as isosceles. All three inequality conditions are still checked and displayed. An isosceles triangle with sides a, a, b is always valid as long as 2a > b and b > 0. The degenerate case a + a = b (where b = 2a) would fail the strict inequality and be flagged as invalid.
What is the relationship between the triangle inequality and the Pythagorean theorem?
The triangle inequality is a necessary condition for any triangle. The Pythagorean theorem is an additional equality condition that holds only for right triangles. A right triangle with legs a, b and hypotenuse c satisfies both: a + b > c (triangle inequality) AND a squared + b squared = c squared (Pythagorean). All Pythagorean triples form valid triangles that satisfy the triangle inequality.