∑Calculators Map.Find a calculator ↗

% MATH & PERCENTAGES

Modular Exponentiation Calculator

Evaluate an integer power modulo a positive integer.

Your numbers

Free calculator
YOUR RESULT
2

Calculated in your browser. Your inputs aren’t uploaded.

When to use this calculator

Evaluate an integer power modulo a positive integer. Inputs are bounded integers; this is not a cryptographic implementation.

Explore the algebra & number calculators for other questions in this topic. For a related calculation, use the Greatest Common Divisor Calculator: Find the greatest positive integer that divides two whole numbers.

Understand the modular exponentiation result

Evaluate an integer power modulo a positive integer. For the example inputs Integer base = 2, Integer exponent = 10, Integer modulus = 7, the result is 2. Inputs are bounded integers; this is not a cryptographic implementation.

PUTTING IT INTO PRACTICE

Modular Exponentiation: a worked example

The values below are an illustrative example, not a recommendation. Replace them with measurements or assumptions that match your question.

Example inputs and calculated result
InputExample value
Integer base2
Integer exponent10
Integer modulus7
Result2
  1. Check the input labels and enter the example values above.
  2. Apply the relationship: result = a^n mod m.
  3. The result is 2 , rounded for display.

How to interpret your result

Inputs are bounded integers; this is not a cryptographic implementation. Use real-number inputs within the labelled domain. Results are rounded only for display.

The result is expressed in the stated matching input units. Inputs are bounded integers; this is not a cryptographic implementation.

Frequently asked questions

Which assumptions matter for modular exponentiation?

Inputs are bounded integers; this is not a cryptographic implementation. Use real-number inputs within the labelled domain. Results are rounded only for display.

When is the modular exponentiation calculator useful?

Evaluate an integer power modulo a positive integer. Inputs are bounded integers; this is not a cryptographic implementation.

How do I use the modular exponentiation calculator?

Enter integer base, integer exponent, integer modulus. The result updates automatically. Use the units shown beside each input; the example values illustrate the method.

Which formula does this calculator use?

result = a^n mod m.

What should I check before using the result?

Inputs are bounded integers; this is not a cryptographic implementation. Use real-number inputs within the labelled domain. Results are rounded only for display.

How are results rounded?

Scalar numbers display up to six decimal places, with scientific notation for very large or small values. Text, fraction, date and schedule outputs use the format described on the tool. Intermediate calculations use JavaScript floating-point arithmetic. Keep sensible precision for your measurements.

Further reading

For background on this topic, see OpenStax: algebra and trigonometry ↗. This is a topic reference, not an external review or endorsement of this tool.

Calculators Map editorial process · Updated · Methods and limitations