Modulo Calculator

Find the remainder left over when dividing one number by another.

Calculate

Enter your values below.

Result

Remainder (a mod b)
0

Formula used

a mod b = remainder of a ÷ b

Example: 17 mod 5 = 2.

How to use this calculator

  1. Enter Dividend, Divisor.
  2. Press Calculate to see your result instantly.

Frequently asked questions

What does modulo mean?

It's the remainder left over after dividing one number by another.

Can the divisor be negative?

Yes, though the sign convention for negative operands follows JavaScript's remainder operator.

Can I use decimals?

Yes, the modulo operation works with decimal numbers too.

Where is modulo used?

It's common in programming for cycling values, checking even/odd numbers, and clock arithmetic.