Modulo Calculator
Number (a)
Modulus (n)
Reset
17 mod 5
2
Quotient (floor of a ÷ n)
3
Floored mod (Python %, Excel MOD)
2
Truncated remainder (JavaScript, C, Java %)
2
Check
17 = 5 × 3 + 2
Open the full modulo calculator
with the formula and FAQs at Calcs for Life