Modular Inverse Calculator
Find the modular inverse used in RSA and modular arithmetic.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
This calculator finds the modular multiplicative inverse of a number a modulo m — the value x such that a·x ≡ 1 (mod m) — using the extended Euclidean algorithm. An inverse exists only when gcd(a, m) = 1, i.e. a and m are coprime.
Cryptography engineers and computer science students use modular inverses constantly in RSA key generation (finding the private exponent d from the public exponent e), Diffie–Hellman variants, and other modular-arithmetic algorithms; they're also a standard topic in number theory courses. Enter a and m to get the inverse, or a note that none exists.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)