---
title: "add function in Strata | Oplema"
description: "Add two values and return their sum, such as 5 for add(2, 3). It also adds an interval to a date, time or timestamp. Works in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/add"
updated: "2026-11-04"
---

# add

Add two values.

## Try an expression

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

### Expression

```
add(2, 3)
```

### Result

```
5
```

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 | 5 |

## Arguments and types

```
add(a, b)
```

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

[multiply

Multiply two values.

](https://oplema.com/docs/strata/functions/multiply)[round

Round decimal values to a consistent number of places for prices, measurements or reports.

](https://oplema.com/docs/strata/functions/round)[abs

Return the absolute value of a number, removing any minus sign.

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

Computes the arccosine of x.

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

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

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