Cosine Formulas: All Cos Identities & Values

Book A Free Math Class

Cosine Formulas: All Cos Identities & Values

Math Formula

TL;DR

Cosine formulas come from one definition (cos⁡θ=adjacent/hypotenuse\cos\theta = \text{adjacent}/\text{hypotenuse}cosθ=adjacent/hypotenuse) and one parent identity (cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A+B) = \cos A \cos B - \sin A \sin Bcos(A+B)=cosAcosB−sinAsinB). Every other cosine formula — difference, double angle, half angle, product-to-sum, law of cosines — is one substitution away.

BT Last updated on May 1, 2026 9 min read

What are cosine formulas?

Cosine formulas are the set of identities built around the cosine function — the ratio of the adjacent side to the hypotenuse in a right triangle, or the x-coordinate of a point on the unit circle. The core formula is the ratio definition; every other cosine formula on this page is derived from it.

Core cosine formula:

cos⁡θ=adjacenthypotenuse\cos\theta = \frac{\text{adjacent}}{\text{hypotenuse}}cosθ=hypotenuseadjacent​

On the unit circle, cos⁡θ=x\cos\theta = xcosθ=x, where (x,y)(x, y)(x,y) is the point at angle θ\thetaθ from the positive x-axis.

All the cosine formulas, in one table

These are the ones that matter for school and entrance exams. The rest of the article walks through where they come from, when to use them, and where they slip.

Family Formula
Reciprocal sec⁡θ=1cos⁡θ\sec\theta = \dfrac{1}{\cos\theta}secθ=cosθ1​
Pythagorean sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1sin2θ+cos2θ=1
Even-function cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\thetacos(−θ)=cosθ
Sum cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A + B) = \cos A \cos B - \sin A \sin Bcos(A+B)=cosAcosB−sinAsinB
Difference cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B\cos(A - B) = \cos A \cos B + \sin A \sin Bcos(A−B)=cosAcosB+sinAsinB
Double angle cos⁡2θ=cos⁡2θ−sin⁡2θ=2cos⁡2θ−1=1−2sin⁡2θ\cos 2\theta = \cos^2\theta - \sin^2\theta = 2\cos^2\theta - 1 = 1 - 2\sin^2\thetacos2θ=cos2θ−sin2θ=2cos2θ−1=1−2sin2θ
Half angle cos⁡θ2=±1+cos⁡θ2\cos\dfrac{\theta}{2} = \pm\sqrt{\dfrac{1 + \cos\theta}{2}}cos2θ​=±21+cosθ​​
Triple angle cos⁡3θ=4cos⁡3θ−3cos⁡θ\cos 3\theta = 4\cos^3\theta - 3\cos\thetacos3θ=4cos3θ−3cosθ
Product to sum cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)]\cos A \cos B = \dfrac{1}{2}[\cos(A - B) + \cos(A + B)]cosAcosB=21​[cos(A−B)+cos(A+B)]
Sum to product cos⁡A+cos⁡B=2cos⁡A+B2cos⁡A−B2\cos A + \cos B = 2 \cos\dfrac{A+B}{2}\cos\dfrac{A-B}{2}cosA+cosB=2cos2A+B​cos2A−B​
Law of cosines c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos Cc2=a2+b2−2abcosC

Variable key

Symbol Meaning
θ,A,B,C\theta, A, B, Cθ,A,B,C Angles, in degrees or radians
cos⁡θ\cos\thetacosθ The cosine of angle θ\thetaθ — adjacent over hypotenuse, or the x-coordinate on the unit circle
sin⁡θ\sin\thetasinθ The sine of angle θ\thetaθ — opposite over hypotenuse, or the y-coordinate on the unit circle
sec⁡θ\sec\thetasecθ The secant — reciprocal of cosine
a,b,ca, b, ca,b,c Side lengths of a triangle (in the law of cosines, ccc is opposite to angle CCC)

Cosine values for special angles

These six values come up in nearly every trigonometry problem at the school level. Memorise the pattern, not the decimals.

θ\thetaθ 30° 45° 60° 90° 180°
Radians 0 π6\dfrac{\pi}{6} π4\dfrac{\pi}{4} π3\dfrac{\pi}{3} π2\dfrac{\pi}{2} π
cos⁡θ\cos\thetacosθ 1 32\dfrac{\sqrt{3}}{2} 22\dfrac{\sqrt{2}}{2} 12\dfrac{1}{2} 0 −1

