---
title: "atan function in Strata | Oplema"
description: "Calculate the arctangent of a number, returning the angle in radians. Write it as atan(x) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/atan"
updated: "2026-11-04"
---

# atan

Computes the arctangent of x.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **DOUBLE**.

### Expression

```
atan(0.5)
```

### Result

```
0.4636476090008061
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 0.4636 |

## Arguments and types

```
atan(x)
```

**x**

Number

Supported signatures (1)

```
atan(x: DOUBLE) → DOUBLE
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[atan2

Computes the arctangent (y, x).

](https://oplema.com/docs/strata/functions/atan2)[acos

Computes the arccosine of x.

](https://oplema.com/docs/strata/functions/acos)[acosh

Computes the inverse hyperbolic cos of x.

](https://oplema.com/docs/strata/functions/acosh)[asin

Computes the arcsine of x.

](https://oplema.com/docs/strata/functions/asin)

[Browse numbers](https://oplema.com/docs/strata/functions#numbers) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/numeric.html#atanx)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
