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.
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.
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.
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.
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.
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.
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.
This tool is designed for fast verification, homework checking, and engineering sanity checks. Here’s exactly what happens when you tap Calculate Inverse:
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.”
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.
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.
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.
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.)
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.
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.
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.
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.
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.
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.
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.
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.