Triangle Angle Calculator
Calculate all three angles of a triangle from its sides using the Law of Cosines, or find the missing angle from two known angles.
What is the Triangle Angle Calculator?
The Triangle Angle Calculator finds all three interior angles of any triangle using one of two methods: the Law of Cosines when all three side lengths are known (SSS), or the angle sum property when two of the three angles are already known. Both methods are fundamental results of Euclidean geometry and give exact answers for any valid triangle.
When you enter three side lengths, the calculator applies the Law of Cosines formula — cos A = (b² + c² − a²) / (2bc) — for each vertex in turn. This formula generalises the Pythagorean theorem: when the angle is 90°, the cosine term vanishes and the equation reduces to the familiar a² + b² = c². Once two angles are computed via the Law of Cosines, the third is obtained from the angle sum property: A + B + C = 180°. This keeps rounding error to a minimum by computing only two arccosines.
The calculator also classifies the triangle in two dimensions. By angles: if all three are less than 90° it is acute; if one equals 90° it is a right triangle; if one exceeds 90° it is obtuse. By sides: if all three sides are equal it is equilateral (all angles 60°); if exactly two sides are equal it is isosceles (with two equal base angles); if no sides are equal it is scalene. The combined label — such as “Scalene Right” or “Isosceles Acute” — tells you the full geometric character of the triangle at a glance.
Practical applications appear across many fields. Surveyors use the Law of Cosines to compute angles between measured distances in land triangulation. Architects and carpenters calculate roof pitch angles and mitre cut angles from known rafter lengths. Navigation and aviation use triangle angle calculations in bearing problems. Game developers apply them when rotating objects in 2D space. Students use this tool to verify manual calculations in trigonometry coursework, understand how the formula behaves for different triangle shapes, and build intuition about the relationship between sides and angles.
Formula — Law of Cosines and Angle Sum
Given a triangle with sides a, b, c opposite angles A, B, C respectively, the Law of Cosines gives each angle directly from the three side lengths:
For the Two Angles mode, only the angle sum property is needed: if two angles are known, the third is simply their difference from 180°. The triangle inequality must hold for any valid triangle: a + b > c, a + c > b, and b + c > a. This calculator validates the inequality before computing and alerts you if it is violated.
How to Use This Calculator
- Choose your input mode — Select Three Sides (SSS) if you know all three side lengths, or Two Angles if you know two of the three angles and want the third.
- Enter the values — In SSS mode, type the three side lengths in any consistent unit (cm, m, inches). They must satisfy the triangle inequality. In Two Angles mode, enter any two angles in degrees — both must be positive and their sum must be less than 180.
- Click Calculate — The calculator applies the Law of Cosines (SSS mode) or angle sum property (Two Angles mode) and instantly shows all three angles, triangle classification, and perimeter.
- Try a worked example — Scroll to the Examples section and click any Try this example link to auto-fill real values and see the step-by-step working in the note box below the results.