Modular Inverse Calculator
Find the number that, multiplied by a given number and divided by a modulus, leaves a remainder of 1.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Modular Inverse Calculator
- Type your number.
- Type the modulus, the number to divide by.
- The inverse is the first row.
Frequently asked questions
What if there is no inverse?
An inverse exists only when the number and the modulus share no factor bigger than 1. Otherwise the tool says there is no inverse.
What is a modulus?
The number you divide by to keep only the remainder. Clocks work this way, using 12.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.