Multiplicative Inverse Modulo Calculator
Find the modular multiplicative inverse of a value modulo m with gcd checks, extended Euclid steps, and verification.
Last Updated: May 2026
Modular inverse
5
GCD
1
Normalized value
3
Check
1 mod 7
Inverse Modulo Inputs
Enter an integer value and a modulus greater than 1. The calculator normalizes the value, runs extended Euclid, and verifies whether the inverse exists.
Optional context for solving a x = b mod m.
Inverse Proof
| Check | Calculation | Result |
|---|---|---|
| Congruence | 3 x inverse = 1 mod 7 | Solvable |
| Coprime test | gcd(3, 7) | 1 |
| Bezout identity | 3 x -2 + 7 x 1 | 1 |
| Inverse check | 3 x 5 mod 7 | 1 |
Target Congruence
| Item | Calculation | Result |
|---|---|---|
| Target congruence | 3 x = 1 mod 7 | Solvable |
| Solution | x = inverse x target mod 7 | 5 |
| Verification | 3 x 5 mod 7 | 1 |
Euclidean Algorithm Steps
| Division step | Note |
|---|---|
| 3 = 7 x 0 + 3 | Continue with divisor and remainder. |
| 7 = 3 x 2 + 1 | Continue with divisor and remainder. |
| 3 = 1 x 3 + 0 | GCD is 1 |
Number Theory Notice
This calculator is for integer modular arithmetic and educational number theory. For cryptographic production systems, use audited libraries and verified parameter handling rather than manual calculations.
Checked by Jitendra Kumar
Multiplicative Inverse Modulo Calculator is checked for formula labels, source links, and result limits.
Jitendra Kumar, Founder & Editorial Standards Lead. Updated May 2026. Scope: math calculators.
How to Use the Multiplicative Inverse Modulo Calculator
Enter the integer value a and the modulus m. The modulus must be greater than 1. The calculator reduces a modulo m before applying the inverse test.
Leave the target as 1 for a standard multiplicative inverse. Use another target when you also want to solve a congruence in the form a x = b mod m.
Step 1: Enter the value
Use the integer whose multiplicative inverse modulo m you want.
Step 2: Enter the modulus
Use an integer modulus greater than 1.
Step 3: Check the gcd test
An inverse exists only when gcd(value, modulus) equals 1.
Step 4: Verify the inverse
The calculator checks that value times inverse is congruent to 1 modulo m.
How This Multiplicative Inverse Modulo Calculator Works
A multiplicative inverse modulo m is a number that turns multiplication by a into 1 in the modular remainder system. In symbols, a x inverse is congruent to 1 modulo m.
The inverse exists only when a and m share no common factor other than 1. The calculator uses the extended Euclidean algorithm to prove that relationship and find the needed coefficient.
If the gcd equals 1, the Bezout coefficient attached to a is normalized into the range from 0 through m - 1 and returned as the multiplicative inverse modulo m.
Multiplicative Inverse Modulo Guide
Core Formulas
| Concept | Formula | Use |
|---|---|---|
| Multiplicative inverse modulo m | a x a^-1 = 1 mod m | The inverse is the multiplier that gives remainder 1. |
| Existence test | gcd(a, m) = 1 | The inverse exists exactly when a and m are coprime. |
| Normalize first | a mod m | Negative or large values are reduced into 0 through m - 1. |
| Extended Euclid | a x + m y = gcd(a,m) | The coefficient x becomes the inverse when gcd is 1. |
| Verification | (a x inverse) mod m = 1 | Confirms the modular inverse result. |
Examples
| Problem | Result | Check |
|---|---|---|
| 3 inverse modulo 7 | 5 | 3 x 5 = 15, and 15 mod 7 = 1. |
| 17 inverse modulo 3120 | 2,753 | 17 x 2,753 mod 3,120 = 1. |
| 12 inverse modulo 18 | Does not exist | gcd(12,18) = 6, not 1. |
| -11 inverse modulo 26 | 7 | -11 normalizes to 15, and 15 x 7 mod 26 = 1. |
Modular Division Context
Multiplicative inverses are what make division possible in modular arithmetic. When a has an inverse modulo m, solving a x = b mod m works by multiplying b by that inverse.
Prime moduli are especially convenient because every nonzero residue has an inverse. Composite moduli require the gcd check because some values share factors with the modulus and cannot multiply to 1 modulo m.
Keep the research moving with Inverse Modulo Calculator, Modulo Calculator, Multiplicative Inverse Calculator, and Chinese Remainder Theorem Calculator.
Frequently Asked Questions
Related Calculators
Inverse Modulo Calculator
Find modular inverses with extended Euclid, Bezout identity, and gcd checks.
Use Inverse Modulo CalculatorModulo Calculator
Calculate remainders, quotients, congruence checks, and modular operations.
Use Modulo CalculatorMultiplicative Inverse Calculator
Find ordinary reciprocals of integers, decimals, fractions, and mixed numbers.
Use Multiplicative Inverse CalculatorChinese Remainder Theorem Calculator
Solve simultaneous modular congruences with CRT and inverse steps.
Use Chinese Remainder Theorem CalculatorRelated Guides

Modular Arithmetic Guide
Use this for modulo remainders, congruence checks, modular exponentiation, modular inverses, and Chinese remainder theorem systems.
Read guide
Math Formulae Page: 440 K-12 Formulas
Use this as a broad formula reference across arithmetic, algebra, geometry, trigonometry, statistics, matrices, vectors, and calculus readiness.
Read guideSources & References
- 1.Wolfram MathWorld - Modular Inverse(Accessed May 2026)
- 2.Khan Academy - Modular Inverses(Accessed May 2026)
- 3.Wolfram Language Documentation - ModularInverse(Accessed May 2026)