Modular Arithmetic Calculator
Calculate exact bounded modular operations and inverses.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: This is integer arithmetic only; work and digit caps apply and the result is not a cryptographic implementation.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use Modular Arithmetic Calculator
Fill in the fields:
- Operation: Modular addition, Modular subtraction, Modular multiplication, Modular exponentiation, Modular inverse (right ignored).
- Left integer.
- Right integer or exponent.
- Positive modulus.
Press “Calculate exact residue”.
Copy the result, or download it as modular-arithmetic.json.
About this tool
Calculate exact bounded modular operations and inverses.
Uses exact integers of at most 100 digits. Exponents are capped at 1,000,000; inverse fails when the value and modulus are not coprime.

