Triangle Calculator (SSS)

Enter 3 sides to instantly get the area using Heron's formula, calculate all angles, and check the triangle inequality.

Enter the three side lengths in any units. The calculator determines the triangle and its properties.

Preview: enter three sides

Advertisement

What this SSS triangle calculator does

This tool takes the three side lengths of a triangle (the SSS case in geometry) and returns everything that can be derived from them: the area, the perimeter, the semi-perimeter, all three angles, the classification by sides (equilateral, isosceles, or scalene), and the classification by angles (acute, right, or obtuse). It verifies the triangle inequality before computing anything, so impossible inputs are rejected with a clear explanation rather than a nonsensical output. A graph draws the triangle at the correct shape so you can see it.

Formulas used

Triangle inequality
\[ a + b > c \quad \text{and} \quad b + c > a \quad \text{and} \quad c + a > b \]
Perimeter and semi-perimeter
\[ P = a + b + c \qquad s = \frac{a + b + c}{2} \]
Area — Heron's formula
\[ A = \sqrt{s(s - a)(s - b)(s - c)} \]
Angles — law of cosines
\[ \cos A = \frac{b^2 + c^2 - a^2}{2bc} \]

and similarly for B and C. Angles sum to 180°.

Classify by angles (using longest side \(c\))
\(a^2 + b^2 = c^2\)  →  Right \(a^2 + b^2 > c^2\)  →  Acute \(a^2 + b^2 < c^2\)  →  Obtuse

Variable definitions

  • \(a, b, c\) — the three side lengths.
  • \(P\) — perimeter.
  • \(s\) — semi-perimeter (half the perimeter).
  • \(A, B, C\) — the three interior angles, in degrees.

How to find the angle of a triangle given 3 sides

If you know all three sides of a triangle (SSS), you cannot use the basic SOH CAH TOA trigonometry because you don't have a right angle. Instead, you must use the Law of Cosines.

To find the angle opposite side \(a\), use the formula: \[ \cos A = \frac{b^2 + c^2 - a^2}{2bc} \] Then, use the inverse cosine function (\(\arccos\) or \(\cos^{-1}\)) to find the angle in degrees. Repeat the process for the other two angles. As a built-in check, your three angles must add up to exactly \(180^\circ\). This calculator does all of this for you instantly.

Worked examples

Example 1: 3-4-5 right triangle

  1. Triangle inequality: \(3+4 > 5\) ✓, \(4+5 > 3\) ✓, \(5+3 > 4\) ✓. Valid.
  2. Perimeter: \(P = 3 + 4 + 5 = 12\), so \(s = 6\).
  3. Area (Heron): \(A = \sqrt{6 \times 3 \times 2 \times 1} = \sqrt{36} = \mathbf{6}\).
  4. Angles: \(\cos C = (3^2 + 4^2 - 5^2) / (2 \times 3 \times 4) = 0\), so \(C = 90^\circ\). \(A = 36.87^\circ\), \(B = 53.13^\circ\).
  5. Classification: Scalene, right triangle.

Example 2: Equilateral triangle with side 6

  1. All three sides equal, so equilateral.
  2. Perimeter: 18, \(s = 9\).
  3. Area: \(A = \sqrt{9 \times 3 \times 3 \times 3} = \sqrt{243} = 9\sqrt{3} \approx \mathbf{15.588}\).
  4. Angles: all \(60^\circ\).
  5. Classification: Equilateral, acute.

Example 3: Obtuse triangle 2-3-4

  1. Triangle inequality: \(2+3 > 4\) ✓. Valid.
  2. Perimeter: 9, \(s = 4.5\).
  3. Area: \(A = \sqrt{4.5 \times 2.5 \times 1.5 \times 0.5} = \sqrt{8.4375} \approx \mathbf{2.9047}\).
  4. Longest side \(c = 4\): \(a^2 + b^2 = 4 + 9 = 13\), \(c^2 = 16\). Since \(13 < 16\), the triangle is obtuse.
  5. Classification: Scalene, obtuse.

Example 4: Impossible triangle 1-2-5

  1. Check the triangle inequality: \(1 + 2 = 3\), and \(3 < 5\). Fails.
  2. No triangle with sides 1, 2, 5 exists.
  3. Result: Invalid triangle.

Advertisement

Why Heron's formula is useful

In Class 9 and 10 problems, you often know the three sides of a triangle but not its height. Heron's formula lets you find the area without computing a height first. It is exact when the sides are integers and the semi-perimeter times the three differences is a perfect square, and reduces to the familiar \(\frac{1}{2} \times \text{base} \times \text{height}\) otherwise. It is one of the most elegant results in elementary geometry because it depends only on the three side lengths, symmetric in \(a, b, c\).

Common mistakes to avoid

  • Not checking the triangle inequality. Sides 2, 3, 7 will not form a triangle. Always verify \(a + b > c\) for the longest side \(c\) before computing anything.
  • Using Heron's formula for an invalid triangle. If the inequality fails, one of the factors \((s - a)\), \((s - b)\), or \((s - c)\) becomes negative, and the formula gives a meaningless answer. Check validity first.
  • Forgetting to take the square root. Heron's formula involves \(\sqrt{\dots}\), not just the product. Skipping the square root gives the square of the area.
  • Mixing up which angle goes with which side. Angle \(A\) is opposite side \(a\). The law of cosines formula for \(A\) uses sides \(b\) and \(c\) in the numerator and \(2bc\) in the denominator.
  • Assuming every 3-4-5-shaped triple is right. Multiples like 6-8-10 are also right, but 3-4-6 is not — always check the Pythagorean identity \(a^2 + b^2 = c^2\).

FAQ

What is the triangle inequality?

The triangle inequality states that the sum of any two sides of a triangle must be greater than the third side. If \(a + b \le c\) for any ordering of sides \(a, b, c\), then no triangle with those side lengths exists.

What is Heron's formula?

Heron's formula gives the area of a triangle from its three sides: \(A = \sqrt{s(s - a)(s - b)(s - c)}\), where \(s\) is the semi-perimeter, \(s = \frac{a + b + c}{2}\). It works for every triangle, whether acute, right, or obtuse.

How do I find the angles of a triangle given three sides?

Use the law of cosines. For angle \(A\) opposite side \(a\): \(\cos A = \frac{b^2 + c^2 - a^2}{2bc}\), so \(A = \arccos\left(\frac{b^2 + c^2 - a^2}{2bc}\right)\). Repeat for each angle. The three angles should sum to \(180^\circ\).

How do I classify a triangle by its sides?

Equilateral: all three sides equal. Isosceles: exactly two sides equal. Scalene: no sides equal. This calculator also classifies by angles using the Pythagorean check: if \(a^2 + b^2 = c^2\) it is right; if greater, acute; if less, obtuse (assuming \(c\) is the longest side).

Related tools

Related Hira Academy resources

Heron's formula and the triangle inequality are covered in Class 9 mathematics. Revise the theory with our free Class 9 notes and Class 10 notes.

Advertisement

↑