ABC Triangle Calculator

Enter a triangle's three side lengths — a, b, and c — to solve for the three interior angles (A, B, C), the area, and the perimeter using the Law of Cosines and Heron's formula.

Quick Facts

Angles
Law of Cosines (SSS)
cos(A) = (b² + c² − a²) / (2bc); each angle uses the same pattern, and A + B + C always equals 180°.
Area
Heron's Formula
Area = √(s(s−a)(s−b)(s−c)), where s = (a + b + c) / 2 is the semi-perimeter.

Your Results

Calculated
Area
-
Heron's formula
Perimeter
-
a + b + c
Angles A, B, C
-
Law of Cosines (degrees)
Classification
-
By sides and angles

Ready

Enter the three side lengths, then press Calculate.

Formula and method for the ABC Triangle Calculator

In geometry, a triangle's vertices are conventionally labeled A, B, and C, with lowercase side a opposite vertex A, side b opposite vertex B, and side c opposite vertex C. Given only the three side lengths — the SSS (side-side-side) case — this calculator solves the whole triangle: the three interior angles, the area, and the perimeter.

How the calculation works

First, the three lengths are checked against the triangle inequality: a valid triangle only exists if a + b > c, a + c > b, and b + c > a. If any of those fail, no triangle can be formed with those lengths.

The angles are found with the Law of Cosines, rearranged to solve for an angle from three known sides:

  • cos(A) = (b² + c² − a²) / (2bc)
  • cos(B) = (a² + c² − b²) / (2ac)
  • C = 180° − A − B (since a triangle's interior angles always sum to 180°)

The area is found with Heron's formula, which needs only the three side lengths (no angle or height required). First compute the semi-perimeter s = (a + b + c) / 2, then:

  • Area = √(s(s − a)(s − b)(s − c))

The perimeter is simply a + b + c. Finally, the triangle is classified two ways: by its sides (equilateral if all three are equal, isosceles if exactly two are equal, scalene if all three differ) and by its largest angle (acute if under 90°, right if exactly 90°, obtuse if over 90°).

Common mistakes

  • Failing the triangle inequality: lengths like 2, 3, and 10 cannot form a triangle — the two shorter sides (2 + 3 = 5) never reach the longer one. The calculator flags this instead of returning a false answer.
  • Mismatched units: all three sides must be in the same unit (all in feet, or all in centimeters) before entering them — mixing units silently produces a wrong triangle.
  • Mixing up which side is which: side a must be opposite vertex A, and so on. Swapping two sides swaps the angles that come out, even though the shape itself is unaffected.

Real-world applications

  • Carpentry and framing use the 3-4-5 rule (a special right triangle) to square corners without measuring angles directly
  • Surveying and navigation use triangulation, which relies on solving triangles from measured distances
  • Engineering and architecture check truss and bracket angles from known member lengths before fabrication
  • Geometry and trigonometry coursework use the Law of Cosines and Heron's formula as core problem-solving tools

Frequently Asked Questions

What does ABC triangle mean?
It refers to the standard way triangles are labeled in geometry: vertices A, B, and C, with lowercase side a opposite vertex A, side b opposite vertex B, and side c opposite vertex C. Entering the three side lengths (SSS) lets the calculator solve for the three angles, the area, and the perimeter.
Can any three side lengths form a triangle?
No. The triangle inequality requires that the sum of any two sides be greater than the third side (a + b > c, a + c > b, and b + c > a). If a set of lengths fails any of these checks, no triangle exists and the calculator flags the input as invalid.
How is the area calculated from three sides?
The calculator uses Heron's formula. First it finds the semi-perimeter s = (a + b + c) / 2, then computes area = the square root of s(s − a)(s − b)(s − c). This works for any valid triangle without needing to know an angle or a height.
How are the angles found from the side lengths?
Each angle is found with the Law of Cosines, for example cos(A) = (b² + c² − a²) / (2bc), then converted to degrees with the arccosine. The third angle can be found the same way, or more simply as 180° minus the other two, since a triangle's interior angles always sum to 180°.