Skip to main content

Numbers, Units & Calculators

Modular Exponentiation Calculator

Calculate a result with Modular Exponentiation from the values you enter. Enter the required values, adjust the options, and review the calculated result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Calculate a result with Modular Exponentiation from the values you enter. Enter the required values, adjust the options, and review the calculated result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

Modular Exponentiation Calculator computes Base^Exponent modulo Modulus.

It returns 4 because 4³ mod 5 equals 4. The calculation runs in your browser. Processing runs in the browser.

Instructions

  1. Provide values for this tool.
  2. Enter base, exponent, and modulus.
  3. Check integer values.
  4. Compare the result with the stated modulus.

Example

Input: base = 4; exponent = 3

Settings: Modular Exponentiation Calculator: Base: 4; exponent: 3; modulus: 5.

Result: It returns 4 because 4³ mod 5 equals 4.

Limits

  • Modular Exponentiation Calculator: A zero modulus is invalid.
  • Modular Exponentiation Calculator: Blank base or exponent falls back to Input.
  • Modular Exponentiation Calculator: It does not implement a full RSA workflow.