> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meridian.surf/llms.txt
> Use this file to discover all available pages before exploring further.

# Calculate

> Perform math operations and save the result to a variable.

The **Calculate** block lives in the **Variables & Data storage** palette category. Perform math operations and save the result to a variable.

## What it does

Perform math operations and save the result to a variable.

## Configuration

Open the block in the builder sidebar to configure these fields.

### `operation`

**Type:** `string`. Required.

Math operation to run. Accepted values: `add`, `sub`, `mul`, `div`.

### `value_1`

**Type:** `string`. Required.

First operand. Numbers or variables.

### `value_2`

**Type:** `string`. Required.

Second operand.

### `save_var`

**Type:** `string`. Required.

Flow variable that stores the result as `{vars.name}`.

## See also

* [Variables & Data storage](/builder/action-blocks/variables-and-data-storage) — Browse all blocks in the Variables & Data storage category.
