---
schema_version: "1"
id: 56f5c0e25fc709284fecbc3008124e5ad52f01d6949a450d803df72b9d4d0f54
title: Handlebars Math Functions
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.md
canonical_url: https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-math-references/mcn-handlebars-reference-math.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5e9fa5654be949cae15cc8f70446192a9d06fe2cc474e552d1ce8a3d43932022
products:
  - Handlebars for Marketing Cloud Next
  - Marketing Cloud
---
# Handlebars Math Functions

Use the Handlebars math functions to perform mathematical operations on numeric values.

This section contains information about this Handlebars function.

| Function Name                                         | Description                                                                       |
| ----------------------------------------------------- | --------------------------------------------------------------------------------- |
| [add](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-math-references/mcn-handlebars-reference-math-add.md)           | Returns the sum of two numbers.                                                   |
| [divide](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-math-references/mcn-handlebars-reference-math-divide.md)     | Returns the result of dividing the first parameter by the second parameter.       |
| [modulo](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-math-references/mcn-handlebars-reference-math-modulo.md)     | Returns the remainder after dividing the first parameter by the second parameter. |
| [multiply](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-math-references/mcn-handlebars-reference-math-multiply.md) | Returns the product of two numbers.                                               |
| [random](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-math-references/mcn-handlebars-reference-math-random.md)     | Returns a random number within a specified range.                                 |
| [subtract](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-math-references/mcn-handlebars-reference-math-subtract.md) | Returns the result of subtracting the second parameter from the first parameter.  |
