Modular Arithmetic Calculator

Calculate a mod b (remainder). Free, instant.

How to Use Modular Arithmetic Calculator

1

Enter a number and modulus.

2

Get the remainder.

3

Copy or download your result.

Frequently Asked Questions

What is modular arithmetic?

The remainder after division. 17 mod 5 = 2 because 17 = 3×5 + 2.