% Modulo Calculator

Calculate remainder (modulo) of division operations

About Modulo

Modulo operation finds the remainder after division. Written as a mod b or a % b.

Applications

Frequently Asked Questions

What is 17 mod 5?

17 ÷ 5 = 3 remainder 2, so 17 mod 5 = 2

Can modulo be negative?

In some languages yes, but mathematically the result is typically 0 to divisor-1.