Calculators

Modulo Calculator

Find the remainder and quotient when one number is divided by another.

Remainder (a mod b)—
Quotient
—

What is the Modulo Calculator?

Find the remainder and quotient when one number is divided by another.

Enter dividend and divisor and the Modulo Calculator returns remainder (a mod b) and quotient. Results update as you type, and nothing you enter leaves your device.

How it is calculated

a mod b = a − b × floor(a ÷ b)

How to use it

  1. Enter dividend.
  2. Enter divisor.
  3. Read remainder (a mod b) in the results panel. It updates as you type.
  4. Change any value to compare scenarios, or use Share to send the result as a link.

Common questions

What formula does the Modulo Calculator use?

It uses: a mod b = a − b × floor(a ÷ b).

What do I need to use the Modulo Calculator?

You need dividend and divisor. Sensible starting values are filled in so you can see how it works straight away.

Is the Modulo Calculator free, and is my data stored?

It is free with no sign-up. The calculation runs in your browser, so the values you enter are not sent to or stored on our server.

Your calculations