---
schema_version: "1"
id: 2d21807d5c26290658475f1fe0162277bb1157e0359c564660acaa3a1b775e63
title: "Handlebars Helper Function: add"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/handlebars/reference/math/mcn-handlebars-reference-math-add.md
canonical_url: https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-math-references/mcn-handlebars-reference-math-add.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d3964a502c2908739a5953bc524f54ebd1e60976cc29f2fde8fee6d6652bd2ed
products:
  - Handlebars for Marketing Cloud Next
  - Marketing Cloud
---
# Handlebars Helper Function: add

Adds two numeric arguments and returns their sum. The function can handle both integer and floating-point numbers, and attempts to convert strings to numbers.

## Availability

This helper is available in the Winter ’26 release of Marketing Cloud Next.

## Syntax

```handlebars
{{add value1 value2}}
```

## Parameters

| Parameter | Type             | Description                                                                     |
| --------- | ---------------- | ------------------------------------------------------------------------------- |
| `value1`  | Number or String | Required. The first value to add. Must be a number or convertible to a number.  |
| `value2`  | Number or String | Required. The second value to add. Must be a number or convertible to a number. |

## Return Value

The function returns the arithmetic sum of the two input values. If you provide more than two arguments, the operation adds only the first two. The result is always a number rounded to 2 decimal places.

If either input is a string, the operation tries to convert it to a number. If a string value can't be converted to a number, the operation throws an exception.
