Modulo Calculator
Find remainders the proper mathematical way. Enter any dividend and modulus to get the result with the quotient and full verification steps — including the correct handling of negative numbers that the % operator gets wrong.
How to use
- Enter the dividend a — the number being divided.
- Enter the modulus n — the divisor, which cannot be zero.
- Read the result: the mathematical remainder, always between 0 and n-1.
- Check the verification steps to see the quotient and confirm that a = q x n + r.
Note: In programming languages, the % operator takes the sign of the dividend for negative numbers, but in mathematics the modulo remainder is always non-negative. This tool gives the mathematical result.