Enter a dividend and a divisor to get the remainder, the whole-number quotient, and the true mathematical modulo. The modulo operation returns what is left over after dividing one number by another, which powers clock arithmetic, hashing, cycling through lists, and checking whether numbers are even or divisible. Many programming languages return a negative remainder when the dividend is negative, so this calculator shows both the raw remainder that matches most code and the always-non-negative mathematical modulo, so you can pick the one your problem needs. It works with decimals as well as whole numbers. Type the two values and every result appears at once. All of the arithmetic happens locally in your browser, so it is instant and nothing you enter is ever uploaded.
It returns the remainder left after dividing one number by another, so 17 mod 5 is 2.
For negative numbers the remainder can be negative while the true mathematical modulo is always non-negative, and the tool shows both.
Yes. Alongside the remainder you get the whole-number quotient of the division.
Enter a dividend and a divisor to get the remainder, the whole-number quotient, and the true mathematical modulo. The modulo operation returns what is left over after dividing one number by another, which powers clock arithmetic, hashing, cycling through lists, and checking whether numbers are even or divisible.
Yes. Modulo Calculator is completely free, with no sign-up and no usage limits.
Yes. Modulo Calculator runs in any modern web browser. There is nothing to download or install.
Yes. Modulo Calculator runs entirely on your device in your browser, so nothing you enter is uploaded to a server.
Link this tool from a README, doc or site. The badge links back to this page.
[](https://yourhack.ai/modulo-calculator)