Home · Everyday · Bases, Binary & Logic · Inverse Modulo Calculator
Inverse Modulo Calculator
The modular inverse of a modulo m — the number whose product with a is 1 mod m — by extended Euclid.
What this calculator does
The modular inverse of a modulo m — the number whose product with a is 1 mod m — by extended Euclid. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
The inverse of a modulo m exists exactly when gcd(a, m) = 1.
It is found with the extended Euclidean algorithm.
The result is the least positive residue.
Worked example
With the example inputs this page opens with (a 3, modulus m 11), the result is 4 — inverse of 3 mod 11. The inverse is the number x with a·x ≡ 1 (mod m), found by the extended Euclidean algorithm (Bézout's identity).
Quick reference
| a | Inverse of 3 mod 11 |
|---|---|
| 1.5 | 6 |
| 2.4 | 6 |
| 3 | 4 |
| 3.75 | 3 |
| 4.5 | 9 |
| 6 | 2 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Inverse Modulo Calculator work?
The modular inverse of a modulo m — the number whose product with a is 1 mod m — by extended Euclid. A · m → Inverse. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Inverse Modulo Calculator need?
A · m → Inverse. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Inverse Modulo Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.