๐Ÿงฎ Modular Arithmetic Calculator

Calculate the remainder of an integer after division by a positive modulus.

No ratings yet โ€” be the first
Rate it: โ˜… โ˜… โ˜… โ˜… โ˜…

Enter details

Remainder
3

Also available in our Android app, with charts and full breakdown tables.

๐Ÿ“˜ About the Modular Arithmetic

Use modular arithmetic to find expressions such as 123 mod 10.

The modulus must be non-zero.

๐Ÿงฎ Formula

Modulo operation
a mod m

Where

  • a = number
  • m = modulus
  • remainder = a - floor(a/m)m
For standard elementary use, enter positive integers.

โœ๏ธ Worked example

123 modulo 10

You enter
Number123
Modulus10
You get
Remainder3

The remainder is 3.

Try this example โ†’

๐Ÿงญ How to use this calculator

What you enter

  • Number
  • Modulus

What you get

  • Remainder

๐Ÿ’ก Common uses

  • Clock arithmetic.
  • Divisibility checks.
  • Number theory exercises.
  • Computer science and algorithms.

โ“ Frequently asked questions

What does modulo mean?

It gives the remainder after division.

Can the modulus be zero?

No. Division by zero is undefined.

Is modulo useful in number theory?

Yes. Congruences and divisibility are commonly expressed using modular arithmetic.