---
schema_version: "1"
id: 2d353ef2b5c0164e27b00d94d6ff0318c490da9112650f6a14e53aed21ee02cc
title: tan({n})
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_sql/guides/bi-sql-math-tan.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-math-tan.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 861d583cdb5b10995468ed8fe024ac270711cb3f458bdeb941b2235c64e30d46
products:
  - SQL for Analytics Developer Guide
  - analytics
---

# tan({n})

Returns the tan value of radians value `{n}`. `{n}` can be any real number in the range of -1e308 \<= `{n}` \<= 1e308. If `null` is passed as an argument, `tan()` returns `null`.

`tan({n})` takes the following syntax.

```nolang
SELECT TAN(N) as ALIAS
FROM DATASET;
```

## Example

This example takes the tan of 90 degrees.

```nolang
SELECT TAN(RADIANS(90)) as tanValue
FROM "Opportunity"
LIMIT 1;
```

| tanValue |
| -------- |
| 163312   |
