Find the remainder of a division with our easy-to-use modulo calculator — ideal for math and programming tasks.
The modulo operation gives you the remainder after dividing one number by another. For example, 12 mod 5 is 2 because 12 ÷ 5 is 2 with a remainder of 2.
Formula for Modulo
The modulo formula is:
a mod b = r
Where:
So, if a = 12 and b = 5, then 12 mod 5 = 2.