Math

Modular Exponentiation Calculator

Live

Calculate modular result from base integer, exponent, modulus.

About Modular Exponentiation Calculator

Calculate modular result from base integer, exponent, modulus. Enter base integer, exponent, modulus in a purpose-built modular exponentiation calculator interface designed for this subject. Binary exponentiation squares and multiplies BigInt values modulo the entered positive modulus. The result includes modular result, modular multiplications, method, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up Modular Exponentiation Calculator

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

Complete the fields to prepare a result.

Enter base integer.

Enter exponent.

Enter modulus.

Modular Exponentiation Calculator result

Enter the values above, then calculate to see a detailed result.

How Modular Exponentiation Calculator works

Binary exponentiation squares and multiplies BigInt values modulo the entered positive modulus.

How it works

Binary exponentiation squares and multiplies BigInt values modulo the entered positive modulus. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.

Examples

Modular Exponentiation Calculator worked example

Example input
{
    "base": "123456789",
    "exponent": "12345",
    "modulus": "1000000007"
}
Expected result
{
    "result": "614455772",
    "multiplications": 19,
    "method": "Binary modular exponentiation"
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How does the Modular Exponentiation Calculator work?

Binary exponentiation squares and multiplies BigInt values modulo the entered positive modulus.

What information should I enter?

Enter base integer, exponent, modulus. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports modular result, modular multiplications, method, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.