How do I find the length of a side of a triangle using the cosine rule?

Suppose we have a triangle with 2 sides of length 4 and 5 (in any units), and the angle between those sides is 60 degrees. We want to find the length of the side opposite the 60 degree angle.

Write the cosine rule, a2=b2+c2-2bcCos(A). Here a, b and c are the side lengths, and A is the angle opposite side a.

Given our example we have a2=42+52-2*4*5*Cos(60)

so a2=16+25-20 = 21, a = sqrt(21) which is irrational (approximately 4.58).

We can also use the cosine rule if we know two side lengths and an angle opposite one of those sides. Suppose we have a triangle with side of length 2 and 5, and we know that the angle opposite the side of length 5 is 120 degrees. We want to work out the 3rd side length.

Again we write out a2=b2+c2-2bcCos(A), but this time we want a to be the side of length 5, since this side is opposite the known angle, giving us




Solving with the quadratic formula we get

c = (-5 +/- sqrt(25+84)) / 2 which is again irrational.

Notice this time we get two different values for c, since in this case there are two possible triangles that meet the criteria described in the question.

Angus H. GCSE Maths tutor, A Level Maths tutor, GCSE Physics tutor, A...

1 year ago

Answered by Angus, a GCSE Maths tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


£20 /hr

Amruni C.

Degree: Medicine (Bachelors) - Imperial College London University

Subjects offered: Maths, Science+ 1 more

-Medical School Preparation-

“Hi, I’m Amruni and I’m a medical student at Imperial College London. For the past 2 years I have been tutoring Maths and Science to students from 11+ to GCSE and have absolutely loved being able to share my passion for science and mat...”

£18 /hr

Scott R.

Degree: PGCE Secondary Mathematics (Other) - Leeds University

Subjects offered: Maths, Further Mathematics

Further Mathematics

“About Me: I am current studying a PGCE at Leeds University and should be a fully qualified teacher by the end of June 2017. I also studied maths at Leeds where I got my degree. I have always had a passion for maths and my objective is...”

£18 /hr

Juris B.

Degree: Computer Science (Bachelors) - St. Andrews University

Subjects offered: Maths, Computing


“I am a Computer Science at the University of St. Andrews. Before that however, I was a pupil in a school in the North-East of Scotland. With the combined passion and availability of superb teachers - I was given an opportunity to exce...”

About the author

Angus H.

Currently unavailable: for new students

Degree: Computer Science (Bachelors) - Cambridge University

Subjects offered: Maths, Physics+ 2 more

Further Mathematics

“Second year Computer Scientist at the University of Cambridge.”

You may also like...

Other GCSE Maths questions

Find all solutions of x^2-x-6 using the quadratic formula

Solve the simultaneous equations 2x + y = 7 and 3x - y = 8.

The work in an office takes 200 hours to complete every week. Each person in the office works 35 hours a week. What is the smallest number of people needed to complete the work?

How do I complete the square of an equation?

View GCSE Maths tutors


We use cookies to improve our service. By continuing to use this website, we'll assume that you're OK with this. Dismiss