⌘ Number & Reference · Tool

Modulo Calculator

Calculate the mathematical modulo (least non-negative remainder) of an integer division.

Enter your figures

Enter the values below to calculate your result.

Calculation Results

Based on the figures you entered.

Modulo result
5
Quotient
4
Remainder
5
Convention
The returned remainder is in the range 0 to |modulus| − 1.

How to use this calculator

What to enter

Enter or select the following as requested: Number; Modulus. Follow the units, valid ranges, examples, and options displayed beside each field.

What the result means

The result follows the number property, divisibility rule, numeral system, or arithmetic operation named by the calculator. Check whether the input must be an integer, the selected base, sign conventions, and whether the output uses decimal, binary, hexadecimal, or another representation.

When to use it

Use this to check a number-theory problem or convert numeric representations. Verify input constraints and preserve the correct base when copying the result into another tool or calculation.