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 A,B,CA,B,C for angle measures and lowercase a,b,ca,b,c for the lengths opposite them. Side aa is opposite AA, 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 0∘0^\circ and 180∘180^\circ, and A+B+C=180∘A+B+C=180^\circ. The longest side lies opposite the largest angle.

Match each side to its opposite angle

An oblique triangle pairs side a with alpha, side b with beta, and side c with gamma.

The source labels the angles α,β,γ\alpha,\beta,\gamma. These correspond to the angle measures A,B,CA,B,C 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
Choosing a triangle-solving method
Known informationStart withImportant check
Two angles and one sideAngle sum, then sine ruleThird angle must be positive
Two sides and included angleCosine ruleUse the angle between the two known sides
Three sidesCosine ruleTriangle inequality
Two sides and non-included angleSine rule, including both angle candidatesZero, 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,

asinA=bsinB=csinC\frac{a}{\sin A}=\frac{b}{\sin B}=\frac{c}{\sin C}

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 A=40∘A=40^\circ, B=65∘B=65^\circ and a=12a=12 cm. The third angle is 75∘75^\circ. Then

b=12sin65∘sin40∘≈16.92 cmb=\frac{12\sin65^\circ}{\sin40^\circ}\approx16.92\text{ cm}
c=12sin75∘sin40∘≈18.03 cmc=\frac{12\sin75^\circ}{\sin40^\circ}\approx18.03\text{ cm}

The lengths have the expected order: a<b<ca<b<c matches 40∘<65∘<75∘40^\circ<65^\circ<75^\circ. Keep the exact sine expressions until the final rounding.

The cosine rule

The cosine rule gives

c2=a2+b2−2abcosCc^2=a^2+b^2-2ab\cos C

The angle CC must be the angle between the two sides aa and bb. If C=90∘C=90^\circ, the cosine term is zero and the rule becomes the Pythagorean theorem. For an acute included angle the cosine term reduces c2c^2; for an obtuse included angle it increases it.

Worked example: two sides and the included angle

Let a=5a=5 cm, b=7b=7 cm and C=60∘C=60^\circ.

c2=25+49−70cos60∘=39c^2=25+49-70\cos60^\circ=39
c=39 cm≈6.24 cmc=\sqrt{39}\text{ cm}\approx6.24\text{ cm}

Choose the positive square root because cc 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 A=43.90∘A=43.90^\circ and B=76.10∘B=76.10^\circ. Their sum with 60∘60^\circ is 180∘180^\circ, and the angle opposite 7 cm is the largest.

Finding an angle from three sides

Rearrange the cosine rule before applying inverse cosine:

cosC=a2+b2−c22ab\cos C=\frac{a^2+b^2-c^2}{2ab}

For a=5a=5, b=7b=7, and c=8c=8,

cosC=25+49−6470=17\cos C=\frac{25+49-64}{70}=\frac17
C=arccos(1/7)≈81.79∘C=\arccos(1/7)\approx81.79^\circ

Inverse cosine returns an angle in [0∘,180∘][0^\circ,180^\circ], 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 [−1,1][-1,1] for the computed cosine is a warning to recheck the data, units and algebra.

The ambiguous SSA case

Suppose A=30∘A=30^\circ, a=7a=7 cm and b=10b=10 cm. The sine rule gives

sinB=bsinAa=57\sin B=\frac{b\sin A}{a}=\frac57

A calculator supplies one candidate, but a positive sine value is shared by an acute and a supplementary obtuse angle:

B1=arcsin(5/7)≈45.5847∘B_1=\arcsin(5/7)\approx45.5847^\circ
B2=180∘−B1≈134.4153∘B_2=180^\circ-B_1\approx134.4153^\circ

Both candidates work here because adding A=30∘A=30^\circ leaves a positive third angle. Find each third angle and each third side separately:

Two triangles from the same SSA data
CandidateAngle BAngle CSide c
First45.58°104.42°13.56 cm
Second134.42°15.58°3.76 cm

For each row, C=180∘−A−BC=180^\circ-A-B and c=7sinC/sin30∘=14sinCc=7\sin C/\sin30^\circ=14\sin C. The two solutions have different angle measures and third-side lengths.

Why SSA can describe two triangles

One fixed angle and two side lengths allow two positions for a triangle vertex.

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 AA, set h=bsinAh=b\sin A, where bb is the known side adjacent to AA and aa is the known opposite side. Compare aa with this height and with bb.

SSA count when A is acute
SSA count when A is acute
ConditionNumber of non-degenerate triangles
a<ha<h0
a=ha=h1, with a right angle opposite b
h<a<bh<a<b2
a≥ba\ge b1

In the worked example, h=10sin30∘=5h=10\sin30^\circ=5, so 5<7<105<7<10 predicts two triangles. If aa had been 4, no triangle would be possible; if it had been 5, there would be one.

For a right or obtuse given angle AA, its opposite side must be longer than the other known side: a>ba>b. That gives one triangle. If a≤ba\le b, 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

K=12absinCK=\frac12ab\sin C

For sides 5 and 7 enclosing 60∘60^\circ, K=353/4K=35\sqrt3/4 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 180∘180^\circ, 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.

Use these tools in Bearings, Heights and Distances. The right-triangle definitions remain available in Trigonometric Ratios.

Practice questions

  1. Find bb when A=30∘A=30^\circ, B=45∘B=45^\circ and a=10a=10.
  2. For acute AA, suppose bsinA=5b\sin A=5, b=10b=10 and a=7a=7. How many triangles are possible?
  3. A triangle has sides 5 and 7 enclosing 60∘60^\circ. Find its area.
Check your answers
  1. b=10sin45∘/sin30∘=102b=10\sin45^\circ/\sin30^\circ=10\sqrt2.
  2. Two, because h<a<bh<a<b. Each angle candidate still needs a positive third angle.
  3. K=12(5)(7)sin60∘=353/4K=\tfrac12(5)(7)\sin60^\circ=35\sqrt3/4 square units.

Sources and further reading

Further explanations of the definitions and conventions used here: