✓ Effortless Math · Free Tool

Modular Arithmetic Calculator

Compute a mod m, modular addition, subtraction, multiplication, exponentiation, and the modular inverse — with clear step-by-step working.

Modular inverse:  find x with  a · x ≡ 1 (mod m)
a b modulus m

Enter whole numbers. The modulus m must be a positive integer.

Results

Result
Expression
Quotient / detail
gcd(a, m)
Check

Step-by-step