Modular inverse calculator

Find an inverse of an integer modulo a positive modulus greater than one.

Enter values

Start with the example below, or enter your own values.

How it works

The extended Euclidean algorithm returns an inverse only when the greatest common divisor is one; verify the product remainder.

Try an example

Integer: 3; Modulus: 11. The form starts with these values; change them to explore your own case.

Example result: 4

  1. Use Bézout coefficient and reduce modulo m.

Learn more in Exact number theory and congruences.

Results are calculated locally. Floating-point tools provide numerical approximations, not formal proof certificates.