Modulo Calculator

Find the remainder and quotient of a division.

a mod b 2
Quotient 3

Formula: a mod b = remainder of a ÷ b

Step-by-step with your numbers:
1. Values used:
2. Dividend (a) = 17
3. Divisor (b) = 5
4.
5. a mod b = 2
6. Quotient = 3
Did we solve your problem today?

The modulo gives the remainder after division.

The math behind it

a mod b = what's left after dividing a by b as many whole times as possible.

Worked example

17 mod 5 = 2 (quotient 3).

FAQ

Use?

Wrapping clocks, cycles, hashing and parity (even/odd).