Beginner

Triangle Inequality Calculator — Can These Sides Form a Triangle?

Enter three side lengths and instantly find out whether they can form a triangle. The calculator checks all three conditions of the triangle inequality theorem and shows the margin of validity.
a + b > c
5 + 7 = 12 > 9 ✓
a + c > b
5 + 9 = 14 > 7 ✓
b + c > a
7 + 9 = 16 > 5 ✓
Largest side
9
Sum of other two sides
12
Margin (sum − largest)
3
02.65.37.910.513.115.818.421a=5b=7c=9Side lengths on a number line — sum of two shorter sides must exceed the longest
Step by step
  1. 1

    Longest side

    max(5, 7, 9) = 9
  2. 2

    Sum of two shorter sides

    5 + 7 = 12
  3. 3

    Margin (sum − longest)

    12 − 9 = 3
    A positive margin confirms the triangle inequality: the two shorter sides together exceed the longest.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Three sides form a valid triangle if and only if a + b > c, a + c > b, and b + c > a. In practice, just verify that the sum of the two shorter sides exceeds the longest. Enter the three lengths to get an instant pass/fail and the margin of validity.

Formula
a + b > c AND a + c > b AND b + c > a
How this is calculated

The Triangle Inequality Theorem states that a valid (non-degenerate) triangle exists if and only if the sum of any two sides is strictly greater than the third side. There are three conditions to check — a + b > c, a + c > b, and b + c > a — and all three must hold simultaneously.

In practice, only the most demanding condition matters: if the sum of the two shorter sides exceeds the longest side, the other two inequalities are automatically satisfied. The "margin" (sum of the two shorter sides minus the longest side) tells you by how much the constraint is met or missed. A margin of zero corresponds to a degenerate triangle with zero area (three points on a straight line), and a negative margin means no triangle can exist.

This theorem applies to all triangles regardless of type — scalene, isosceles, equilateral, right, obtuse or acute. Knowing whether a set of lengths forms a valid triangle is the first sanity-check before any further computation such as area, angles, or altitudes.

Frequently asked questions

In principle yes, but in practice only one check is decisive: the sum of the two smaller sides must exceed the largest side. If that holds, the other two inequalities hold automatically. The calculator shows all three for completeness.

A margin of exactly zero means the three points are collinear — they form a degenerate "triangle" with zero area. Real applications require a strictly positive margin, so this case is treated as invalid.

Yes — the inequality is dimensionless; the same rule applies whether the sides are in millimetres, metres or light-years. Just ensure all three values use the same unit.

Also known as

can three sides form a triangle
triangle inequality theorem
valid triangle sides
triangle side check
triangle existence test
side splitter inequality
triangle inequality rule checker

APA

TG we-Calculate Editorial Team. (2026). Triangle Inequality Calculator — Can These Sides Form a Triangle? [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/triangle-inequality-calculator

Chicago

TG we-Calculate Editorial Team. "Triangle Inequality Calculator — Can These Sides Form a Triangle?." TG we-Calculate. 2026. https://we-calculate.com/calculator/triangle-inequality-calculator.

IEEE

TG we-Calculate Editorial Team, "Triangle Inequality Calculator — Can These Sides Form a Triangle?," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/triangle-inequality-calculator

BibTeX

@misc{wecalculate_triangle_inequality_calculator, title = {Triangle Inequality Calculator — Can These Sides Form a Triangle?}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/triangle-inequality-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?