MaximCalculator Free, fun & accurate calculators
🧮 Platinum math layout
🌙Dark Mode

Inverse Matrix Calculator

Need the inverse of a matrix fast? This calculator finds the inverse matrix (and the determinant) for square matrices from 2×2 to 5×5. It also tells you when a matrix is not invertible (singular), so you don’t waste time chasing an inverse that doesn’t exist.

Instant inverse + determinant
🧩2×2 to 5×5 matrix size
Invertible / singular check
📱Perfect for screenshots & sharing

Enter your matrix

Pick the matrix size, fill in values, then press Calculate Inverse. Tip: use decimals freely (like 0.25 or -3.5). The calculator uses a stable Gauss–Jordan elimination method under the hood.

📐
🎯
📋
Matrix A
Paste tip: spaces or commas are fine. New lines = new rows.
Your inverse matrix will appear here
Choose a size, enter values, and tap “Calculate Inverse”.
If det(A) = 0, the matrix is singular and has no inverse.

This calculator is for education and verification. For high-stakes or sensitive work, validate results with multiple tools and watch for rounding.

📚 Formula breakdown

The inverse matrix formula (and what it really means)

For a square matrix A, the inverse matrix (written as A⁻¹) is defined by one simple identity: A·A⁻¹ = I, where I is the identity matrix (1s on the diagonal, 0s elsewhere). In plain language: multiplying by the inverse gives you “no change,” the way multiplying by 1 does in normal arithmetic. That’s why the inverse is sometimes described as the matrix version of “divide.”

Not every matrix has an inverse. The key test is the determinant. If det(A) ≠ 0, the matrix is invertible (also called non-singular). If det(A) = 0, it is singular and has no inverse. Intuitively, a singular matrix “squashes” space in a way that loses information, so you can’t uniquely reverse what happened.

The special 2×2 shortcut

If your matrix is 2×2, there’s a famous closed-form shortcut. For:

A = [ a b ; c d ]

the determinant is det(A) = ad − bc and the inverse is:

A⁻¹ = (1 / (ad − bc)) · [ d −b ; −c a ]

This formula is fast and great for hand-calculation, but it becomes messy for larger matrices. That’s why most calculators (including this one) use an algorithmic method for 3×3 and up.

General method you can trust: Gauss–Jordan elimination

For 3×3, 4×4, and 5×5 matrices, a reliable way to compute the inverse is to build an augmented matrix [A | I] and perform row operations until the left side becomes the identity matrix. If you succeed, the right side becomes A⁻¹. If you hit a row of zeros (or can’t find a pivot), that’s a strong sign the matrix is singular.

Why the determinant test matters

The determinant is a compact “invertibility detector.” It also has a geometric interpretation: it measures how much A scales area (in 2D) or volume (in 3D), including whether it flips orientation. When det(A) is zero, area/volume collapses to zero — you’ve flattened space — and there’s no unique way to go back.

🧠 How it works

What this calculator does step-by-step

This tool is designed for fast verification, homework checking, and engineering sanity checks. Here’s exactly what happens when you tap Calculate Inverse:

1) Read and validate your matrix
  • It reads your chosen size (2×2 to 5×5) and collects every cell.
  • Blank cells are treated as missing inputs, and you’ll see an error hint.
  • It also supports quick paste: you can paste rows separated by new lines, and values separated by spaces or commas.
2) Build the augmented matrix

The calculator creates an augmented matrix [A | I], where I is the identity matrix of the same size. For a 3×3, that’s a 3×6 structure. Think of it as “A with a bonus identity matrix attached.”

3) Apply Gauss–Jordan elimination
  • Find a pivot (a good non-zero number) in each column.
  • Swap rows if needed to get a stronger pivot (this reduces numeric error).
  • Scale the pivot row so the pivot becomes 1.
  • Eliminate that column in every other row (make the rest of the column 0).
4) Decide if the matrix is invertible

If the algorithm can’t find a pivot (because a pivot is zero and every row below it is also effectively zero), the matrix is singular. In that case the calculator shows a clear message that no inverse exists.

