CalcToolsKitSimple tools. Clear answers.
MATH

Modular Exponentiation Calculator

Free · No sign-up

Compute an integer power modulo a positive modulus without constructing the enormous power.

Your inputs

Example values are shown. Edit them for your calculation.

Inputs stay in this page. No account needed.

Your result

MATH

Enter your values and select calculate.

Next steps

Choose a related calculation for your next question. Enter your values on the next page.

On this page How it works & practical examples

How to use the Modular Exponentiation Calculator

Use whole-number inputs. Negative bases are normalized to the non-negative remainder convention, with a result from zero through modulus minus one.

The calculation

Compute base^exponent mod modulus using repeated squaring

Worked example

7 raised to the fourth power modulo 13 gives remainder 9.

Assumptions and limits

Exact BigInt integer arithmetic internally. This is educational arithmetic, not a cryptographic implementation or a constant-time security primitive.

Common questions

Which inputs should I use?

Use whole-number inputs. Negative bases are normalized to the non-negative remainder convention, with a result from zero through modulus minus one.

What does the result exclude?

Exact BigInt integer arithmetic internally. This is educational arithmetic, not a cryptographic implementation or a constant-time security primitive.

AboutContactPrivacy PolicyTermsDisclaimerAll calculatorsSitemap