Number Theory 8 min read

Modular Arithmetic Explained: Clock Math & Modulo Formulas

Learn modular arithmetic ("clock math"). Master modulo operations (a mod n), congruences, and cryptographic application basics.

What Is Modular Arithmetic?

Modular arithmetic is a system of arithmetic for integers where numbers "wrap around" after reaching a certain value called the modulus (n).

Example (12-hour clock): 9:00 + 5 hours = 14:00 → 14 mod 12 = 2:00.

Σ
Reviewed by Applied Math Specialists • Editorial Policy
Updated: August 11, 2026

Related Interactive Calculators

Practice Tools