Number.Atan

Number

Returns the arctangent (inverse tangent) of a number, in radians.

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Number.Atan(number as nullable number) as nullable number

Parameters

NameTypeRequiredDescription
numbernumberYesThe number whose arctangent is computed.

Return Value

numberThe arctangent in radians, in the range (-π/2, π/2).

Remarks

Number.Atan is the inverse of Number.Tan. Given any real number, it returns the angle in radians whose tangent equals that value. The result is always in the open interval (-π/2, π/2) — that is, between -90 and 90 degrees exclusive. All trigonometric functions in Power Query M work in radians, not degrees.

Unlike Number.Acos and Number.Asin, which require inputs in [-1, 1], Number.Atan accepts any real number and never returns NaN for real inputs. As the input approaches ±∞, the result approaches ±π/2 asymptotically.

The key limitation of Number.Atan is that it loses quadrant information: given only a ratio y/x, you cannot determine whether the original point was in the first quadrant (x>0, y>0) or the third quadrant (x<0, y<0). For computing angles of points in a 2D plane where quadrant matters — such as compass bearings — use Number.Atan2(y, x) instead, which takes the signs of x and y separately.

To convert the radian result to degrees, multiply by 180 / Number.PI.

Examples

Example 1: Arctangent of 1 is 45 degrees (π/4 radians)

Result
Result
145

Example 2: Arctangent of 0 returns 0

Result
Result
10

Example 3: Compute slope angle from a rise/run ratio

Number.Atan(3 / 4) * 180 / Number.PI
Result
Result
136.87

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks