mod Modulo Calculator

Calculate the mathematical modulo of one number by another using the floor-based definition.

No ratings yet — be the first
Rate it: ★ ★ ★ ★ ★

Enter details

Enter a non-zero modulus.
Modulo Result
1
Floor Quotient
4

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

📘 About the Modulo

Modulo describes the remainder under a mathematical floor-based definition.

It is useful for repeating cycles, divisibility and modular arithmetic.

🧮 Formula

Floor quotient
q = floor(n ÷ m)
Modulo
n mod m = n − m × floor(n ÷ m)

Where

  • n = number
  • m = modulus
The modulus should be non-zero.

✏️ Worked examples

17 modulo 5

You enter
Number17
Modulus5
You get
Modulo Result2
Floor Quotient3

The modulo result is 2.

Try this example →

29 modulo 7

You enter
Number29
Modulus7
You get
Modulo Result1
Floor Quotient4

The modulo result is 1.

Try this example →

🧭 How to use this calculator

What you enter

  • Number
  • ModulusEnter a non-zero modulus.

What you get

  • Modulo Result
  • Floor Quotient

💡 Common uses

  • Checking whether numbers divide evenly.
  • Repeating schedules and cycles.
  • Modular arithmetic.
  • Computer science and programming concepts.

❓ Frequently asked questions

What does modulo mean?

Modulo gives the remainder under a specified mathematical definition of division.

What is 17 mod 5?

It is 2.

Can modulo work with negative numbers?

Yes. This calculator uses the floor-based mathematical definition.