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)| Argument | What it means | |
|---|---|---|
number | Required | The 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
| A | B | C | |
|---|---|---|---|
| 1 | Ramp | Run per 1 rise | |
| 2 | Accessibility standard | 12 | 4.76 |
Result: 4.76
A gradient of 1 in 12 is about 4.76° (2 decimals).
2Negative input gives an obtuse angle
| A | |
|---|---|
| 1 | 135 |
Result: 135
ACOT returns angles between 0° and 180°, so −1 gives 135°. DEGREES(ATAN(1/-1)) would give −45°.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.