Warning: This site requires the use of scripts, which your browser does not currently allow. See how to enable scripts.

# COT function

This article describes the formula syntax and usage of the **COT** function (function: A prewritten formula that takes a value or values, performs an operation, and returns a value or values. Use functions to simplify and shorten formulas on a worksheet, especially those that perform lengthy or complex calculations.) in Microsoft Excel.

## Description

Return the cotangent of an angle specified in radians.

## Syntax

COT(number)

The COT function syntax has the following arguments.

**Number**Required. The angle in radians for which you want the cotangent.

## Remarks

- The absolute value of Number must be less than 2^27.
- If Number is outside its constraints, COT returns the #NUM! error value.
- If Number is a non-numeric value, COT returns the #VALUE! error value.
- COT(0) returns the #DIV/0! error value.

## Example

The workbook below shows examples of this function. Inspect them, change existing formulas, or enter your own formulas to learn how the function works.

To work more in-depth with the example data in Excel, download the embedded workbook to your computer, and then open it in Excel.

Applies to:

Excel 2013, Excel Online