Math & trig function

ACOT function

Returns the arccotangent (inverse cotangent) of a number, as an angle in radians from 0 to π.

Available in Excel 2013 and later, Microsoft 365, Excel for the web, Excel for Mac 2016 and later

Excel 2013 and laterWorks in Google Sheets

Syntax

ACOT(number)
ArgumentWhat it means
numberRequiredThe cotangent of the angle, e.g. run / rise.

Returns: An angle in radians greater than 0 and less than π.

How ACOT works

ACOT is the inverse of COT: it returns the angle whose cotangent (adjacent ÷ opposite, or run ÷ rise) is the given number. If you naturally work with "run per unit of rise", for example a stair or ramp described as 1 in 12, ACOT gives the angle directly without inverting the ratio first.

For positive numbers it equals ATAN(1/number). The difference is in the range: ACOT returns values between 0 and π, so negative inputs give angles between 90° and 180°, and ACOT(0) is π/2 (90°) rather than an error. Convert with DEGREES.

Examples

1Angle of a 1-in-12 ramp

C2fx=DEGREES(ACOT(B2))
ABC
1RampRun per 1 rise
2Accessibility standard124.76

Result: 4.76

A gradient of 1 in 12 is about 4.76° (2 decimals).

2Negative input gives an obtuse angle

A1fx=DEGREES(ACOT(-1))
A
1135

Result: 135

ACOT returns angles between 0° and 180°, so −1 gives 135°. DEGREES(ATAN(1/-1)) would give −45°.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!The argument is text.Use a number.

Tips

  • In versions before 2013 use =PI()/2-ATAN(x), which matches ACOT for all x.

Google Sheets

ACOT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

ACOT in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishARCCOT
DutchBOOGCOT
GermanARCCOT
HungarianARCCOT
ItalianARCCOT
SwedishARCCOT