QuickFreeTools

Online Remainder Calculator

Calculate the remainder when a is divided by b: a mod b. Same as the remainder in integer division.

Frequently Asked Questions

What is the remainder?
When a is divided by b, the remainder is a − b × floor(a/b). E.g. 17 mod 5 = 2.
What if b is negative?
Different languages define mod differently for negatives. This tool uses the same behavior as JavaScript: sign follows dividend.
What about division by zero?
Remainder when b = 0 is undefined; the tool will show an error.

Related Calculators