Modulo Calculator (Remainder)

Find a mod n — both the truncated and floored remainder conventions.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Modulo (remainder) calculator

Compute a mod n and see the remainder under both common conventions: the truncated result used by JavaScript, C and Java, and the floored result used by Python and standard mathematics. The integer quotient is shown too. The two remainders differ only when exactly one of the numbers is negative.

It is privacy-first: all arithmetic happens locally in your browser, so the numbers you enter never leave your device.

Ad placeholder (rectangle)