Formula and method for classifying a triangle
Every triangle is acute, right, or obtuse, and the category is determined entirely by its three side lengths — no protractor required. This calculator uses the Law of Cosines relationship between the sides to classify the triangle, then reports its angles, area, and perimeter.
How the calculation works
Label the sides so that c is the longest. The Law of Cosines states c² = a² + b² − 2ab·cos(C), where C is the angle opposite c. Since a, b, and c are all positive, the sign of cos(C) — and therefore whether C is acute, right, or obtuse — depends only on comparing c² to a² + b²:
- c² < a² + b²: angle C is less than 90°, and since C is the largest angle in the triangle, all three angles are under 90° — the triangle is acute.
- c² = a² + b²: angle C is exactly 90° — the triangle is right (this is the Pythagorean theorem).
- c² > a² + b²: angle C is greater than 90° — the triangle is obtuse.
Before classifying, the calculator checks the triangle inequality: the sum of any two sides must exceed the third (a + b > c, a + c > b, and b + c > a). If it fails, the three lengths cannot form a closed triangle at all. All three angles are computed exactly with the Law of Cosines (A = arccos((b² + c² − a²) / 2bc), and similarly for B and C, with the third angle found from 180° − A − B), the area comes from Heron's formula — area = √(s(s−a)(s−b)(s−c)) where s = (a + b + c) / 2 is the semi-perimeter — and the perimeter is simply a + b + c.
Common mistakes
- Checking the wrong side: the c² vs. a² + b² test only works when c is the longest side. Comparing a shorter side gives a meaningless result.
- Ignoring the triangle inequality: not every trio of positive numbers forms a triangle — 2, 3, and 10 do not, since 2 + 3 is less than 10.
- Mixed units: enter all three sides in the same unit (all inches, all meters, etc.); the calculator has no way to convert between them.
- Near-right triangles: when c² is very close to a² + b², small measurement errors can flip the classification between acute, right, and obtuse.
Real-world applications
- Carpentry and construction use the 3-4-5 right-triangle rule to square corners, and the same math confirms whether a frame is exactly square or slightly off (acute/obtuse)
- Trigonometry and geometry coursework rely on this classification as a first step before applying angle-specific formulas
- Land surveying and CAD drafting use side-length checks to validate triangular plots and components
- Structural engineering uses triangle geometry (trusses, bracing) where angle behavior under load depends on whether a triangle is acute, right, or obtuse