Modulo Calculator

Compute a mod b — the remainder after division, with quotient and divisibility check.

The formula behind it

a mod b = a − b·trunc(a/b)
a
dividend
b
divisor (non-zero)

Modulo returns the remainder of truncated division. It answers cyclical questions: what is left after removing whole groups of b from a.

How to use this calculator

  1. 1

    Enter the dividend and the divisor.

  2. 2

    Press Calculate.

  3. 3

    Read the remainder plus the divisibility verdict.

Worked examples

Clock arithmetic

100 minutes after 12:00 → 100 mod 60 = 40, so the time shows :40 past the hour.

Even/odd test

n mod 2 = 0 means even; 7 mod 2 = 1 means odd.

Frequently asked questions

Explore more categories

Command Palette

Search for a command to run...