SQL Flow Field Guide

TAN

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

TAN ( float_expression )

Work example

Calculate tangent for an angle in radians.

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

Check your work Test angles near odd multiples of pi over two where the result grows sharply.

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