PDF download Download Article PDF download Download Article

The cosine rule is a commonly used rule in trigonometry. It can be used to investigate the properties of non-right triangles and thus allows you to find missing information, such as side lengths and angle measurements. The formula is similar to the Pythagorean Theorem and relatively easy to memorize. The cosine rule states that, for any triangle, .

Method 1
Method 1 of 3:

Finding a Missing Side Length

PDF download Download Article
  1. To find the missing side length of a triangle, you need to know the lengths of the other two sides, as well as the size of the angle between them. [1]
    • For example, you might have triangle XYZ. Side YX is 5 cm long. Side YZ is 9 cm long. Angle Y is 89 degrees. How long is side XZ?
  2. This is also called the law of cosines. The formula is . In this formula, equals the missing side length, and equals the cosine of the angle opposite the missing side length. The variables and are the lengths of the two known sides. [2]
    Advertisement
  3. The variables and are the two known side lengths. The variable is the known angle, which should be the angle between and . [3]
    • For example, since the length of side XZ is missing, this side length will stand for in the formula. Since sides YX and YZ are known, these two side lengths will be and . It doesn’t matter which side is which variable. The variable is angle Y. So, your formula should look like this: .
  4. Do this using a calculator’s cosine function. Simply type in the angle measurement, then hit the button. If you don't have a scientific calculator, you can find a cosine table online. [4] You can also simply type in "cosine x degrees" into Google, (substituting the angle for x), and the search engine will give back the calculation. [5]
    • For example, the cosine of 89 is about 0.01745. So, plug this value into your formula: .
  5. You are multiplying by the known angle’s cosine.
    • For example:

  6. Remember that when you square a number, you multiply it by itself. Square the two numbers first, then add them.
    • For example:


  7. This will give you the value of .
    • For example:

  8. You will likely want to use a calculator for this step, because the number you are finding the square root of will have many decimal places. The square root is equal to the length of the missing side of the triangle. [6]
    • For example:



      So, the missing side length, , is 10.2191 cm long.
  9. Advertisement
Method 2
Method 2 of 3:

Finding a Missing Angle

PDF download Download Article
  1. To find the missing angle of a triangle using the cosine rule, you need to know the length of all three sides of the triangle. [7]
    • For example, you might have triangle RST. Side SR is 8 cm long. Side ST is 10 cm long. Side RT is 12 cm long. What is the measurement of angle S?
  2. The formula is . In this formula, equals the cosine of the angle you are trying to find. The variable equals the side opposite the missing angle. The variables and are the lengths of the other two sides. [8]
  3. Determine the values of , , and . Plug these values into the formula. [9]
    • For example, since side RT is opposite the missing angle, angle S, side RT will equal in the formula. The other two side lengths will be and . It doesn’t matter which side is which variable. So, your formula should look like this: .
  4. You are multiplying times the cosine of the missing angle, which you don’t know yet. So, the variable should remain.
    • For example, .
  5. Remember that to square a number, you multiply the number by itself.
    • For example,
  6. Add the squares of and . Make sure you square each number first, and then add them together.
    • For example:

  7. To do this, subtract the sum of and from both sides of the equation. Then, divide each side of the equation by the coefficient of the missing angle’s cosine. [10]
    • For example, to isolate the cosine of the missing angle, subtract 164 from both sides of the equation, then divide each side by -160:



  8. This will give you the measurement of the missing angle. [11] On a calculator, the inverse cosine key is denoted by .
    • For example, the inverse cosine of .0125 is 82.8192. So, the missing angle, angle S, is 82.8192 degrees.
  9. Advertisement
Method 3
Method 3 of 3:

Solving Sample Problems

PDF download Download Article
  1. The two known side lengths are 20 and 17 cm long. The angle between these two sides is 68 degrees.
    • Since you know two side lengths, and the angle between them, you can use the cosine rule. Set up the formula: .
    • The missing side length is . Plug the other values into the formula: .
    • Use the order of operations to find :





    • Take the square root of both sides of the equation. This will give you the missing side length:


      So, the missing side length is 20.8391 cm long.
  2. The two sides adjacent to angle H are 22 and 16 cm long. The side opposite angle H is 13 centimeter (5.1 in) long.
    • Since you know all three side lengths, you can use the cosine rule. Set up the formula: .
    • The side opposite the missing angle is . Plug all of the values into the formula: .
    • Use the order of operations to simplify the expression:



    • Isolate the cosine:



    • Find the inverse cosine. This will give you the missing angle:

      .
      So, angle H is about 35.7985 degrees.
  3. Dune, Ridge, and Bog Trail form a triangle. Dune Trail is 3 miles long. Ridge Trail is 5 miles long. Dune Trail and Ridge Trail meet on their north ends at a 135 degree angle. Bog Trail connects the other two ends of the trails. How long is Bog Trail?
    • The trails form a triangle, and you are asked to find a missing trail length, which is like the side of a triangle. Since you know the length of the other two trails, and you know they meet at 135 degree angle, you can use the cosine rule.
    • Set up the formula: .
    • The missing side length (Bog Trail) is . Plug the other values into the formula: .
    • Use the order of operations to find :




    • Take the square root of both sides of the equation. This will give you the missing side length:


      So, Bog Trail is about 7.4306 miles long.
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Why do we only use sine and cosine rule? Is there any other to find the same thing?
    Community Answer
    Trigonometry and the sine and cosine rules are needed to work out missing angles and sides of triangles. If there isn't enough information, then you have to use either the sine or cosine rule. It's just the way it is, unless you have two sides and can use Pythagoras's theorem or 2 angles to work out the missing angle.
Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 153,314 times.

      Reader Success Stories

      • Stephanie Fortunes

        Sep 7, 2018

        "I was writing an exam, but didn't know how to use the cosine rule. Now I can solve any equation."
      Share your story

      Did this article help you?

      Advertisement