CalculatorWallah logoCalculatorWallah

Multiplicative Inverse Modulo Calculator

Find the modular multiplicative inverse of a value modulo m with gcd checks, extended Euclid steps, and verification.

Last Updated: May 2026

Modular inverse

5

GCD

1

Normalized value

3

Check

1 mod 7

Inverse Modulo Inputs

Enter an integer value and a modulus greater than 1. The calculator normalizes the value, runs extended Euclid, and verifies whether the inverse exists.

Optional context for solving a x = b mod m.

Inverse Proof

CheckCalculationResult
Congruence3 x inverse = 1 mod 7Solvable
Coprime testgcd(3, 7)1
Bezout identity3 x -2 + 7 x 11
Inverse check3 x 5 mod 71

Target Congruence

ItemCalculationResult
Target congruence3 x = 1 mod 7Solvable
Solutionx = inverse x target mod 75
Verification3 x 5 mod 71

Euclidean Algorithm Steps

Division stepNote
3 = 7 x 0 + 3Continue with divisor and remainder.
7 = 3 x 2 + 1Continue with divisor and remainder.
3 = 1 x 3 + 0GCD is 1

Number Theory Notice

This calculator is for integer modular arithmetic and educational number theory. For cryptographic production systems, use audited libraries and verified parameter handling rather than manual calculations.

Reviewed For Methodology, Labels, And Sources

Every CalculatorWallah calculator is published with visible update labeling, linked source references, and review of formula clarity on trust-sensitive topics. Use results as planning support, then verify institution-, policy-, or jurisdiction-specific rules where they apply.

Reviewed By

Jitendra Kumar, Founder & Editorial Standards Lead, reviews methodology, labels, assumptions, and trust-sensitive publishing decisions for this topic area.

Review editor profile

Topic Ownership

Sales tax and tax-sensitive estimate tools, Education and GPA planning calculators, Health, protein, and screening-formula pages, Platform-wide publishing standards and methodology

See ownership standards

Methodology & Updates

Page updated May 2026. Trust-critical pages are reviewed when official rates or rules change. Evergreen calculator guides are checked on a recurring quarterly or annual cycle depending on topic volatility.

How to Use the Multiplicative Inverse Modulo Calculator

Enter the integer value a and the modulus m. The modulus must be greater than 1. The calculator reduces a modulo m before applying the inverse test.

Leave the target as 1 for a standard multiplicative inverse. Use another target when you also want to solve a congruence in the form a x = b mod m.

  1. Step 1: Enter the value

    Use the integer whose multiplicative inverse modulo m you want.

  2. Step 2: Enter the modulus

    Use an integer modulus greater than 1.

  3. Step 3: Check the gcd test

    An inverse exists only when gcd(value, modulus) equals 1.

  4. Step 4: Verify the inverse

    The calculator checks that value times inverse is congruent to 1 modulo m.

How This Multiplicative Inverse Modulo Calculator Works

A multiplicative inverse modulo m is a number that turns multiplication by a into 1 in the modular remainder system. In symbols, a x inverse is congruent to 1 modulo m.

The inverse exists only when a and m share no common factor other than 1. The calculator uses the extended Euclidean algorithm to prove that relationship and find the needed coefficient.

If the gcd equals 1, the Bezout coefficient attached to a is normalized into the range from 0 through m - 1 and returned as the multiplicative inverse modulo m.

Multiplicative Inverse Modulo Guide

Core Formulas

ConceptFormulaUse
Multiplicative inverse modulo ma x a^-1 = 1 mod mThe inverse is the multiplier that gives remainder 1.
Existence testgcd(a, m) = 1The inverse exists exactly when a and m are coprime.
Normalize firsta mod mNegative or large values are reduced into 0 through m - 1.
Extended Euclida x + m y = gcd(a,m)The coefficient x becomes the inverse when gcd is 1.
Verification(a x inverse) mod m = 1Confirms the modular inverse result.

Examples

ProblemResultCheck
3 inverse modulo 753 x 5 = 15, and 15 mod 7 = 1.
17 inverse modulo 31202,75317 x 2,753 mod 3,120 = 1.
12 inverse modulo 18Does not existgcd(12,18) = 6, not 1.
-11 inverse modulo 267-11 normalizes to 15, and 15 x 7 mod 26 = 1.

Modular Division Context

Multiplicative inverses are what make division possible in modular arithmetic. When a has an inverse modulo m, solving a x = b mod m works by multiplying b by that inverse.

Prime moduli are especially convenient because every nonzero residue has an inverse. Composite moduli require the gcd check because some values share factors with the modulus and cannot multiply to 1 modulo m.

Keep the research moving with Inverse Modulo Calculator, Modulo Calculator, Multiplicative Inverse Calculator, and Chinese Remainder Theorem Calculator.

Frequently Asked Questions

It is an integer x such that a times x leaves a remainder of 1 when divided by the modulus m.

Yes. In modular arithmetic, the multiplicative inverse modulo m is commonly called the modular inverse.

It exists exactly when the value and modulus are coprime, meaning their greatest common divisor is 1.

It uses the extended Euclidean algorithm to find Bezout coefficients. When gcd(a,m) is 1, the coefficient of a is normalized into the inverse.

Yes. The calculator normalizes the value modulo m before checking gcd and calculating the inverse.

An ordinary reciprocal solves a x = 1 over real numbers. A modular inverse solves a x = 1 within remainders modulo m, so it only exists when the coprime test passes.

Related Calculators

Sources & References

  1. 1.Wolfram MathWorld - Modular Inverse(Accessed May 2026)
  2. 2.Khan Academy - Modular Inverses(Accessed May 2026)
  3. 3.Wolfram Language Documentation - ModularInverse(Accessed May 2026)