Skip to main content

Interactive Math Workbooks

Practice, learn and master mathematics with interactive exercises and instant feedback.

Cosine Calculator

Mathematics - Cosine function on unit circle and graph

Cosine Calculator — Calculate cos(x) in Degrees or Radians

Compute the cosine of any angle in degrees or radians with step-by-step explanation. Learn the unit circle definition, right-triangle cosine formula, graph of the cosine function, and common values with comprehensive FAQs. For related trigonometry tools, see our distance calculator or the Pythagorean theorem calculator.

Calculate Cosine of an Angle

Enter an angle and select the unit (degrees or radians). The calculator will compute cos(x) and show the steps.

cos(x) will appear here.
Note: Cosine is the ratio of the adjacent side to the hypotenuse in a right triangle. For any angle θ, cos(θ) = adjacent / hypotenuse.

Cosine Function – Complete Explanation

The cosine function (cos) is one of the fundamental trigonometric functions. It relates an angle of a right triangle to the ratio of the adjacent side to the hypotenuse. It also has a beautiful unit circle interpretation and appears in countless scientific and mathematical contexts.

Cosine Definition

cos(θ) = adjacent / hypotenuse

On the unit circle: cos(θ) = x-coordinate of the point on the circle.

1. What Is Cosine?

Cosine answers the question: "In a right triangle, what is the ratio of the side next to the angle to the longest side?" It's one of the three primary trigonometric ratios (sine, cosine, tangent).

Key characteristics:

  • Range: cos(x) is always between −1 and 1.
  • Period: cos(x) repeats every 2π radians (360°).
  • Even function: cos(−x) = cos(x).
  • Phase shift: cosine is sine shifted left by π/2.

2. Cosine in Right Triangles

In any right triangle, for an acute angle θ (other than the 90° angle):

cos(θ) = adjacent side / hypotenuse

The hypotenuse is always the longest side, opposite the right angle. The adjacent side is the leg next to θ (not the hypotenuse).

Example: 3-4-5 Triangle

For angle opposite the side of length 4:
Adjacent = 3, Hypotenuse = 5
cos(θ) = 3/5 = 0.6

3. Unit Circle Definition

On a unit circle (radius 1), any angle θ corresponds to a point (x, y). The x-coordinate is cos(θ).

At θ = 60° (π/3): point is (1/2, √3/2) → cos(60°) = 1/2

At θ = 90° (π/2): point is (0, 1) → cos(90°) = 0

At θ = 180° (π): point is (−1, 0) → cos(180°) = −1

4. Common Cosine Values

cos(0°) = 1

cos(30°) = √3/2 ≈ 0.866

cos(45°) = √2/2 ≈ 0.707

cos(60°) = 1/2

cos(90°) = 0

cos(180°) = −1

5. Graph of the Cosine Function

The cosine graph is a smooth wave that starts at (0,1), reaches 0 at π/2, −1 at π, 0 at 3π/2, and 1 again at 2π.

Key features: Amplitude = 1, Period = 2π, Maximum = 1, Minimum = −1, Starts at maximum.

6. Properties of Cosine

  • Even function: cos(−x) = cos(x)
  • Period: cos(x + 2π) = cos(x)
  • Pythagorean identity: sin²(x) + cos²(x) = 1
  • Double angle: cos(2x) = cos²(x) − sin²(x) = 2cos²(x) − 1
  • Sum formula: cos(a+b) = cos(a)cos(b) − sin(a)sin(b)

7. Degrees vs. Radians

Radians are the natural unit for trigonometric functions in mathematics. To convert:

Degrees → Radians: multiply by π/180

Radians → Degrees: multiply by 180/π

180° = π radians, 90° = π/2, 60° = π/3, 45° = π/4, 30° = π/6

8. Step-by-Step Examples

Example 1: cos(120°)

Step 1: Convert to radians: 120° = 2π/3
Step 2: On unit circle, 2π/3 is in Quadrant II.
Step 3: Reference angle = 60°, cos(60°) = 1/2.
Step 4: Cosine is negative in Quadrant II.
Answer: cos(120°) = −1/2

Example 2: cos(7π/4)

Step 1: 7π/4 = 315°, Quadrant IV.
Step 2: Reference angle = 45°, cos(45°) = √2/2.
Step 3: Cosine is positive in Quadrant IV.
Answer: cos(7π/4) = √2/2

9. Inverse Cosine (arccos)

The inverse cosine, written arccos or cos⁻¹, finds the angle when the cosine value is known.

cos⁻¹(1/2) = 60° or π/3

cos⁻¹(0) = 90° or π/2

cos⁻¹(−1) = 180° or π

Range: [0, π] (0° to 180°)

10. Common Mistakes

  • Using degrees in radian mode: Always check your calculator's mode.
  • Confusing sine and cosine: cos = adjacent/hypotenuse, sin = opposite/hypotenuse.
  • Forgetting the sign: In Quadrants II and III, cosine is negative.
  • Using the wrong side as adjacent: The adjacent side is the one next to the angle, not the one touching the right angle.
  • Ignoring the range: cos(x) is always between −1 and 1. A value outside this range is impossible for a real angle.

11. Real-World Applications

  • Navigation: Calculating horizontal distance components.
  • Physics: Resolving forces into horizontal/vertical components (F·cos(θ)).
  • Engineering: Structural analysis, signal processing, and AC circuit analysis.
  • Computer graphics: Rotations, lighting calculations, and camera positioning.
  • Architecture: Calculating shadows and roof angles.
  • Sound waves: Modeling oscillatory motion.

12. Practice Problems

Problem 1: Find cos(45°). → √2/2 ≈ 0.707

Problem 2: Find cos(135°). → −√2/2 ≈ −0.707

Problem 3: In a right triangle, the adjacent side is 8 and the hypotenuse is 10. Find cos(θ). → 8/10 = 0.8

Problem 4: Find cos(5π/3). → 1/2

13. Tips for Mastery

  • Memorize the common values (0°, 30°, 45°, 60°, 90°).
  • Use the unit circle as a visual reference.
  • Remember the signs: All positive in QI, Sine positive in QII, Tangent positive in QIII, Cosine positive in QIV.
  • Practice converting between degrees and radians.
  • Remember that cosine is an even function: cos(−x) = cos(x).

14. Final Thoughts

The cosine function is essential in trigonometry and beyond. Understanding its definition, graph, and properties opens the door to advanced mathematics, physics, and engineering. Use the calculator above to check your work and practice until cosine becomes second nature.

15. Frequently Asked Questions

cos(0°) = 1. On the unit circle, the point at 0° is (1, 0), so the x-coordinate is 1.

The cosine function always outputs values between −1 and 1: −1 ≤ cos(x) ≤ 1.

Cosine is an even function: cos(−x) = cos(x).

The period is 2π radians (360°). After every 2π, the values repeat.

Multiply degrees by π/180. For example, 180° × π/180 = π radians.

cos takes an angle and returns a ratio. arccos (cos⁻¹) takes a ratio and returns an angle.

At 90°, the adjacent side in a right triangle becomes zero, making the ratio 0/hypotenuse = 0.

Explore Math Topics

Continue your learning journey with our other math guides

Related Calculators

Explore these other trigonometry and geometry tools:

Conclusion

The cosine function is a cornerstone of trigonometry and mathematics. Master its definition, values, and applications, and you'll be well-equipped for advanced studies.

Readers who wish to continue practicing can explore the companion learning resource for guided exercises.