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


Alex B. IB Maths tutor, GCSE Maths tutor, A Level Maths tutor, 11 Plu...
View profile
£18 /hr

Alex B.

Degree: Physics (Masters) - Durham University

Subjects offered: Maths, Physics


“About me: I’m Alex and I have just completed my first year studying physics at Durham University, with a first. I have a passion for mathematics and how it can be applied to solve problems in physics. Throughout my A levels, other stu...”

PremiumRyan B. GCSE Chemistry tutor, A Level Chemistry tutor, GCSE Physics t...
View profile
£22 /hr

Ryan B.

Degree: Natural Sciences (Masters) - Durham University

Subjects offered: Maths, Physics+ 1 more


“I am currently a 1st year student at Durham University studying Natural Sciences. I have always had apassion for science and believe that developing your interest in the subject, during these sessions, will be the key to your success....”

Conor M. A Level Chemistry tutor, A Level Biology tutor, A Level Math...
View profile
£18 /hr

Conor M.

Degree: Biochemistry with a year in industry (Bachelors) - York University

Subjects offered: Maths, Chemistry+ 1 more


“About me: Hello! I'm Conor, a second year Biochemistry student at the University of York, with a fascination for all things to do with science! My broad degree course means I cover all sorts of interesting topics, ranging from Genetic...”

MyTutor guarantee

About the author

PremiumAngus H. GCSE Maths tutor, A Level Maths tutor, GCSE Physics tutor, A...
View profile

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

GCSE Maths - Solve the equation (2x+3)/(x-4) - (2x-8)/(2x+1) = 1 Give your answer to 2 decimal places.

Can you solve the following 2 simultaneous equations; y=6x-2 and x^2-4x+19=y?

How do you solve this problem?

Solve x^2 + 4x + 4 = 0

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