The pattern that makes these easier to recall: write 0,1,2,3,4\sqrt{0}, \sqrt{1}, \sqrt{2}, \sqrt{3}, \sqrt{4}0​,1​,2​,3​,4​ above 0°,30°,45°,60°,90°0°, 30°, 45°, 60°, 90°0°,30°,45°,60°,90° and divide every term by 2. That gives the sine values. Read it backwards for cosine.

When to use which formula

Worked Examples of Cosine Formulas

Example 1 — Use the difference formula to find cos⁡15°\cos 15°cos15°

cos⁡15°=cos⁡(45°−30°)\cos 15° = \cos(45° - 30°)cos15°=cos(45°−30°)

=cos⁡45°cos⁡30°+sin⁡45°sin⁡30°= \cos 45° \cos 30° + \sin 45° \sin 30°=cos45°cos30°+sin45°sin30°

=22⋅32+22⋅12= \dfrac{\sqrt{2}}{2} \cdot \dfrac{\sqrt{3}}{2} + \dfrac{\sqrt{2}}{2} \cdot \dfrac{1}{2}=22​​⋅23​​+22​​⋅21​

=64+24= \dfrac{\sqrt{6}}{4} + \dfrac{\sqrt{2}}{4}=46​​+42​

=6+24= \dfrac{\sqrt{6} + \sqrt{2}}{4}=46​+2​

Final answer: cos⁡15°=6+24≈0.9659\cos 15° = \dfrac{\sqrt{6} + \sqrt{2}}{4} \approx 0.9659cos15°=46​+2​​≈0.9659.

Example 2 — Use the law of cosines to find a missing side

A triangle has sides a=5a = 5a=5, b=7b = 7b=7, and the angle between them is C=60°C = 60°C=60°. Find side ccc.

A common first instinct is to try the Pythagorean theorem, c2=a2+b2c^2 = a^2 + b^2c2=a2+b2, which gives c=74≈8.6c = \sqrt{74} \approx 8.6c=74​≈8.6. That answer ignores the angle entirely. The angle here is 60°, not 90°, so Pythagoras does not apply.

The law of cosines is the correction:

c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos Cc2=a2+b2−2abcosC

c2=52+72−2(5)(7)cos⁡60°c^2 = 5^2 + 7^2 - 2(5)(7)\cos 60°c2=52+72−2(5)(7)cos60°

c2=25+49−70⋅12c^2 = 25 + 49 - 70 \cdot \dfrac{1}{2}c2=25+49−70⋅21​

c2=74−35c^2 = 74 - 35c2=74−35

c2=39c^2 = 39c2=39

c=39≈6.24c = \sqrt{39} \approx 6.24c=39​≈6.24

Final answer: c=39≈6.24c = \sqrt{39} \approx 6.24c=39​≈6.24.

Example 3 — Simplify cos⁡2θ\cos 2\thetacos2θ when sin⁡θ=35\sin\theta = \dfrac{3}{5}sinθ=53​

The double-angle form cos⁡2θ=1−2sin⁡2θ\cos 2\theta = 1 - 2\sin^2\thetacos2θ=1−2sin2θ is the right pick here, because sin⁡θ\sin\thetasinθ is what we already have.

cos⁡2θ=1−2(3/5)2=1−18/25=725\cos 2\theta = 1 - 2(3/5)^2 = 1 - 18/25 = \dfrac{7}{25}cos2θ=1−2(3/5)2=1−18/25=257​.

Final answer: cos⁡2θ=725\cos 2\theta = \dfrac{7}{25}cos2θ=257​.

Where the cosine formulas come from

The triangle definition and the unit-circle definition agree by construction. Drop a perpendicular from any point (x,y)(x, y)(x,y) on the unit circle to the x-axis, and you have a right triangle with hypotenuse 1, adjacent side xxx, and opposite side yyy. The two definitions are the same fact, looked at from two angles.

The sum formula, cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A + B) = \cos A \cos B - \sin A \sin Bcos(A+B)=cosAcosB−sinAsinB, is the parent of nearly every other cosine identity. Place two unit vectors on the unit circle: one at angle AAA with coordinates (cos⁡A,sin⁡A)(\cos A, \sin A)(cosA,sinA), one at angle −B-B−B with coordinates (cos⁡B,−sin⁡B)(\cos B, -\sin B)(cosB,−sinB). The angle between them is A+BA + BA+B.

Compute the dot product two ways and set them equal:

cos⁡Acos⁡B−sin⁡Asin⁡B;=;cos⁡(A+B)\cos A \cos B - \sin A \sin B ;=; \cos(A + B)cosAcosB−sinAsinB;=;cos(A+B)

