Formula and Method for Triangle Angle Calculation
Any triangle can be fully solved for its three interior angles if you know the lengths of all three sides (the SSS case). This calculator uses the Law of Cosines — a generalization of the Pythagorean theorem that works for any triangle, not just right triangles — to find each angle directly from the side lengths, then classifies the triangle as acute, right, or obtuse.
How the calculation works
Label the sides a, b, and c, with angle A opposite side a, angle B opposite side b, and angle C opposite side c. The Law of Cosines states c² = a² + b² − 2ab·cos(C). Solving for the angle gives cos(A) = (b² + c² − a²) / (2bc), and the same pattern for B: cos(B) = (a² + c² − b²) / (2ac). Taking the inverse cosine (arccos) of each result gives angles A and B. Because every triangle's interior angles sum to exactly 180°, the third angle follows without another trig calculation: C = 180° − A − B. The calculator then compares the largest angle to 90° to label the triangle acute (all angles under 90°), right (one angle equal to 90°), or obtuse (one angle over 90°).
Common mistakes
- Invalid side combinations: not every three lengths form a triangle. The triangle inequality requires that the sum of any two sides exceed the third (e.g., sides 2, 3, and 6 cannot form a triangle because 2 + 3 is not greater than 6).
- Mismatched side-angle pairs: side a must be the side opposite angle A, not adjacent to it — swapping which side is "opposite" which angle changes the Law of Cosines result.
- Degrees vs. radians: most everyday work uses degrees, but trigonometric functions in code and calculators often default to radians. Confirm which unit you need before applying the result elsewhere.
Real-world applications
- Surveying and construction use the Law of Cosines to find unknown angles from measured distances, such as staking out a lot corner or checking a roof pitch.
- Navigation and triangulation problems solve for a bearing or heading angle once three distances are known.
- Engineering and CAD work verify that a fabricated or drawn triangle matches its intended angles before parts are cut.
- Physics problems that involve resultant vectors or force triangles often reduce to solving a triangle from three known magnitudes.