Calc COS function

Returns the cosine of a given angle.

Help CentreFunctions & Formulas

For a full list of available calculation functions, please read What calculation functions are supported.

This article describes the formula syntax and usage of the COS function.


Description

Returns the cosine of a given angle. The angle is measured in radians.


Syntax

COS(angle)


The COS function syntax has the following argument:
  • angle - Required. The angle in radians for which you want the cosine value.

Remarks

  • If the argument is not a valid number, COS returns the #VALUE! error value.
  • To convert degrees to radians, multiply the degree value by PI()/180 or use the RADIANS function.

Example

FormulaDescriptionResult
=COS(0)Returns the cosine of 0 radians.1
=COS(PI()/2)Returns the cosine of 90 degrees (PI()/2 radians).0
=COS(PI())Returns the cosine of 180 degrees (PI() radians).-1

Errors

For a full list of formula errors, please read Formula errors.


Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.