---
title: "TAN"
description: "The TAN SQL function returns the tangent of the provided angle."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/tan
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/tan
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

## Syntax
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> TAN[TAN]:::quoted
    TAN --> End((END))
```

## Purpose
The `TAN` SQL function returns the tangent of the provided angle. See also [[ATAN]] and [[ATAN2]].

Parameters:
- Input (`decimal`): the angle to get the tangent of.

Returns: A number which represents the tangent of the provided angle.

## Examples
`TAN` retrieves the tangent of the angle:
```sql
select tan(0)

--------
0
```
The following example retrieves the tangent of the angle 1 radian:
```sql
select tan(1)

----------------
1.5574077246549
```