Modular Exponentiation Calculator

Compute (base ^ exponent) mod modulus for huge numbers.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Modular exponentiation calculator

Compute (base ^ exponent) mod modulus — the building block of RSA, Diffie-Hellman and other public-key cryptography. The calculator uses the fast square-and-multiply algorithm, reducing modulo the modulus at every step, so it never forms the gigantic full power and handles enormous exponents instantly.

Enter three non-negative whole numbers and the result appears immediately. All arithmetic uses arbitrary-precision integers and runs locally in your browser.

Ad placeholder (rectangle)