ATAN Function

Excel Functions › Math & Trig

All versions Math & Trig

The Excel ATAN function returns the arctangent (inverse tangent) of a number — the angle whose tangent is that value. The result is in radians, from -π/2 to π/2.


Quick answer:
=DEGREES(ATAN(1)) angle whose tangent is 1 = 45 degrees

Syntax

=ATAN(number)
ArgumentDescription
numberRequiredThe tangent value (any real number). ATAN returns the angle in radians, from -π/2 to π/2.

How to use it

ATAN is the inverse of TAN: it converts a tangent value into the angle that produced it. Unlike ASIN and ACOS, ATAN accepts any real number — there is no domain limit:

=ATAN(1) // pi/4 radians = 0.7854
=DEGREES(ATAN(1)) // = 45 degrees
=DEGREES(ATAN(0)) // = 0 degrees

The returned angle is always between -π/2 and π/2 (−90 to 90 degrees). Because ATAN only sees a single ratio, it cannot tell which quadrant the original point was in. When you have both an x and a y coordinate, use ATAN2 instead to get the full −180 to 180 range.

Slope to angle: a rise/run slope of 1 is a 45-degree incline — =DEGREES(ATAN(1)) confirms it. ATAN turns any slope into its angle of inclination.

Try it: interactive demo

Live demo

Pick a ATAN example to see the formula and its result.

Result:

Practice workbook

📊
Download the free ATAN practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Why does ATAN(1) return 0.7854 rather than 45?
ATAN returns the angle in radians; 0.7854 is π/4 radians. Use =DEGREES(ATAN(1)) to get 45.
Does ATAN have a domain limit like ASIN?
No. ATAN accepts any real number because tangent ranges over all values. The result simply stays between −90 and 90 degrees.
When should I use ATAN2 instead of ATAN?
Use ATAN2 when you have separate x and y coordinates and need the angle in the correct quadrant (−180 to 180). ATAN only sees the ratio, so it cannot distinguish quadrants.
What angle range does ATAN return?
Always between -π/2 and π/2 radians (−90 to 90 degrees).

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: TAN · ATAN2 · ASIN · ACOS · DEGREES · ATANH