SQL Flow Field Guide

ATAN

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

math

What changes

Input
numeric arguments
Output or change
numeric value
Return type
float

Syntax at a glance

ATAN ( float_expression )

Work example

Calculate inverse tangent of a ratio.

Test domain limits and the largest expected input. Keep degree and radian units explicit.

Check your work Read the result in radians and use ATN2 when quadrant information matters.

Open Microsoft Learn for full syntax, permissions, and details for your version.