How to use Modular Arithmetic Calculator
- Choose remainder, power or inverse.
- Enter the integer values and a modulus greater than one.
- Calculate and review the nonnegative modular result.
Example: Modular Arithmetic Calculator
Find a Euclidean remainder.
Supported inputs and limits
Where your input is processed
This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.
An inverse undoes multiplication modulo the chosen modulus
An inverse b satisfies a × b congruent to 1 modulo m. It is a property of the integer together with its modulus, so changing the modulus can change the result or remove the inverse.
Questions about Modular Arithmetic Calculator
What happens to a negative integer?
The Euclidean remainder stays between zero and modulus minus one. For example, -1 modulo 5 is 4.
Why can an inverse be unavailable?
An integer has a multiplicative inverse modulo m only when its greatest common divisor with m is one.
Does exponent zero give one?
Yes, reduced modulo the accepted modulus. The tool uses the standard modular exponentiation convention.