A triangle does not need a right angle for its sides and angles to be related. The sine rule connects opposite side-angle pairs. The cosine rule connects three sides with an included angle. Together they let us solve triangles that right-triangle ratios cannot address directly.
The first decision is which information is known. Two angles and a side, two sides and their included angle, and three sides lead to different routes. Two sides and a non-included angle need special care because they can describe two different triangles.
On this page
Label opposite side-angle pairs
Use capital letters for angle measures and lowercase for the lengths opposite them. Side is opposite , not necessarily beside it. A consistent diagram prevents a correct formula from being applied to the wrong pair.
For an ordinary non-degenerate plane triangle, all sides are positive, all interior angles lie between and , and . The longest side lies opposite the largest angle.
Match each side to its opposite angle
The source labels the angles . These correspond to the angle measures used in this article.
Law of sines (simple).svg · Mliu92 · CC BY-SA 4.0.
Diagram explained
The lower side a is opposite angle alpha at the top. Side b is opposite beta, and side c is opposite gamma. Keep each side with its opposite angle in the sine rule. No right-angle marker appears, because the triangle is not assumed to be a right triangle.
Choose a rule from the known information
With ASA or AAS, two angles determine the third, and the sine rule determines missing sides. With SAS, two sides and their included angle determine the third side using the cosine rule. With SSS, the cosine rule determines an angle from all three sides.
SSA gives two sides and an angle not between them. Unlike SAS, it does not always determine a unique triangle. Work through every possible second angle before accepting an answer.
Choosing a triangle-solving method
| Known information | Start with | Important check |
|---|---|---|
| Two angles and one side | Angle sum, then sine rule | Third angle must be positive |
| Two sides and included angle | Cosine rule | Use the angle between the two known sides |
| Three sides | Cosine rule | Triangle inequality |
| Two sides and non-included angle | Sine rule, including both angle candidates | Zero, one or two triangles |
Knowing only the three angles fixes the shape, not the size. Without a side length, there are infinitely many similar triangles.
The sine rule
For any non-degenerate triangle,
One way to understand the rule is to draw an altitude. The same height can be expressed using a side from either of two right triangles. Equating those expressions relates the corresponding side lengths and sines. The result also holds when the altitude falls outside an obtuse triangle.
Use the two fractions containing your known side-angle pair and the quantity you need. Writing all three fractions is not required in every calculation.
Worked example: two angles and a side
Let , and cm. The third angle is . Then
The lengths have the expected order: matches . Keep the exact sine expressions until the final rounding.
The cosine rule
The cosine rule gives
The angle must be the angle between the two sides and . If , the cosine term is zero and the rule becomes the Pythagorean theorem. For an acute included angle the cosine term reduces ; for an obtuse included angle it increases it.
Worked example: two sides and the included angle
Let cm, cm and .
Choose the positive square root because is a side length. To finish the triangle, use the cosine rule for another angle or the sine rule with a known opposite pair, then check the angle sum. Here the remaining angles are approximately and . Their sum with is , and the angle opposite 7 cm is the largest.
Finding an angle from three sides
Rearrange the cosine rule before applying inverse cosine:
For , , and ,
Inverse cosine returns an angle in , matching the possible range for a triangle’s interior angle. Calculating the largest angle first can make the overall size and shape easier to check.
Before calculating any angle, check that each side is shorter than the sum of the other two. Lengths 2, 3 and 6 cannot form a triangle. A value outside for the computed cosine is a warning to recheck the data, units and algebra.
The ambiguous SSA case
Suppose , cm and cm. The sine rule gives
A calculator supplies one candidate, but a positive sine value is shared by an acute and a supplementary obtuse angle:
Both candidates work here because adding leaves a positive third angle. Find each third angle and each third side separately:
| Candidate | Angle B | Angle C | Side c |
|---|---|---|---|
| First | 45.58° | 104.42° | 13.56 cm |
| Second | 134.42° | 15.58° | 3.76 cm |
For each row, and . The two solutions have different angle measures and third-side lengths.
Why SSA can describe two triangles
The two positions arise because a side of fixed length can meet the base ray in two places.
Sine Law – Ambiguous Case.svg · TheOtherJesse · Public domain (copyright-holder release).
Diagram explained
The diagram holds one angle and the adjacent known side fixed. A side opposite that angle can reach the base in two positions. The perpendicular height provides the boundary between no intersection, one touching position and two possible intersections. The picture is a general construction, not a scale drawing of the numerical example.
Deciding whether there are zero, one or two triangles
For an acute given angle , set , where is the known side adjacent to and is the known opposite side. Compare with this height and with .
SSA count when A is acute
| Condition | Number of non-degenerate triangles |
|---|---|
| 0 | |
| 1, with a right angle opposite b | |
| 2 | |
| 1 |
In the worked example, , so predicts two triangles. If had been 4, no triangle would be possible; if it had been 5, there would be one.
For a right or obtuse given angle , its opposite side must be longer than the other known side: . That gives one triangle. If , there is no non-degenerate triangle. Alternatively, the direct candidate-angle test works in every case: reject sine values above one, test the principal and supplementary candidates, and retain only positive third angles.
Area and final checks
If two sides and their included angle are known, the area is
For sides 5 and 7 enclosing , cm², about 15.16 cm². This comes from one half times base times perpendicular height, with height expressed through sine.
An area formula needs the included angle. Mixing a side pair with an unrelated angle can produce a plausible number without representing the triangle.
For every solved triangle, check positive side lengths, an angle sum of , the triangle inequality, and the correspondence between large sides and large opposite angles. With SSA, perform these checks for each candidate rather than discarding the second angle automatically.
Related topics
Use these tools in Bearings, Heights and Distances. The right-triangle definitions remain available in Trigonometric Ratios.
Practice questions
- Find when , and .
- For acute , suppose , and . How many triangles are possible?
- A triangle has sides 5 and 7 enclosing . Find its area.
Check your answers
- .
- Two, because . Each angle candidate still needs a positive third angle.
- square units.
Sources and further reading
Further explanations of the definitions and conventions used here:
- OpenStax, Precalculus 2e: The sine rule and SSA ambiguity.
- OpenStax, Precalculus 2e: The cosine rule.
- Wolfram Language: Trigonometric Functions. Used for checking exact values, expressions and solutions.


