About the Modular Arithmetic Calculator
Modular exponentiation (aᵇ mod m), modular inverse and a mod m for very large integers using BigInt precision.
Also known as: modular exponentiation, modular inverse calculator, mod pow, power mod.
How to use this calculator
- Enter operation, a, m (modulus).
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
aᵇ mod m via square-and-multiply · a⁻¹: a·x ≡ 1 (mod m)
Worked example
Using the values pre-filled in the calculator above:
- Operation: aᵇ mod m
- a: 7
- b (exponent): 560
- m (modulus): 561
the calculator returns:
- 7^560 mod 561: 1