Matrix Calculator

🌐 English
A (3×3)
Rows: 3
Cols: 3
B (3×3)
Rows: 3
Cols: 3
Supports: fractions (1/2), decimals (0.5), constants (pi, e). Empty cells are treated as 0.

Calculation Results

Matrix Inverse Calculator With Steps

Use this matrix inverse calculator with steps to find A⁻¹ instantly with full explanations.

Last updated:

Inverse Matrix Calculator and Formula

  • Find inverse matrices online
  • Step-by-step inverse calculation
  • Understand matrix inversion

What is an inverse matrix?

An inverse matrix of a square matrix \(A\) is a matrix \(A^{-1}\) such that:

\[ A A^{-1} = A^{-1} A = I \]

Here \(I\) denotes the identity matrix of the same order as \(A\). Only square matrices may have inverses, and not all square matrices are invertible.

Existence condition

A square matrix \(A\) is invertible (also called nonsingular) if and only if its determinant is nonzero:

\[ \det(A) \neq 0 \]

Common formulas and methods

2×2 matrix formula (closed form)

For a 2×2 matrix

\[ A = \begin{bmatrix} a & b \\ c & d \end{bmatrix} \quad\text{with}\quad \det(A)=ad-bc \]

When \(\det(A)\neq 0\), the inverse is

\[ A^{-1} = \dfrac{1}{ad-bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}. \]

Methods for larger matrices (3×3 and above)

  • Gaussian elimination / row reduction: augment \([A|I]\) and row-reduce to \([I|A^{-1}]\).
  • Adjugate (classical adjoint) method: compute the matrix of cofactors, transpose it to get the adjugate, then divide by \(\det(A)\): \(A^{-1} = \dfrac{1}{\det(A)}\operatorname{adj}(A)\).
  • Numerical methods / libraries: in practice use reliable numerical libraries (e.g. LAPACK-backed libraries) or this website's calculator for stability and speed.

Worked examples

Example 1 — 2×2 inverse

Given

\[ A = \begin{bmatrix} 2 & 1 \\ 3 & 4 \end{bmatrix} \]

Compute the determinant:

\[ \det(A)=2\cdot4-1\cdot3=8-3=5 \]

Use the 2×2 formula:

\[ A^{-1}=\dfrac{1}{5}\begin{bmatrix}4 & -1 \\ -3 & 2\end{bmatrix} = \begin{bmatrix} \tfrac{4}{5} & -\tfrac{1}{5} \\ -\tfrac{3}{5} & \tfrac{2}{5} \end{bmatrix}. \]

Example 2 — singular matrix (no inverse)

Given

\[ B = \begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix} \]

Compute the determinant:

\[ \det(B) = 1\cdot4 - 2\cdot2 = 0. \]

Since the determinant is zero, matrix \(B\) is singular and does not have an inverse.

Common mistakes and pitfalls

  • Forgetting to check \(\det(A)\): attempting to invert a singular matrix leads to incorrect results.
  • Applying the 2×2 shortcut to larger matrices: the simple 2×2 formula does not generalize — use row reduction or adjugate for 3×3 and larger.
  • Sign and position errors: when using the 2×2 formula, ensure the off-diagonal entries get negated and \(a\) and \(d\) are swapped.
  • Numerical instability: for matrices with very small determinants or badly conditioned matrices, numerical inversion may be unstable — prefer solving linear systems via \(Ax=b\) algorithms rather than computing \(A^{-1}\) explicitly.

Practice problems (answers hidden)

Try the problems below by hand or paste them into the Matrix inverse multiplication calculator. Click each answer to expand.

Problem 1

Find the inverse (if it exists):

\[ A = \begin{bmatrix} 3 & 2 \\ 1 & 4 \end{bmatrix} \]

Show answer

Compute determinant: \(\det(A)=3\cdot4-2\cdot1=12-2=10\).

Inverse:

\[ A^{-1}=\dfrac{1}{10}\begin{bmatrix}4 & -2 \\ -1 & 3\end{bmatrix} = \begin{bmatrix}\tfrac{2}{5} & -\tfrac{1}{5} \\ -\tfrac{1}{10} & \tfrac{3}{10} \end{bmatrix}. \]

Problem 2

Determine whether the matrix is invertible:

\[ B = \begin{bmatrix} 2 & 6 \\ 1 & 3 \end{bmatrix} \]

Show answer

Compute determinant: \(\det(B)=2\cdot3-6\cdot1=6-6=0\).

So \(B\) is singular and does not have an inverse.

Problem 3 (3×3)

Find the inverse (use adjugate or row reduction):

\[ C = \begin{bmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \\ 2 & 1 & 0 \end{bmatrix} \]

Show answer

One convenient method is to compute \(\operatorname{adj}(C)\) or perform row reduction on \([C|I]\). The (exact) inverse is:

\[ C^{-1} = \begin{bmatrix} -\tfrac{1}{7} & -\tfrac{2}{7} & \tfrac{3}{7} \\ -\tfrac{1}{7} & \tfrac{3}{7} & \tfrac{1}{7} \\ \tfrac{3}{7} & \tfrac{2}{7} & -\tfrac{2}{7} \end{bmatrix}. \]

(You may verify this by checking that \(C C^{-1} = I\).)

Problem 4

Compute the inverse if it exists:

\[ D = \begin{bmatrix} 4 & -1 \\ 2 & 5 \end{bmatrix} \]

Show answer

Determinant: \(\det(D)=4\cdot5-(-1)\cdot2=20+2=22\).

Inverse:

\[ D^{-1} = \dfrac{1}{22}\begin{bmatrix}5 & 1 \\ -2 & 4 \end{bmatrix} = \begin{bmatrix} \tfrac{5}{22} & \tfrac{1}{22} \\ -\tfrac{1}{11} & \tfrac{2}{11} \end{bmatrix}. \]

Further help & suggested workflow

  1. Always check whether the matrix is square and compute the determinant first.
  2. For 2×2 matrices use the closed-form formula for speed and clarity.
  3. For larger matrices, prefer Gaussian elimination or a trusted numerical library.
  4. When solving \(Ax=b\), prefer solving the system directly instead of computing \(A^{-1}\) explicitly (numerical stability).

Frequently Asked Questions (FAQ)

Q: When does a matrix have an inverse?

A matrix has an inverse only if its determinant is not zero.

Q: Does this inverse calculator show steps?

Yes. The calculator provides detailed steps for finding the inverse.

Copyright Notice: This article is original content from the Matrix Calculator website. Please credit the source when sharing or reproducing it. For more matrix computation tools, visit matrixcalcu.com.

Learn matrix multiplication more easily in just 2 minutes with this free game.

Matrix Multiplication Game