Modular Inverse Calculator (Extended)

Find the modular multiplicative inverse using the extended Euclidean algorithm.

Find a^(-1) mod m

Algorithm Steps

iqrst
0-1710
104301
221710
319-21
4183-1
581-52

Existence Condition

The modular inverse exists if and only if:

gcd(a, m) = 1

When it exists, it satisfies:

a * a^(-1) ≡ 1 (mod m)

Modular Inverse

17^(-1) ≡ 38 (mod 43)

GCD(a, m)
1
Inverse
38

Verification

17 × 38 mod 43 = 1

Correct: equals 1

Alternative Method

Using Euler's theorem:

phi(43) = 42

17^(42-1) mod 43 = 38

Matches!

Applications

  • RSA decryption
  • Solving linear congruences
  • Division in modular arithmetic
  • Chinese Remainder Theorem
💡

Help us improve!

How would you rate the Modular Inverse Calculator (Extended)?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

📚

Formula Source: Handbook of Mathematical Functions

by Abramowitz & Stegun

🔄Last reviewed: May 2026
✓Formula checks are based on standard references and internal QA review.