Modular Arithmetic Calculator
Calculate mod, modular inverse, and modular exponentiation.
Result
17
Step-by-step
17 mod 26 = 17 ⌊17 ÷ 26⌋ = 0 → remainder = 17
Clock Diagram — mod 26
a ≡ 17 (mod 26)
result = 17
About Modular Arithmetic Calculator
Modular arithmetic treats numbers like positions on a clock — values wrap around once they exceed the modulus. This calculator handles mod, modular addition, subtraction, multiplication, fast exponentiation (square-and-multiply with BigInt for arbitrary precision), modular inverse via the extended Euclidean algorithm, GCD, and congruence checks. Essential for cryptography (RSA, Diffie-Hellman, elliptic curves), computer science (hash tables, checksums, cyclic buffers), and number theory.
Private & free — this tool runs entirely in your browser.
Related Calculators tools
Percentage Calculator
Solve percentage, increase, and change calculations.
Age Calculator
Calculate exact age in years, months, and days.
Unix Timestamp Converter
Convert Unix epoch timestamps to and from human dates.
Tip Calculator
Calculate tip and split the bill between people.
Aspect Ratio Calculator
Solve width or height for a target aspect ratio.
Temperature Converter
Convert between Celsius, Fahrenheit, and Kelvin.
Data Storage Converter
Convert between bytes, KB, MB, GB, TB, and more.
Discount Calculator
Calculate sale price and savings from a discount.