Calculators.Life Calculator
Math

Cosine & Arccosine Calculator

Input Parameters

Scenarios
Calculate cosine of an angle or find the angle using inverse cosine (arccos)
Unit for the angle (Degrees or Radians)
Angle for cos(x) or ratio [-1 to 1] for arccos(x)

Computed Results

Result
0.5
Primary Angle (°)60
Primary Angle (rad)1.0472
Second Angle in [0, 360°) / Periodic (°)-60
Second Angle in [0, 2π) / Periodic (rad)-1.0472
General Formulacos(60°) = 0.5

The cosine calculator determines the cosine of a given angle in degrees or radians, or calculates the inverse cosine (arccosine) to find an angle based on a specific ratio. It provides the primary result alongside periodic angles and the general mathematical formula.

Practical Use Cases

Cosine and arccosine functions are fundamental in trigonometry, geometry, and physics. They are frequently used to resolve vectors into horizontal and vertical components, calculate the lengths of sides in right-angled triangles, and model periodic phenomena such as sound waves and alternating current.

Formula and Explanation

The calculator operates in two distinct modes depending on your mathematical needs:

Cosine (cos)

The cosine of an angle in a right triangle is the ratio of the length of the adjacent side to the length of the hypotenuse. The calculator accepts the angle in either degrees or radians.

cos(θ) = Adjacent ÷ Hypotenuse

Inverse Cosine (arccos)

The inverse cosine function determines the angle that produces a specific cosine value. Because the output of a standard cosine function is always between -1 and 1, the input for an arccosine calculation must also fall within the [-1, 1] range.

θ = arccos(x)

For inverse calculations, the tool also provides the general formula showing the periodic nature of the angle, typically expressed as θ = ±arccos(x) + 2πk.

Verified Scenario Walkthroughs

Here are several examples demonstrating how the calculator processes different inputs:

Default Scenario: Cosine of 60 Degrees

If you calculate the cosine of 60 degrees, the calculator returns a primary result of 0.5. The formula displayed is cos(60°) = 0.5, with the primary angle equivalent to 1.047198 radians.

Scenario 1: Cosine of Zero Degrees

Calculating the cosine of 0 degrees yields a primary result of 1. The formula displayed is cos(0°) = 1.

Scenario 2: Inverse Cosine of 0.5 in Radians

If you input a ratio of 0.5 and select inverse cosine (acos) with radians as the unit, the primary result is 1.047198 radians (which is equivalent to 60 degrees). The second periodic angle in the [0, 2π) range is 5.235988 radians.

Scenario 3: Cosine of PI Radians

Inputting 3.14159 radians into the cosine function returns a primary result of -1. The corresponding angle in degrees is approximately 179.999848°.

Scenario 4: Inverse Cosine of Negative One

Finding the inverse cosine of -1 in degrees results in exactly 180°. The formula displayed is θ = ±180 + 2πk (k ∈ ℤ).

How to Use the Calculator

Follow these steps to calculate your trigonometric values:

  1. Select your Calculation Mode: Choose "cos" to find the cosine of an angle, or "acos" to find the angle from a ratio.
  2. Select the Angle Unit: Choose between Degrees or Radians. For "cos", this is the unit of your input. For "acos", this is the unit of your desired output.
  3. Enter the Value (x): Input your angle (for cos) or your ratio between -1 and 1 (for acos).
  4. Review the results, including the primary value, alternative periodic angles, and the general formula.

Inputs and Outputs Table

FieldTypeDescription
Calculation ModeInputCalculate cosine of an angle or find the angle using inverse cosine (arccos).
Angle UnitInputUnit for the angle (Degrees or Radians).
Value (x)InputAngle for cos(x) or ratio [-1 to 1] for arccos(x).
ResultOutputThe primary calculated cosine value or angle.
Primary Angle (°)OutputThe primary angle expressed in degrees.
Primary Angle (rad)OutputThe primary angle expressed in radians.
Second Angle in [0, 360°) / Periodic (°)OutputThe secondary periodic angle in degrees.
Second Angle in [0, 2π) / Periodic (rad)OutputThe secondary periodic angle in radians.
General FormulaOutputThe mathematical representation of the calculation.

Frequently Asked Questions

What is the difference between cos and arccos?

The cosine function (cos) takes an angle and returns a ratio between -1 and 1. The inverse cosine function (arccos) takes a ratio between -1 and 1 and returns the corresponding angle.

Why must the input for arccosine be between -1 and 1?

In a right triangle, the adjacent side can never be longer than the hypotenuse. Therefore, the ratio of the adjacent side to the hypotenuse (the cosine) is always restricted to the range of -1 to 1. Inputs outside this range are mathematically undefined for real numbers.

How do I convert between degrees and radians?

To convert degrees to radians, multiply the angle by π and divide by 180. To convert radians to degrees, multiply by 180 and divide by π.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.