Calculate the remainder when one number is divided by another.
| Remainder | – |
Use this calculator for the remainder of a division: dividend modulo divisor. It is the leftover after dividing as far as the language’s remainder operator allows, including for non-integers (for example 5.5 mod 2).
The calculation is remainder = dividend % divisor, JavaScript’s remainder operator. The sign of the result follows the dividend (IEEE remainder), so −7 mod 3 is −1, not +2. The divisor cannot be 0.
This is not integer-only Euclidean modulo. Clock arithmetic that always returns a non-negative remainder is a different convention.
Dividend: The number being divided (the left-hand side).
Divisor: The number you divide by. Must not be 0.
Remainder: The leftover after division, with the sign of the dividend.
Related calculators