Free to Use

Cosine Calculator

Calculate cosine values in degrees, radians, and gradians with unit circle visualization. Find cos, secant, sine, and tangent values instantly.

Real-World Cosine Examples

🏗️ Finding the Base of a Ladder

A 6-meter ladder leans against a wall at an angle of 60° with the ground.

Formula: cos(60°) = adjacent / hypotenuse

cos(60°) = 0.5, so the distance from the wall = 6 × 0.5 = 3 meters

The cosine function relates the angle to the ratio of adjacent side over hypotenuse.

🌊 Calculating Horizontal Wave Displacement

A floating buoy moves horizontally with the waves. Its horizontal position follows: x(t) = 3 × cos(2πt/8).

At t = 2 seconds:

Angle: 2π × 2/8 = π/2 radians

cos(π/2) = 0, so x(2) = 0 meters (at the equilibrium point)

Cosine describes the horizontal component of periodic motion.

🛰️ Satellite Dish Alignment

A satellite dish needs to be aligned at an elevation angle of 35°. The dish is 1.2 meters in diameter, and the mount height is 0.5 meters above the base.

Vertical offset: The height difference needed = mount height × cos(35°)

cos(35°) ≈ 0.8192, so the effective horizontal distance = 0.5 × 0.8192 ≈ 0.41 meters

Cosine is essential for calculating projections in satellite and antenna positioning.

🎮 3D Graphics & Game Development

In 3D rendering, when rotating a point (x, y) around the origin by angle θ, the new coordinates use cosine:

New x = x × cos(θ) - y × sin(θ)

For a point at (2, 0) rotated by 45°: New x = 2 × cos(45°) - 0 × sin(45°) = 2 × 0.7071 = 1.4142

Cosine is fundamental to computer graphics rotation matrices and 3D transformations.

Understanding the Cosine Function

The cosine function (cos) is one of the three primary trigonometric functions. For a given angle, cos(θ) equals the x-coordinate of the point on the unit circle at that angle. It represents the ratio of the adjacent side to the hypotenuse in a right triangle.

Cosine Definition

cos(θ) = adjacent / hypotenuse
In a right triangle, cosine is the ratio of the side adjacent to the angle to the hypotenuse.
cos(θ) = x-coordinate on the unit circle
On the unit circle (radius = 1), the cosine of an angle is the x-coordinate of the point where the terminal side intersects the circle.

Key Cosine Values

cos(0°) = 1  |  cos(30°) = √3/2  |  cos(45°) = √2/2  |  cos(60°) = ½  |  cos(90°) = 0
These five key angles (0°, 30°, 45°, 60°, 90°) are the foundation of trigonometry.

Related Trigonometric Functions

sec(θ) = 1 / cos(θ)
Secant is the reciprocal of cosine. Defined when cos(θ) ≠ 0.
sin(θ) = cos(90° - θ)  |  tan(θ) = sin(θ) / cos(θ)
Sine and tangent are closely related to cosine through cofunction and ratio identities.

How to Calculate Cosine Step by Step

1
Identify the angle: Note the angle value and its unit (degrees, radians, or gradians)
2
Convert to radians: If in degrees: multiply by π/180. If in gradians: multiply by π/200
3
Normalize the angle: Reduce to [0, 2π) range using modulo arithmetic
4
Evaluate cos(θ): Use the series expansion or reference angle method to find the cosine value
5
Find quadrant: Determine which quadrant the angle lies in from the signs of sin and cos

Cosine Values by Quadrant

📐 Quadrant I (0° - 90°)

cos(θ) > 0, sin(θ) > 0. Cosine decreases from 1 to 0 as the angle goes from 0° to 90°.

📐 Quadrant II (90° - 180°)

cos(θ) < 0, sin(θ) > 0. Cosine goes from 0 to -1.

📐 Quadrant III (180° - 270°)

cos(θ) < 0, sin(θ) < 0. Cosine returns from -1 to 0.

📐 Quadrant IV (270° - 360°)

cos(θ) > 0, sin(θ) < 0. Cosine increases from 0 back to 1.

Quick Tips for Working with Cosine

🔄 Range is [-1, 1]

The cosine function always returns a value between -1 and 1, inclusive. This bounds the horizontal coordinate on the unit circle.

🔁 Periodic: 360° (2π)

cos(θ + 360°) = cos(θ). The cosine function repeats every full revolution. This is why cos(420°) = cos(60°).

🪞 Even Function

cos(-θ) = cos(θ). Cosine is an even function, symmetric about the y-axis. This helps simplify calculations with negative angles.

📊 Degrees vs Radians

Most mathematical analysis uses radians. 180° = π radians. To convert: radians = degrees × π/180.

📐
Multiple Angle Units
Calculate cosine in degrees, radians, and gradians. Switch between units instantly and see results in all formats.
🔄
All Related Functions
Get cos, secant (sec), sine (sin), and tangent (tan) values all at once for any angle.
🎯
Unit Circle Visualization
See the cosine value visualised on the unit circle with the angle, radius, and coordinate projections.
🧭
Quadrant Information
Know which quadrant your angle falls in and the sign of trigonometric functions in that quadrant.

What is the Cosine Function?

The cosine function (abbreviated cos) is one of the fundamental trigonometric functions in mathematics. It describes a smooth, periodic oscillation that is central to understanding angles, circles, and waves. In a right triangle, the cosine of an angle is defined as the ratio of the length of the side adjacent to that angle to the length of the hypotenuse (the longest side).

On the unit circle — a circle with radius 1 centered at the origin — the cosine of an angle θ is simply the x-coordinate of the point where the terminal side of the angle intersects the circle. This elegant geometric interpretation connects trigonometry to coordinate geometry and makes it easy to visualize cosine values for any angle.

The cosine function is periodic with a period of 2π radians (360°), meaning cos(θ + 2π) = cos(θ). It is also an even function, satisfying cos(-θ) = cos(θ). These properties make cosine invaluable for modeling any repeating or oscillatory phenomenon, particularly when describing horizontal displacement or the phase component of waves.

Where Cosine Appears in the Real World

How to Calculate Cosine Values

Calculating cosine values can be done through several methods. The most common approach is using the unit circle, where you find the x-coordinate of the point at the given angle. For standard angles (0°, 30°, 45°, 60°, 90°, etc.), the cosine values are exact and worth memorizing.

Step 1: Convert the angle to radians if necessary. Since most mathematical functions work in radians, convert degrees by multiplying by π/180. For example, 60° = 60 × π/180 = π/3 radians.

Step 2: Normalize the angle to the range [0, 2π) by adding or subtracting multiples of 2π. An angle of 420° is equivalent to 60° (420 - 360 = 60).

Step 3: Determine the reference angle — the acute angle between the terminal side and the x-axis. For 120°, the reference angle is 60° (180 - 120 = 60).

Step 4: Apply the sign based on the quadrant. Cosine is positive in Quadrants I and IV, and negative in Quadrants II and III.

Cosine Values for Common Angles

These exact values are the building blocks of trigonometry and are worth memorizing:

Applications of Cosine in Daily Life

The cosine function may seem abstract, but it has countless practical applications that affect our everyday lives. Understanding cosine helps in fields ranging from physics to photography, from construction to computer science.

⚡ Power Factor Correction

In electrical systems, the power factor (cos φ) measures how efficiently power is used. A power factor of 1 (cos 0° = 1) means all power is used effectively. Motors and transformers can have poor power factors that need correction.

🛰️ GPS & Triangulation

The law of cosines is used in GPS receivers to calculate distances and positions from satellite signals. It helps determine your exact location by solving triangles formed with multiple satellites.

🏗️ Ramp & Incline Design

When designing wheelchair ramps, the cosine of the incline angle gives the horizontal run length. A 1:12 slope (about 4.8°) has cos(4.8°) ≈ 0.996, meaning the horizontal distance is very close to the ramp length.

📸 Photography & Lighting

The cosine law of illumination states that light intensity on a surface decreases as the cosine of the angle between the light source and the surface normal. This affects flash photography and studio lighting setups.

Frequently Asked Questions

What is the difference between cosine, sine, and tangent?
Cosine (cos), sine (sin), and tangent (tan) are the three primary trigonometric functions. In a right triangle: cos(θ) = adjacent/hypotenuse, sin(θ) = opposite/hypotenuse, and tan(θ) = opposite/adjacent. On the unit circle, cos(θ) is the x-coordinate, sin(θ) is the y-coordinate, and tan(θ) = sin(θ)/cos(θ). They are related by the fundamental identity: sin²(θ) + cos²(θ) = 1.
What is the range of the cosine function?
The cosine function always returns a value between -1 and 1, inclusive. This is because on the unit circle (radius = 1), the x-coordinate can never be less than -1 or greater than 1. The minimum value (-1) occurs at 180° (π radians), and the maximum value (1) occurs at 0° (0 radians) and 360° (2π radians).
How do I convert degrees to radians?
To convert degrees to radians, multiply the angle in degrees by π/180. For example: 60° = 60 × π/180 = π/3 ≈ 1.0472 radians. To convert radians to degrees, multiply by 180/π. For example: π/4 = π/4 × 180/π = 45°. The radian measure is the standard unit in most mathematical contexts.
What is the period of the cosine function?
The cosine function has a period of 2π radians (or 360°). This means cos(θ + 2π) = cos(θ) for any angle θ. The function completes one full cycle every 360° (2π radians), returning to its starting value. Like sine, this periodic nature makes cosine ideal for modeling repeating phenomena such as waves, alternating current, and circular motion.
What is the secant (sec) function?
The secant function (sec) is the reciprocal of the cosine function: sec(θ) = 1 / cos(θ). It is defined for all angles where cos(θ) ≠ 0 (i.e., θ ≠ 90°, 270°, etc.). Since cos(θ) ranges from -1 to 1, sec(θ) has a range of (-∞, -1] ∪ [1, ∞). The secant is the reciprocal counterpart to cosine, just as cosecant is to sine.
Why is cosine an even function?
Cosine is an even function because cos(-θ) = cos(θ) for all angles. On the unit circle, reflecting an angle across the x-axis (making it negative) gives the same x-coordinate. This symmetry about the y-axis means the cosine of a negative angle equals the cosine of its positive counterpart. For example, cos(-60°) = cos(60°) = 0.5. This property is useful in simplifying expressions and solving equations.

⚠️ Important Note: This Cosine Calculator is for educational and informational purposes only. While every effort has been made to ensure accuracy, results should be verified independently for critical applications such as engineering, construction, medical devices, or navigation. Always consult a qualified professional for decisions involving trigonometric calculations in high-stakes contexts.