Excel Tutorial

Excel COT Function



The Excel COT function returns trigonometric cotangent of an angle (angle should be in radians).

The COT function is a built-in function in Excel that is categorized as a Math/Trig Function. It can be used as a worksheet function in Excel. As a worksheet function, the COT function can be used as part of a formula in a worksheet cell.

Syntax

COT(number)

Parameters

number Required. Specify the angle in radian.

Return Value

Returns the trigonometric cotangent of an angle.

Notes

  • If the argument is in degrees, multiply it by PI()/180 or use the RADIANS function to convert it to radians.
  • COT(0) returns #DIV/0! error.
  • COT(n) equals 1/TAN(n).
  • If the argument is a non-numeric value, COT returns #VALUE! error.
  • If the argument is outside its constraints, COT returns #NUM! error.

Example: Using as Worksheet Function

The example below shows how to use the COT function as worksheet function.

Excel COT function

Based on the Excel spreadsheet above, the output of the following worksheet formula will be:

=COT(C5)
Result: #DIV/0!

=COT(C6)
Result: 1

=COT(C7)
Result: 0

=COT(C8)
Result: -1

=COT(C9)
Result: -8162276138809540

=COT(C10)
Result: 1

=COT(C11)
Result: 0

=COT(C12)
Result: -1

=COT(C13)
Result: -4081138069404770

Example: Using angles in Degrees

To supply an angle to COT function in degrees, the angle can be multiplied by PI()/180. Alternatively, the angle expressed in degrees can be used in the COT function by converting it into radians using RADIANS function. For example, to get the COT of 45 degrees, the following formula can be used:

=COT(45 * PI()/180)
Result: 1

=COT(RADIANS(45))
Result: 1

❮ Excel Functions