Modulo Calculator

Calculate modulo (a mod b) for the given numbers.


Modulo returns the remainder of a divided by b.

What is modulo?

Modulo, also known as "remainder" is a mathematical operation that gives you the leftover amount when you divide one number by another.


Imagine you have 10 cookies and 3 friends.

When you divide the cookies equally, each friend gets 3 cookies, and there is 1 cookie left.

10 รท 3 = 3 remainder 1

This leftover cookie is the remainder, or the modulo. So, the modulo of 10 divided by 3 is 1.

How to use this calculator?

  1. Input the total number into the first field.
  2. Input the divider into the second field.
  3. Get your Modulo from the "Results" section.

Optionally, you can also check the calculation that explains the process.