How to find a remainder
- Enter the dividend, the number being divided.
- Enter the divisor, the number you divide by.
- Read the remainder, the quotient and whether it divides exactly.
Modulo and remainder
a mod b is what is left over after dividing a by b as many whole times as possible: a = b × quotient + remainder.
A remainder of 0 means a is divisible by b. The divisor cannot be zero. For negative numbers this calculator gives the remainder with the sign of the dividend, so −7 mod 3 = −1.
Worked examples
17 mod 5
17 = 5 × 3 + 2, so the remainder is 2.
Divisibility
84 mod 7 = 0, so 84 is divisible by 7.
Frequently asked questions
How do I check if one number divides another?
Find the remainder. If a mod b is 0, then b divides a exactly.
What does modulo do with negative numbers?
Conventions differ between programming languages. This calculator keeps the sign of the dividend: −7 mod 3 is −1.