Modular exponent calculator
Reduce a large integer power modulo a positive modulus without constructing the full power.
Calculator
How to use this calculator
Reduce a large integer power modulo a positive modulus without constructing the full power.
- Enter Base a, Exponent n, Modulus m. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Modular exponent calculator
Reduce a large integer power modulo a positive modulus without constructing the full power.
What it measures
Reduce a large integer power modulo a positive modulus without constructing the full power.
Inputs and units
- Base a: Enter the value represented by this label; keep its domain, sign, and units consistent with the formula and assumptions below.
- Exponent n: Enter the value represented by this label; keep its domain, sign, and units consistent with the formula and assumptions below.
- Modulus m: Enter the value represented by this label; keep its domain, sign, and units consistent with the formula and assumptions below.
Formula and method
a^n mod m, computed by repeated squaring
Worked example
7²=10, 7⁶≡−1 (mod 13), so 7¹²≡1 and 7¹²⁸≡7⁸≡3 (mod 13).
Interpreting the result
The remainder is the unique result from 0 through m−1. It is useful in modular arithmetic and should not be read as an ordinary decimal value of the power.
Assumptions and limits
The base and exponent must be integers and the modulus a positive integer. Repeated squaring is exact for the supported integer range.
Frequently asked questions
Why is the result smaller than the power?
The calculator returns the remainder after division by the modulus, not the full power.
Can the modulus be zero?
No. Remainder modulo zero is undefined.
How do I use the Modular exponent calculator?
Enter Base a, Exponent n, Modulus m. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Modular exponent?
7²=10, 7⁶≡−1 (mod 13), so 7¹²≡1 and 7¹²⁸≡7⁸≡3 (mod 13).
What does the Modular exponent calculator calculate?
Reduce a large integer power modulo a positive modulus without constructing the full power.
See the calculation methodology.
Good calculators show their work.
CalcWorldHub is built around clear inputs and visible assumptions. Results are estimates for planning; check official sources or your provider’s terms when exact figures matter.