Skip to content
ExcelExcel 2013+

COT function in Excel

Returns the hyperbolic cosine of a number

=COT(number)

COT syntax and parameters

One argument, one required.

  • numbernumberRequired

    The angle in radians for which you want the cotangent.

COT examples

Formulas you'll actually reuse.

  1. Cotangent of 45° — the reciprocal of TAN:

    =COT(RADIANS(45))

    Result1

  2. Back to the tangent — COT and TAN are reciprocals:

    =1 / COT(B2)

    Result1.7321

COT in Google Sheets

Same name — your formula ports as-is.

Try COT in the playground

Edit the example — nothing to install.

Preloaded with the COT formula from Example 1 — change anything and watch it respond.

Loading the editor…

COT errors

What they mean — and the fixes.

  • #DIV/0!

    COT(0) divides by TAN(0) — the angle can't be a multiple of π.