Multiplicative Inverse Calculator
Find an ordinary reciprocal or an integer modular inverse with the appropriate method.
About the multiplicative inverse calculator
Multiplicative inverse examples
The examples contrast ordinary reciprocals with inverses in modular arithmetic.
| Input | Inverse | Verification |
|---|---|---|
| Reciprocal of 8 | 0.125 | Eight times 0.125 equals 1. |
| Reciprocal of -4 | -0.25 | Negative four times negative 0.25 equals 1. |
| Inverse of 7 modulo 26 | 15 | Seven times 15 is 105, which has remainder 1 modulo 26. |
| Inverse of 3 modulo 11 | 4 | Three times 4 is 12, which has remainder 1 modulo 11. |
How to find a multiplicative inverse
- Choose Reciprocal for ordinary arithmetic or Modular inverse for integer congruences.
- Enter the number whose inverse you need.
- For a modular inverse, also enter an integer modulus greater than 1.
- Select Find inverse and verify the displayed multiplication rule.
Multiplicative inverse calculator FAQ
Is a multiplicative inverse always a reciprocal?
In ordinary real-number arithmetic, yes, the inverse of a is 1 divided by a. In modular arithmetic, the inverse is instead an integer whose product has remainder 1 under a modulus.
Why does zero have no reciprocal?
Every finite value multiplied by zero equals zero rather than 1. Division by zero is therefore undefined, so a reciprocal cannot be assigned.
When does a modular inverse exist?
It exists when the number and modulus have greatest common divisor 1. This coprime condition guarantees that the Extended Euclidean Algorithm can produce the needed coefficient.
Can a modular inverse be negative?
Equivalent inverse representatives can be negative, because values differing by a multiple of the modulus are congruent. This calculator displays the least nonnegative representative.
What is the Extended Euclidean Algorithm?
It extends the ordinary greatest-common-divisor algorithm by tracking integer coefficients. When the gcd is 1, one coefficient directly yields the modular inverse.