Category: FUNCTION | Updated: 2026-11-22
[ATAN Function] How to Calculate the Inverse Tangent (Arctangent) from a Tangent Value
Syntax
=ATAN(value)
- value: The tangent value for which you want to find the inverse tangent. Any real number is valid.
Example Table
Examples of calculating angles from tangent values and ramp dimensions.
| Tangent Value (Col A) | Formula (Radians) | Output (Radians) | Formula (Degrees) | Output (Degrees) |
|---|---|---|---|---|
| 0 | =ATAN(A2) |
0 | =DEGREES(ATAN(A2)) |
0 |
| 1 | =ATAN(A3) |
0.785398163 | =DEGREES(ATAN(A3)) |
45 |
| -1 | =ATAN(A4) |
-0.785398163 | =DEGREES(ATAN(A4)) |
-45 |
=10/17.3205 |
=ATAN(A5) |
0.523598916 | =DEGREES(ATAN(A5)) |
30.000008 |
Common Errors and Caveats
- #VALUE! error: Occurs if you pass a non-numeric text string. Unlike
ASINandACOS,ATANaccepts all real numbers, so it does not produce#NUM!errors. - Output range limit: The returned value is always between
-π/2(-90°) andπ/2(90°).
Frequently Asked Questions
Q. How can I find the slope angle (in degrees) of a ramp from its height and horizontal distance?
A. Because "height / horizontal_distance" equals the tangent, you can calculate the slope angle in degrees using "=DEGREES(ATAN(height / horizontal_distance))".
Q. What is the difference between ATAN and ATAN2?
A. ATAN takes a single value (the y/x ratio) and returns an angle between -90° and 90°. ATAN2 takes separate x and y coordinates and returns an angle between -180° and 180° while accounting for the quadrant.