---
schema_version: "1"
id: bc45241e4527f13494637b15dc201c18017f6810576ef9ec371f5eec16af8fa0
title: AMPscript Math Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/references/math/mc-ampscript-reference-math.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-math/mc-ampscript-reference-math.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 71756b341231a369c35d667d8edde36170c71ff54a51851779643b446535c845
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# AMPscript Math Functions

Use the math AMPscript functions to perform mathematical operations on numeric values.

This table lists all of the math-related AMPscript functions. The value in the Engagement column indicates whether Marketing Cloud Engagement supports the function. The value in the Next column indicates whether Marketing Cloud Next supports the function.

| Function Name                                         | Description                                                                       | Engagement  | Next        |
| ----------------------------------------------------- | --------------------------------------------------------------------------------- | ----------- | ----------- |
| [Add()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-math/mc-ampscript-reference-math-add.md)           | Returns the sum of two numbers.                                                   | ✅&nbsp;Yes | ✅&nbsp;Yes |
| [Divide()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-math/mc-ampscript-reference-math-divide.md)     | Returns the result of dividing the first parameter by the second parameter.       | ✅ Yes      | ✅ Yes      |
| [Mod()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-math/mc-ampscript-reference-math-mod.md)           | Returns the remainder after dividing the first parameter by the second parameter. | ✅ Yes      | ✅ Yes      |
| [Multiply()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-math/mc-ampscript-reference-math-multiply.md) | Returns the product of two numbers.                                               | ✅ Yes      | ✅ Yes      |
| [Subtract()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-math/mc-ampscript-reference-math-subtract.md) | Returns the result of subtracting the second parameter from the first parameter.  | ✅ Yes      | ✅ Yes      |
