calculator inverse

Inverse Calculator

Quickly find additive inverse, multiplicative inverse (reciprocal), and modular inverse in one place.

1) Number Inverses

Enter a value and click the button to see its inverses.

2) Modular Inverse

Find a-1 mod m such that (a × a-1) mod m = 1.

Enter integer values for a and m to compute a modular inverse.

What is an inverse in mathematics?

In math, an inverse operation “undoes” another operation. If addition moves a value in one direction, subtraction moves it back. If multiplication scales a value, division can reverse that scaling. The idea appears in algebra, arithmetic, number theory, and even cryptography.

This inverse calculator focuses on the three most practical forms used by students and professionals: additive inverse, multiplicative inverse, and modular inverse.

Additive inverse

The additive inverse of a number x is -x. When you add a number and its additive inverse, the result is always zero:

  • 7 + (-7) = 0
  • -12 + 12 = 0
  • 0 + 0 = 0

This is useful for simplifying expressions and solving equations where you need to cancel terms.

Multiplicative inverse (reciprocal)

The multiplicative inverse of x is 1/x, as long as x is not zero. Multiplying a number by its reciprocal gives 1:

  • 5 × (1/5) = 1
  • -2 × (-1/2) = 1
  • 0 has no multiplicative inverse (division by zero is undefined)

Reciprocals are central in fraction operations, algebraic manipulation, physics formulas, and unit conversion.

Modular inverse

A modular inverse is different from a standard reciprocal. The modular inverse of a modulo m is a number x such that:

(a × x) mod m = 1

A modular inverse exists only when gcd(a, m) = 1 (that is, a and m are coprime). This concept is widely used in cryptography systems like RSA, coding theory, and competitive programming.

How to use this calculator inverse tool

  • For standard inverses, enter any real number and calculate.
  • For modular inverse, use integers only and set modulus greater than 1.
  • If no modular inverse exists, the calculator explains why.

Worked examples

Example 1: x = 8

  • Additive inverse: -8
  • Multiplicative inverse: 1/8 = 0.125

Example 2: x = -0.2

  • Additive inverse: 0.2
  • Multiplicative inverse: -5

Example 3: a = 3, m = 11

We need x such that 3x mod 11 = 1. x = 4 works because 3 × 4 = 12 and 12 mod 11 = 1. So the modular inverse of 3 mod 11 is 4.

Common mistakes to avoid

  • Trying to find 1/0 (undefined).
  • Using decimal values for modular inverse, which requires integers.
  • Ignoring coprimality: if gcd(a, m) ≠ 1, no modular inverse exists.
  • Confusing negative sign rules when checking inverses.

Final thoughts

Inverse operations are one of the most useful ideas in mathematics because they let you “reverse” a transformation. Whether you are checking homework, solving equations, or learning number theory, a reliable inverse function and reciprocal calculator saves time and reduces errors.

🔗 Related Calculators