Modular Exponentiation Calculator
Compute base^exp mod m.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
This calculator computes modular exponentiation — base^exponent mod modulus — using the fast "square-and-multiply" method instead of computing the full power first, which keeps the numbers manageable even for huge exponents.
It's the core operation behind public-key cryptography: RSA encryption, Diffie-Hellman key exchange, and digital signatures all repeatedly raise numbers to large powers modulo a big number. Computer science students use it to learn the algorithm, and developers use it to verify results while implementing crypto code.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)