⭐ Starlight Tools / Triangle Calculator

Interactive Triangle Calculator

Enter any three values (sides or angles) to solve the triangle.

A B C

How the Triangle Calculator Works

This tool uses fundamental geometric principles to solve for missing values of a triangle. A triangle is fully defined by three of its properties, as long as at least one of them is a side. The calculator can handle several scenarios:

  • SSS (Side-Side-Side): If all three sides are known, the angles can be found using the Law of Cosines.
  • SAS (Side-Angle-Side): If two sides and the included angle are known, the third side can be found with the Law of Cosines, and the other angles with the Law of Sines.
  • ASA (Angle-Side-Angle): If two angles and the included side are known, the third angle is found by subtracting the other two from 180°, and the remaining sides are found with the Law of Sines.
  • AAS (Angle-Angle-Side): Similar to ASA, if two angles and a non-included side are known, the third angle is found first, and then the Law of Sines is used to find the other sides.
  • SSA (Side-Side-Angle): The "ambiguous case" is when two sides and a non-included angle are known. The calculator will determine if there is one solution, two solutions, or no solution and display the results accordingly.

All calculations are performed entirely in your browser using JavaScript, ensuring your inputs remain private and secure.