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...

2 years 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

Sam F.

Degree: Economics with Placement (Bachelors) - Bath University

Subjects offered:Maths, Physics+ 2 more

Extended Project Qualification

“Studying for BSc Hons Economics, A level economics, maths and physics. Able to tutor GCSE/AS/A2 Economics, Maths and GCSE physics! ”

£18 /hr

Abhinav T.

Degree: Medicine (Other) - University College London University

Subjects offered:Maths, Physics+ 2 more


“Confirming understanding by verbal confirmation and communication so as to ensure clarity and confidence during the learning process and progression.”

MyTutor guarantee

£24 /hr

Sohini C.

Degree: Medicine,MBBCh (Bachelors) - Cardiff University

Subjects offered:Maths, Science+ 3 more

-Personal Statements-
-Medical School Preparation-

“Hi, I'm Sohini. I'm a fourth year medical student at Cardiff uni and keen to help students with Science and Maths GCSE subjects. I can also help with medical school applications, especially personal statements and interviews. ”

About the author

Angus H.

Currently unavailable: for new students

Degree: Computer Science (Bachelors) - Cambridge University

Subjects offered:Maths, Physics+ 2 more

Further Mathematics

“Top tutor from the renowned Russell university group, ready to help you improve your grades.”

You may also like...

Other GCSE Maths questions

Write 825 as a product of its prime factors.

The functions f and g are defined on R , the set of real numbers by f(x) = x^2 - 5x +2, and g(x) = 1 - x. Find h(x) = f(g(x)), and j(x) = g(f(x)).

Do two random lines, y=ax + b and y=cx + d, intersect? How do we work this out and if they do, where do they intersect?

Solve the following simultaneous equations: 2a-5b=11, 3a+2b=7

View GCSE Maths tutors

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