Skip to content
Math Calculators

Modulo Calculator

Verified formula Updated Jun 2026 Private — runs on your device

Enter details
Verified formula Private

a mod b (remainder)

2.0000

Whole quotient
3

For general information only — not financial, tax, legal or medical advice. Verify before you rely on it.

How to use the Modulo Calculator

The Modulo Calculator works out your a mod b (remainder), along with 1 related figure in an instant. Enter dividend (a) and divisor (b) and the result updates as you type — it is free, needs no sign-up, and runs entirely in your browser so your figures stay private.

  1. Enter the dividend (a).
  2. Enter the divisor (b).
  3. Read off your a mod b (remainder), together with whole quotient — the calculator updates automatically, with no button to press.

Formula

The Modulo Calculator uses the formula:

a mod b (remainder) = Dividend (a) % Divisor (b)

Worked example

For example, with dividend (a) of 17 and divisor (b) of 5, the a mod b (remainder) is 2.0000.

Inputs used
Dividend (a) 17
Divisor (b) 5
Results
a mod b (remainder) 2.0000
Whole quotient 3

Results are estimates for educational use, not professional advice.

Frequently asked questions

Modulo gives the remainder after dividing one number by another. 17 mod 5 is 2, because 17 = 3 × 5 + 2.

The quotient is how many whole times the divisor fits into the dividend. For 17 ÷ 5 the whole quotient is 3.

It is common in programming for cycling through values, checking even or odd numbers, and wrapping around clocks and calendars.

Then the quotient is 0 and the remainder equals the dividend, since the divisor does not fit even once.

The Modulo Calculator uses the formula: a mod b (remainder) = Dividend (a) % Divisor (b). For example, with dividend (a) of 17 and divisor (b) of 5, the a mod b (remainder) is 2.0000.

Enter the dividend (a). Enter the divisor (b). Read off your a mod b (remainder), together with whole quotient — the calculator updates automatically, with no button to press.

Related calculators