---
schema_version: "1"
id: cdad7a47de68517bd7453322917cbd8e79fe757044034dce01e27056e7a173d4
title: Divide()
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-divide.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-math/mc-ampscript-reference-math-divide.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7314b649824bbc6799eefdcc04eabda163975d82993ed1e5cf9b7492712fa5ca
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# Divide()

Returns the result of dividing the first parameter by the second parameter.

## Availability

<table>
  <tr>
    <td>Marketing Cloud Engagement</td>
    <td>✅ Yes</td>
  </tr>
  <tr>
    <td>Marketing Cloud Next</td>
    <td>✅ Yes</td>
  </tr>
</table>

This function became available in Marketing Cloud Next during the Summer ’26 release (API version 67.0).

## Syntax

```
Divide(dividend, divisor)
```

The `Divide()` function has two parameters:

- `dividend` (number): Required. The initial number.
- `divisor` (number): Required. The number to divide the dividend by.

## Usage

To use this function, pass it two numbers. The numbers can be positive or negative integer or decimal numbers.

```
%%=Divide(512,256)=%%
```

The function returns the quotient of the two numbers: `2`.
