Skip to main content
math

Cosine Calculator

Calculate the cosine of any angle in degrees or radians. Returns values between -1 and 1.

By Christopher FloiedPublished Updated

Results

cos(θ)

0.5

Angle (radians)

1.047198 rad

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Cosine Calculator. Follow the units and input format printed next to each field. Where a unit selector is available, choose the units that match your data.

2

Review your inputs

Double-check that all values are correct and match the units or format shown for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Cosine Calculator computes the output in your browser and displays the results, with units clearly labeled, as soon as they are ready — no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

When to Use This Calculator

  • •Use the Cosine Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • •Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • •Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • •Use it to explore the behavior of mathematical functions across a range of inputs.

Related Calculators

About Cosine Calculator

The cosine function is the second primary trigonometric function, complementary to sine. In a right triangle, cos(θ) equals the ratio of the side adjacent to angle θ to the hypotenuse. On the unit circle, cos(θ) is the x-coordinate of the point at angle θ. Like sine, cosine oscillates between −1 and 1 with a period of 360°, but it is an even function: cos(−θ) = cos(θ). Cosine is phase-shifted 90° from sine: cos(θ) = sin(θ + 90°). It appears throughout physics in the dot product formula, work calculations (W = Fd cos θ), projection formulas, and Fourier analysis. Key values include cos(0°) = 1, cos(30°) = √3/2, cos(45°) = √2/2, cos(60°) = 0.5, and cos(90°) = 0. This calculator computes cosine for any angle.

The Math Behind It

Cosine can be defined as the x-coordinate on the unit circle, the real part of e^(iθ), or via the Taylor series cos(x) = 1 − x²/2! + x⁴/4! − x⁶/6! + .... The derivative is d/dx cos(x) = −sin(x), and the integral is ∫ cos(x) dx = sin(x) + C. Cosine satisfies the same differential equation as sine: y'' + y = 0. The cosine function is even (symmetric about the y-axis), while sine is odd. The dot product of two vectors a·b = |a||b|cos(θ) uses cosine to measure alignment: cos(0°) = 1 (parallel), cos(90°) = 0 (perpendicular), cos(180°) = −1 (anti-parallel). The discrete cosine transform (DCT), which uses only cosine basis functions, is the mathematical foundation of JPEG image compression and MP3 audio compression. The cosine rule in probability gives the angle between random variables. In the Fourier series, cosine terms capture the even (symmetric) components of periodic functions.

Formula Reference

Cosine Function

cos(θ) = adjacent / hypotenuse

Variables: θ = angle (in a right triangle)

Worked Examples

Example 1: Work done by a force

A 100 N force is applied at 30° to the direction of motion over 5 m.

Step 1:W = F × d × cos(θ)
Step 2:W = 100 × 5 × cos(30°)
Step 3:W = 500 × 0.8660

W ≈ 433 Joules

Common Mistakes & Tips

  • !Confusing cos(θ) with sin(θ) — remember cos uses the adjacent side, not the opposite.
  • !Forgetting that cos(90°) = 0, not 1.
  • !Assuming cos(A + B) = cos(A) + cos(B) — the correct formula involves products.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

Is cos(θ) = sin(90° − θ)?

Yes. This co-function identity shows that cosine and sine are complementary: cos(θ) = sin(90° − θ).

When is cosine negative?

Cosine is negative in Quadrants II (90° to 180°) and III (180° to 270°).

Add the live Cosine Calculator to your site. Free to embed, with a link back to MegaCalc.