The TAN() function returns the tangent of a given angle. It's a fundamental trigonometric function that calculates the ratio of the length of the side that is opposite the angle to the length of the side that is adjacent to the angle in a right-angled triangle, mathematically expressed as TAN(x) = opposite / adjacent = SIN(x) / COS(x). In a unit circle, it represents the ratio of the y-coordinate to the x-coordinate of a point.

This function can be useful to measure the rate of change between consecutive periods in a rolling trend analysis.

TAN(Angle)

ArgumentData typeDescription
AngleNumber

The angle in radians for which you want to calculate the tangent.

Use the TORADIANS() function to convert degrees to radians.

The TAN() function returns a numeric value. But, it becomes undefined at odd multiples of π/2, such as ±π/2, ±3π/2, and others, where the function approaches infinity.

This function is only available in the Polaris Calculation Engine.

TAN(PI() / 4)

Returns NaN when Angle is NaN.

FormulaResult
TAN(0.785)0.9992
TAN(45 * PI() / 180)1
TAN(TORADIANS(45))1