Skip to main content

Excel COT function

The COT function is used to calculate the cotangent of an angle in radians.

Note: This function is available in Excel for Microsoft 365, Excel 2013 and later versions.




Number (required): The angle in radians for which you want to calculate the cotangent.


1) The #VALUE! error occurs if “number” is non-numeric.
2) The #DIV/0! error occurs if “number” is equal to zero.
3) The #NUM! error occurs if one of the following conditions is met:
-- “number” is less than -2^27
-- “number” is greater than 2^27
4) If your angles are in degrees, you need to convert them to radians by using the RADIANS function:

Return value

It returns a cotangent value.


To calculate the cotangent of the angles in radians listed in the table below, the COT function can do you a favor.

Select a blank cell, such as D6 in this case, enter the following formula and press the Enter key to get the first result. Select the first result cell and drag its AutoFill Handle down to get the rest of the results.



1) The formula above uses a cell reference as the argument, you can type the radians in the formula instead. The formula in the cell D6 can be changed to:
2) If the supplied angles are in degrees, please convert them to radians before supplying to the COT function.
You can apply the RADIANS function to convert a degree number to radians:
Or embed the RADIANS function directly into the COT function, such as:

Related Functions

Excel COSH Function
The COSH function returns the hyperbolic cosine of a given number.

Excel ACOSH Function
The ACOSH function returns the inverse hyperbolic cosine of a number.

Excel ACOT Function
The ACOT function calculates the arccotangent (inverse cotangent) of a number, and returns an angle, in radians, in the range from 0 (zero) to π (pi).

Excel COTH Function
The COTH function returns the hyperbolic cotangent of a hyperbolic angle in radians.

Excel ACOTH Function
The ACOTH function returns the inverse hyperbolic cotangent of a number.

The Best Office Productivity Tools

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations