Code tool

Cosine Calculator

Enter one finite angle, choose degrees or radians, and calculate its cosine with JavaScript Math.cos.

In-browser processingNo account requiredPrivacy details ↗

Degrees are converted to radians before Math.cos.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter a finite angle.
  2. Choose degrees or radians.
  3. Calculate and read the result.

Degrees and radians

Degrees are converted with angle × π ÷ 180. Radian values are passed directly to Math.cos.

Input boundaries

The input must be a finite number. Empty, non-numeric, Infinity, and NaN values are rejected. Calculations stay in this browser.

GOOD TO KNOW

Common questions

Which function does this use?

It uses the browser’s built-in Math.cos function.

Can I enter a very large angle?

Yes, if it is finite. JavaScript handles the radian conversion and cosine calculation.