Math & statistics

Modulo calculator

Use the free modulo calculator to calculate result using integer dividend, integer divisor. See the formula and a worked example.

Enter your values

Result
2
Example result. Change the values to calculate.

How the calculation works

Nonnegative remainder modulo the absolute divisor

Worked example

Using Integer dividend: 17, Integer divisor: 5, the result is 2.

General calculation; confirm assumptions before relying on the result.

Results are rounded for display. Check inputs and assumptions before using a result in a consequential decision.