Math

Modulo Calculator

Calculate remainders and explore modular arithmetic.
a mod n
mod
Modular Exponentiation (aⁿ mod m)
Modulo Table
In most languages: 17 % 5 = 2
Python: −7 % 3 = 2 (always positive) · C/Java: −7 % 3 = −1 (sign of dividend)