---
title: "Use the MOD Function to Return the Remainder of a Division"
slug: "mod-function"
description: "Learn to apply the MOD function in Pigment to simplify division-based calculations and return remainders efficiently."
tags: ["Division Remainder", "formula syntax", "functions ", "MOD ", "Modeling and Formulas", "Pigment Blocks", "Pigment Boards"]
updated: 2025-05-30T09:40:40Z
published: 2025-08-22T10:57:28Z
---

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

# MOD function

## Description

Returns the remainder of a division, after the given Number is divided by the divisor.

## Syntax

`MOD(Number, Divisor)`

## Arguments

| Argument | Type | Dimensions | Description |
| --- | --- | --- | --- |
| *Number* (required) | Number | Any Dimensions | Number to divide. |
| *Divisor* (required) | Number | No Dimension or Dimensions of *Number* | Number to divide with. |

## Returns

| Type | Dimensions |
| --- | --- |
| Number | Dimensions of argument *Number* |

## Examples

| Formula | Result | Description |
| --- | --- | --- |
| `MOD(19, 5)` | 4 | 19 divided by 5 has a remainder of 4. |
| `MOD(2, 5)` | 2 | 2 divided by 5 has a remainder of 2. |

## See also

Excel: [MOD](https://support.microsoft.com/en-us/office/mod-function-9b6cd169-b6ee-406a-a97b-edf2a9dc24f3)

Related articles: [QUOTIENT](/v1/docs/quotient-function)

> [!TIP]
> More of a hands-on learner?
> 
> Talk to your Customer Success Manager about downloading the Functions and Modifiers in Pigment Application into your workspace. It includes examples of every formula and modifier in Pigment!

<style> p[data-block-id] {font-size:1rem;} ul li p[data-block-id] {margin-bottom: 0;} ul[data-type="taskList"] li div p[data-block-id] {margin-bottom: 0;} ol li p[data-block-id] {margin-bottom: 0;} table tbody th p[data-block-id] { margin-bottom: 0;} blockquote p[data-block-id] {margin-bottom: 0 !important;} &nbsp;p[data-block-id]:empty::after {content: "\00A0";} </style>
