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

ArgumentRequired?What it does
numberYesThe tangent (slope) of the angle.

Examples

Example 1 — Angle of a ramp

Ramp slopes as rise ÷ run, converted to degrees.

B2fx=DEGREES(ATAN(A2))
AB
1SlopeDegrees
2145
30.08334.76
400
=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

Kyle Stott

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.