ATAN Function
Returns the angle whose tangent is a given number.
Category
Math & Trig
Available in
All versions, Microsoft 365
Returns
An angle in radians
Want to practice ATAN 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
ATAN (arctangent) turns a slope back into an angle between −90° and 90°.
The answer is in radians. Wrap it in DEGREES to get degrees.
Syntax
=ATAN(number) Explain
Arguments
| Argument | Required? | What it does |
|---|---|---|
| number | Yes | The tangent (slope) of the angle. |
Examples
Example 1 — Angle of a ramp
Ramp slopes as rise ÷ run, converted to degrees.
B2fx=DEGREES(ATAN(A2))
| A | B | |
|---|---|---|
| 1 | Slope | Degrees |
| 2 | 1 | 45 |
| 3 | 0.0833 | 4.76 |
| 4 | 0 | 0 |
=DEGREES(ATAN(A2)) Explain
Common mistakes
- Which quadrant? ATAN can't tell (1, 1) from (−1, −1). Use ATAN2 when you have x and y separately.
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.