Skip to main content
math

Triangle Inequality Calculator

Check whether three given side lengths can form a valid triangle using the triangle inequality theorem. Enter three lengths to verify all three conditions (a+b>c, a+c>b, b+c>a) and determine if a valid triangle exists, essential for geometry validation.

Reviewed by Christopher FloiedUpdated

This free online triangle inequality calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Length of the first side

Length of the second side

Length of the third side

Results

Valid Triangle (1 = Yes, 0 = No)

1

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Triangle Inequality Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Triangle Inequality Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Triangle Inequality Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Triangle Inequality Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • Use it to explore the behavior of mathematical functions across a range of inputs.

About This Calculator

The Triangle Inequality Calculator is a free mathematical calculation tool for students, educators, and professionals who need quick, reliable results. Check whether three given side lengths can form a valid triangle using the triangle inequality theorem. Enter three lengths to verify all three conditions (a+b>c, a+c>b, b+c>a) and determine if a valid triangle exists, essential for geometry validation. The underlying algorithms implement well-established mathematical formulas and numerical methods. Results are computed instantly in the browser. This tool is useful for learning, verification of hand calculations, and rapid exploration of mathematical relationships. All computation happens locally — no data is sent to a server.

About Triangle Inequality Calculator

The Triangle Inequality Calculator checks whether three given side lengths can form a valid triangle. The triangle inequality theorem states that the sum of any two sides must be greater than the third side. All three conditions (a+b>c, a+c>b, and b+c>a) must hold simultaneously. This is a fundamental result in Euclidean geometry with applications in distance verification, network routing (triangle inequality in metric spaces), computer graphics (mesh validation), and structural engineering (ensuring valid triangular bracing). The calculator returns 1 for valid triangles and 0 for invalid combinations, along with the perimeter when valid.

The Math Behind It

The triangle inequality theorem states: for any triangle with sides a, b, c, the sum of any two sides must be strictly greater than the third. This means a + b > c, a + c > b, and b + c > a must all hold. If any condition fails, no triangle with those side lengths exists. The proof is geometric: the shortest path between two points is a straight line. If you travel from vertex A to vertex C directly, the distance is b. If you go via vertex B, the distance is a + c. Since the indirect path cannot be shorter, a + c >= b. The strict inequality (>) applies because the path through B is strictly longer unless B lies on segment AC (degenerate case). The triangle inequality generalizes to all metric spaces. In fact, it is one of the three axioms defining a metric: (1) d(x,y) >= 0 with equality iff x=y; (2) d(x,y) = d(y,x); (3) d(x,y) + d(y,z) >= d(x,z). This makes it fundamental in analysis, topology, and theoretical computer science. In practice, the most efficient check is to verify only that the sum of the two shorter sides exceeds the longest side. If we sort so that a <= b <= c, then we only need to verify a + b > c (the other two conditions are automatically satisfied). The equality case a + b = c gives a degenerate triangle where the three points are collinear. Applications include: GPS validation (checking if measured distances between three points are consistent), computer graphics (validating triangular mesh elements), and optimization (the triangle inequality provides lower bounds in traveling salesman problems).

Formula Reference

Triangle Inequality Theorem

a + b > c, a + c > b, b + c > a (all three must hold)

Variables: a, b, c = side lengths of the triangle

Worked Examples

Example 1: Valid Triangle: 5, 7, 10

Check if sides 5, 7, and 10 can form a triangle.

Step 1:Check a + b > c: 5 + 7 = 12 > 10 (true)
Step 2:Check a + c > b: 5 + 10 = 15 > 7 (true)
Step 3:Check b + c > a: 7 + 10 = 17 > 5 (true)
Step 4:All three conditions satisfied

Yes, sides 5, 7, 10 form a valid triangle with perimeter 22.

Example 2: Invalid Triangle: 1, 2, 5

Check if sides 1, 2, and 5 can form a triangle.

Step 1:Check a + b > c: 1 + 2 = 3 > 5? NO (3 < 5)
Step 2:First condition fails, so this is not a valid triangle

No, sides 1, 2, 5 cannot form a triangle.

Common Mistakes & Tips

  • !Checking only one condition instead of all three. All three inequalities must hold: a+b>c AND a+c>b AND b+c>a.
  • !Using >= instead of >. The strict inequality > is needed for a proper (non-degenerate) triangle. When a+b=c, the three points are collinear.
  • !Confusing the triangle inequality with conditions for specific triangle types. This theorem applies to ALL triangles, not just specific types.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

What happens when a + b = c exactly?

This is the degenerate case: the three points are collinear (lie on a straight line) and form a 'triangle' with zero area. Mathematically, this is not considered a proper triangle.

Do I need to check all three conditions?

Technically, you only need to check that the sum of the two shortest sides exceeds the longest side. If a <= b <= c, then a + b > c is sufficient because the other two conditions automatically hold. But checking all three is safer and avoids sorting errors.

Does the triangle inequality apply to non-Euclidean geometry?

Yes, with modifications. In spherical geometry, a reversed triangle inequality can hold for large triangles. In hyperbolic geometry, the inequality is always strict. The triangle inequality axiom is part of the general definition of a metric space.