Modulo Calculator
MATHEMATICS
Modulo Calculator
Find a nonnegative remainder for integer division.
UNDERSTAND YOUR RESULT
How it works
Find a nonnegative remainder for integer division.
THE CALCULATION((a mod b) + b) mod b
Using this calculator
Enter dividend, positive divisor. ((a mod b) + b) mod b.
What to keep in mind
Calculations use finite real numbers. Intermediate values are unrounded; very large or undefined results are rejected.
Frequently asked questions
Are my entries saved?
No. Calculator inputs remain in the current page and are cleared when you reload or leave. The tools do not upload your entries.
Why are results rounded?
The display is rounded for readability. Calculations use unrounded intermediate values. An estimate should not be interpreted as an exact measurement.