Trigonometry Rules for All Types of Triangle

The rules for all types of triangle, not just right (right-angled) triangles, are the Cosine Rule, the Sin Rule and the Tangents Rule.

Cosine Rule

Angle and Side Naming Convention

c² = a² + b² - 2ab(cosC) or

b² = a² + c² - 2ac(cosB) or

a² = b² + c² - 2bc(cosA)

Sine Rule

a ÷ sinA = b ÷ sinB = c ÷ sinC

Tangents Rule

(a - b) ÷ (a+b) = tan(½ (A - B)) ÷ tan(½ (A + B))

An Example of How to Use These Rules

Given a triangle of side lengths b = 3 and c = 6 and angle A = 20°, find the side length a and the angles B and C.

First of all we can find a using the cosine rule.

a² =3² + 6² - (2 x 3 x 6)cos(20)

⇒ a² =9 + 36 - (36 x cos(20))

⇒ a² =11.17

and a=√11.17 = 3.34 (2 decimal place)

We can then calculate angles B and C. At first glance you might think that you can use the sine rule to find them both, but beware! You have to use the sine rule with care, because the inverse of sin, or the arcsin function, is only valid for angles less than 90°. In this example, angle C is obtuse and therefore greater than 90°, if you applied arcsin you would get an incorrect value.

To avoid this problem, remember that the largest angle in a triangle will always be opposite the longest side, also there can only ever be one obtuse angle in a triangle. So, to be on the safe side don't use the Sine Rule to find the largest angle in a triangle, unless you definitely know it is not obtuse.

In this case, c is longest side so we will not use the sine rule to find C, but we can use it to find B.

So, 3 ÷ sinB = 3.34 ÷ sin(20)

⇒ sinB = 3 x sin(20) ÷ 3.34

⇒ sinB = 0.31

⇒B = 17.88° (2 decimal places)

Finally we can find the final angle C, by using the sum of the internal angles rule.

C = 180 - B - A

⇒ C = 142.12° (2 decimal places)

You can see a screenshot of Math.Trig for this triangle opposite, as well as the results page. Don't forget to check the answers using our free iPhone app, Math.Trig!

The Sum of the Angles Rule


Angles of a TriangleThe sum of the internal angles of a triangle always add up to 180°. So if you know two angles of a triangle it’s simple to find the missing angle.

A + B + C = 180°

Trigonometry for Right Triangles

Find out about Pythagoras' Theorem and basic trigonometry equations for solving right or right-angled triangles here.


Math.Trig screenshot of example Math.Trig triangle results

Find Out More About Math.Trig

Math.Trig is a free iPhone and iPad app for solving triangles. Take a closer look here.

Math.Trig User Reviews

"I'm always a bit reluctant to let my children use a calculator instead of using their heads, so I was pleased to see this app has a section showing the trig formulas behind the solution!"

Right Triangles and Pythagoras'

Find out about Pythagoras' Theorem and how to solve right (right-angled) triangles here.