← All measures
Modular exponentiation
Math · b to the power e, modulo m, by repeated squaring so the huge power is never built. Whole numbers only.
be mod m
Result
Turn on JavaScript to calculate.
How it works
Repeated squaring reduces the work to about the number of bits in the exponent, and keeps every number below the modulus. The same method underlies public-key cryptography, where the numbers are far larger than this page accepts.
Results are estimates for learning and planning. Check anything you rely on with a qualified professional.
