COT Function
Returns the cotangent of an angle given in radians.
Category
Math & Trig
Available in
Excel 2013+, Microsoft 365
Returns
A number
Want to practice COT in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox
Overview
COT is 1 ÷ TAN — the adjacent side divided by the opposite side.
Excel's trig functions work in radians. Convert degrees with RADIANS, or multiply by PI()/180.
Syntax
=COT(number) Explain
Arguments
| Argument | Required? | What it does |
|---|---|---|
| number | Yes | The angle in radians. |
Examples
Example 1 — Cotangent of angles
Angles in degrees, converted inside the formula.
B2fx=COT(RADIANS(A2))
| A | B | |
|---|---|---|
| 1 | Degrees | cot |
| 2 | 45 | 1 |
| 3 | 30 | 1.7321 |
| 4 | 60 | 0.5774 |
=COT(RADIANS(A2)) Explain
Common mistakes
- Zero. COT(0) returns #DIV/0!.
Notes

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.