Triangle Solver
Enter any valid combination of sides and angles to solve a triangle. The solver uses the Law of Sines and Law of Cosines to find all missing values, with step-by-step solutions shown in full. All calculations run in your browser.
Three sides
Reference Guide
Law of Cosines
The Law of Cosines generalizes the Pythagorean theorem to any triangle. It relates the three sides of a triangle to the cosine of one of its angles.
Use this law when you know all three sides (SSS) or two sides and the included angle (SAS). For SSS, rearrange to find each angle:
Law of Sines
The Law of Sines states that the ratio of each side to the sine of its opposite angle is the same for all three pairs.
Use this law for ASA (two angles and the included side), AAS (two angles and a non-included side), and SSA (two sides and a non-included angle). For ASA and AAS, find the third angle first since angles sum to 180 degrees.
Triangle Area
Several formulas compute the area of a triangle depending on what information is available.
In Heron's formula, is the semi-perimeter. This formula is useful when you know all three sides but no angles.
The Ambiguous Case (SSA)
When two sides and a non-included angle are given, the triangle may not be unique. Depending on the measurements, there can be zero, one, or two valid triangles.
Given sides and with angle opposite side :
- No triangle if . The side is too short to reach the opposite side.
- One triangle if (a right triangle) or if .
- Two triangles if . The Law of Sines gives two possible values for the unknown angle.