How to use the modular exponentiation calculator
Find a raised to the power b, reduced modulo m, for small whole numbers. Enter base a, exponent b, modulus m in the fields above; the remainder of a^b divided by m, power value are computed instantly and plotted on the chart so you can see how the answer changes.
Common searches this calculator answers include “modular exponent”, “a to the b mod m”, “modulo power calculator”, “calculate modular exponentiation”, “find remainder of a^b divided by m”.
Formula
Variables
- a — Base a
- b — Exponent b
- m — Modulus m
Worked example
With base a = 3, exponent b = 20, modulus m = 7, the calculator gives remainder of a^b divided by m ≈ 2; power value ≈ 3.4868 × 10⁹.
Frequently asked questions
What is the modular exponentiation calculator used for?
Find a raised to the power b, reduced modulo m, for small whole numbers. It helps with questions such as “modular exponent”, “a to the b mod m”, “modulo power calculator”.
What is the formula for the modular exponentiation calculation?
Remainder of a^b divided by m = (a^b)%m. Power value = a^b. Here a is base a, b is exponent b, m is modulus m.
What inputs do I need for the modular exponentiation calculator?
You need base a, exponent b, modulus m. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.
How do I use the modular exponentiation calculator?
Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.
Is the modular exponentiation result exact?
Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.