5) Output the inverse + determinant

If invertible, the right half of the reduced augmented matrix becomes the inverse A⁻¹. The determinant is also estimated from the elimination steps (with sign changes for row swaps). Finally, results are rounded to your chosen precision so you can copy/share them easily.

Want the “viral” share format? Use the Copy or Share buttons — you’ll get a clean result snippet you can paste into chats, study groups, or a class Discord.

🧪 Examples

Inverse matrix examples (with interpretation)

Example 1: A clean 2×2 inverse

Suppose: A = [ 4 7 ; 2 6 ]. The determinant is det(A) = 4·6 − 7·2 = 24 − 14 = 10. Since det(A) ≠ 0, the matrix is invertible.

Using the 2×2 shortcut, the inverse is: A⁻¹ = (1/10) · [ 6 −7 ; −2 4 ] which becomes: [ 0.6 −0.7 ; −0.2 0.4 ].

Meaning: if A is a transformation (like scaling + shearing), A⁻¹ reverses it. In linear algebra classes, instructors often ask you to verify A·A⁻¹ = I. That’s exactly what this calculator is built to help you check.

Example 2: A 3×3 used in system solving

Consider: A = [ 1 2 3 ; 0 1 4 ; 5 6 0 ]. This is a classic matrix from textbooks because it’s invertible but not trivial. If you’re solving Ax = b, then x = A⁻¹b. In practice, people often solve it with elimination, but the inverse is useful for repeated solves with many b vectors.

Try pasting that matrix using the paste box and press Calculate. You’ll get a numerical inverse. Then, as a quick sanity check, multiply A by your inverse in a separate tool — it should be very close to the identity matrix. (Small rounding differences are normal.)

Example 3: A singular matrix that has no inverse

Let: A = [ 1 2 ; 2 4 ]. The second row is exactly 2× the first row. That means the rows are dependent, and det(A) = 1·4 − 2·2 = 0.

Result: the calculator will tell you the matrix is singular and has no inverse. This is the same reason a system like x + 2y = 3 and 2x + 4y = 6 has infinitely many solutions: the second equation carries no new information.

Example 4: “Almost singular” and why it’s tricky

Sometimes det(A) is not exactly zero but is very small. That can happen with real-world data, rounding, or measurement noise. In that case, the inverse exists but can contain huge numbers, and tiny input changes can create big output swings. If you see a very small determinant in the result area, treat the inverse with caution and consider increasing precision.

❓ FAQ

Frequently Asked Questions

  • What matrix sizes does this inverse matrix calculator support?

    This page supports 2×2, 3×3, 4×4, and 5×5 square matrices. The algorithm is the same conceptually for larger sizes, but smaller sizes keep it fast, mobile-friendly, and easy to screenshot.

  • How do I know if a matrix is invertible?

    A matrix is invertible if its determinant is not zero (det(A) ≠ 0). This calculator estimates det(A) during elimination and will show a clear “No inverse” message if it’s singular.

  • Why does my inverse look slightly different from my textbook answer?

    Rounding. Many books show exact fractions, while calculators often show decimals. Try increasing display precision. Also, different elimination paths (like different row swaps) can yield results that are numerically equivalent.

  • Is computing the inverse the best way to solve Ax = b?

    Not always. In applied math and engineering, solving Ax = b directly (via elimination / decomposition) is typically faster and more numerically stable. But inverses are excellent for theory, verification, and repeated solves with many b values.

  • Can I paste a matrix instead of typing every cell?

    Yes. Paste rows separated by new lines, with values separated by spaces or commas. Then press Calculate. The calculator will populate the grid and compute the inverse.

  • What does a negative determinant mean?

    A negative determinant means the transformation flips orientation (like a mirror flip) in addition to scaling. It doesn’t prevent invertibility — only det(A) = 0 prevents an inverse.

MaximCalculator provides simple, user-friendly tools. Always double-check important outputs and be mindful of rounding.