Once the sum formula is in hand, the rest fall out as one-line substitutions: difference (replace BBB with −B-B−B), double angle (set B=AB = AB=A), half angle (solve cos⁡2A=2cos⁡2A−1\cos 2A = 2\cos^2 A - 1cos2A=2cos2A−1 for cos⁡A\cos AcosA).

Memorising the sum formula and learning to derive the rest is faster than memorising eleven.

Why these formulas exist at all

Cosine was invented to solve one specific problem: how do you measure things you cannot reach?

Around 150 BCE, Hipparchus needed to predict lunar eclipses. He could measure angles between celestial objects, but he could not climb to the moon to measure distances. He built the first known table of chord lengths and used those values to compute distances no one could walk.

Indian mathematicians later refined the chord into the half-chord ( jya), which Arab translators rendered as jiba, and which European Latinists eventually misread as sinus — the source of "sine." Cosine arrived later as the sine of the complementary angle.

The formulas on this page are the practical residue of that effort. The sum and difference formulas let astronomers add observed angles. The law of cosines extended Pythagoras to triangles that were not right-angled — most of the triangles that appeared in the sky and on the ground.

Cosine beyond the textbook

A child who only meets cosine in a math chapter learns it as a ratio. A child who meets it across surveying, music, earthquakes, and graphics learns it as a tool human civilisation built itself on.

Common mistakes

1. Treating cos⁡(A+B)\cos(A + B)cos(A+B) as cos⁡A+cos⁡B\cos A + \cos BcosA+cosB.

Where it slips in: The instinct is to distribute cosine across the sum, the way multiplication distributes across addition.

Don't do this: Write cos⁡(30°+45°)=cos⁡30°+cos⁡45°\cos(30° + 45°) = \cos 30° + \cos 45°cos(30°+45°)=cos30°+cos45°.

The correct way: Use the sum formula. cos⁡(30°+45°)=cos⁡30°cos⁡45°−sin⁡30°sin⁡45°\cos(30° + 45°) = \cos 30° \cos 45° - \sin 30° \sin 45°cos(30°+45°)=cos30°cos45°−sin30°sin45°.

2. Forgetting the ±\pm± sign in the half-angle formula.

Where it slips in: Students take the square root and write only the positive root, ignoring the quadrant of θ/2\theta/2θ/2.

Don't do this: Write cos⁡(θ/2)=(1+cos⁡θ)/2\cos(\theta/2) = \sqrt{(1 + \cos\theta)/2}cos(θ/2)=(1+cosθ)/2​ without checking the quadrant.

The correct way: Pick the sign first, based on the quadrant of θ/2\theta/2θ/2.

3. Using Pythagoras for non-right triangles.

Where it slips in: Three sides labelled a,b,ca, b, ca,b,c, and the student reaches for a2+b2=c2a^2 + b^2 = c^2a2+b2=c2 without checking the angle.

Don't do this: Apply a2+b2=c2a^2 + b^2 = c^2a2+b2=c2 when the angle between aaa and bbb is not 90°.

The correct way: Use c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos Cc2=a2+b2−2abcosC. Pythagoras is the special case where cos⁡C=0\cos C = 0cosC=0.

4. Mixing up degrees and radians on the calculator.

Where it slips in: The angle is in degrees, the calculator is in radian mode (or vice versa).

Don't do this: Type cos⁡(60)\cos(60)cos(60) without checking the mode.

The correct way: cos⁡60°=0.5\cos 60° = 0.5cos60°=0.5, but cos⁡60\cos 60cos60 radians ≈−0.95\approx -0.95≈−0.95. Set the mode first.

A real-world version of the degrees–radians slip

In 1999, NASA's Mars Climate Orbiter — a $327 million spacecraft — disintegrated in the Martian atmosphere because two engineering teams used different units for the same quantity. One team used pound-seconds, the other expected newton-seconds.

The mismatch was a factor of 4.45, enough to send the orbiter 100 km closer to Mars than planned. It burned up. The same kind of unit-mismatch slip happens in trigonometry every day at smaller scale.

Mathematicians and the history behind cosine

Hipparchus of Nicaea (190–120 BCE) — the Greek astronomer who built the first known trigonometric table. He wanted to know the distance from the Earth to the moon using only angles he could measure from the ground. He divided the circle into 360 degrees and tabulated the chord length for each. His tables let later astronomers predict eclipses to the day. He never owned a calculator or crossed an ocean — but his angle-to-distance method is what GPS still runs on, two thousand years later.

Three mathematicians, three continents, eighteen centuries — one set of identities.