Modular Arithmetic in Real Life

Published 16 November 2026 · Math

Try it nowModulo Calculator →

Try examples with the modulo calculator.

  1. Clocks: 9 o’clock + 5 hours = 14 mod 12 = 2 o’clock.
  2. Days of the week: 100 days after Monday is 100 mod 7 = 2 days later – Wednesday.
  3. Check digits: ISBNs, barcodes and credit card numbers use mod 10 or mod 11 to catch typos.
  4. Even or odd: n mod 2 = 0 means even.
  5. Hash tables: programs store data at position key mod table size.
  6. Cryptography: RSA encryption relies on modular exponentiation with huge numbers.

Keep reading