Modulo Calculator
Result
a mod b 2.0000
Quotient (⌊a ÷ b⌋) 3
The Modulo Calculator returns the remainder after dividing one number by another, along with the integer quotient. Enter the dividend and divisor.
Formula
a mod b = a − ⌊a ÷ b⌋ × b
- The result has the same sign as the divisor (floored modulo).
- Modulo is widely used in scheduling, hashing and cyclic patterns.
17 mod 5
Inputs
- Dividend (a): 17
- Divisor (b): 5
17 ÷ 5 = 3 remainder 2, so 17 mod 5 = 2.
Frequently asked questions
What does modulo mean?
It is the remainder left after dividing one number by another. For 17 mod 5, the remainder is 2.