The cosine rule is a trigonometry formula that relates the sides and angles of a triangle. It can be used to solve a triangle if we know either:
- Two sides of the triangle, and the angle enclosed between those sides.
- Three sides but none of the angles.
For other cases, you will need to use the sine rule.
The rule applies to any triangle, not just right-angled triangles.
Labelling the triangle
It is important to label the triangle correctly, otherwise the rule won't work! We name the angles A, B and C, and we name the sides a, b and c:
The important thing to remember is that each angle is opposite the side of the same name:
- Angle A is opposite side a.
- Angle B is opposite side b.
- Angle C is opposite side c.
The cosine rule
The cosine rule tells us that:
Finding a side using the cosine rule
In this example, we know the sides b and c, plus the enclosed angle A, and we wish to find the other side, a.
The cosine rule lets us find a squared, so to find a we need to take the square root of both sides. Here is the formula:
Finding an angle using the cosine rule
In this example we know the sides a, b and c, so we can find the angle, A:
The cosine rule can be rearranged to find the cosine of A. Here is the formula:
In both cases, we will know the value of one angle and all three sides. We can then use the sine rule to find the other angles.
Join the GraphicMaths Newletter
Sign up using this form to receive an email when new content is added:
adjacency matrix alu and gate angle area argand diagram binary maths cartesian equation chain rule chord circle cofactor combinations complex polygon complex power complex root cosh cosine cosine rule cpu cube decagon demorgans law derivative determinant diagonal directrix dodecagon ellipse equilateral triangle eulers formula exponent exponential exterior angle first principles flip-flop focus gabriels horn gradient graph hendecagon heptagon hexagon horizontal hyperbola hyperbolic function infinity integration by substitution interior angle inverse hyperbolic function inverse matrix irregular polygon isosceles trapezium isosceles triangle kite koch curve l system locus maclaurin series major axis matrix matrix algebra minor axis nand gate newton raphson method nonagon nor gate normal not gate octagon or gate parabola parallelogram parametric equation pentagon perimeter permutations polar coordinates polynomial power product rule pythagoras proof quadrilateral radians radius rectangle regular polygon rhombus root set set-reset flip-flop sine sine rule sinh sloping lines solving equations solving triangles square standard curves star polygon straight line graphs surface of revolution symmetry tangent tanh transformations trapezium triangle turtle graphics vertical volume of revolution xnor gate xor gate