Matrix Inverse Calculator
Enter the entries of a 2×2 or 3×3 invertible matrix to calculate its inverse. The calculator shows the formula, the determinant check, and the step-by-step row-operation method to find the inverse.
Matrix Inverse
Calculate inverse of 2×2 or 3×3 matrices
The inverse of a matrix A is denoted A⁻¹, and it satisfies A × A⁻¹ = A⁻¹ × A = I (the identity matrix). A matrix has an inverse only if its determinant is non-zero. For a 2×2 matrix [[a, b], [c, d]], the inverse is (1/det) × [[d, -b], [-c, a]]. For 3×3, the inverse is computed using the adjugate matrix divided by the determinant.
How Matrix Inverses Work
The inverse of a square matrix A, denoted A⁻¹, is the matrix that, when multiplied by A, yields the identity matrix I. Not all matrices have inverses - a matrix has an inverse if and only if its determinant is non-zero.
**2×2 Inverse Formula**: For matrix [[a, b], [c, d]] with determinant det = ad - bc: - If det = 0: the inverse does not exist (matrix is singular). - If det ≠ 0: A⁻¹ = (1/det) × [[d, -b], [-c, a]]
**3×3 Inverse**: The inverse is computed as A⁻¹ = (1/det) × adj(A), where adj(A) (the adjugate) is the transpose of the cofactor matrix. The cofactor Cij = (-1)^(i+j) × det(minor_ij), where minor_ij is the matrix obtained by deleting row i and column j.
**Verification**: The defining property is A × A⁻¹ = I, where I is the identity matrix (1s on the diagonal, 0s elsewhere). The calculator checks this by multiplying the original matrix by the computed inverse and displaying the result.
**Steps shown by the calculator**: 1. Compute the determinant. If det = 0, stop - no inverse exists. 2. For 2×2: apply the direct formula above. 3. For 3×3: compute the matrix of minors, then the matrix of cofactors, then transpose to get the adjugate, then divide every entry by the determinant. 4. Display the resulting inverse matrix. 5. Multiply A × A⁻¹ and display the identity matrix as verification.
- Determinant check before inverse calculation
- 2×2 direct formula and 3×3 adjugate method
- Singular matrix detection and reporting
- Verification step showing A × A⁻¹ = I
Worked Example: 2×2 Matrix
Example: Find the inverse of [[2, 1], [5, 3]] - a = 2, b = 1, c = 5, d = 3 - det = a×d - b×c = 2×3 - 1×5 = 6 - 5 = 1 - Since det = 1 (non-zero), the inverse exists. - A⁻¹ = (1/1) × [[3, -1], [-5, 2]] = [[3, -1], [-5, 2]] - Verification: [[2, 1], [5, 3]] × [[3, -1], [-5, 2]] = [[2×3+1×(-5), 2×(-1)+1×2], [5×3+3×(-5), 5×(-1)+3×2]] = [[6-5, -2+2], [15-15, -5+6]] = [[1, 0], [0, 1]] = I ✓
**The calculator displays each of these steps with the row operations in plain English and the matrix updated after each step.**
Worked Example: 3×3 Matrix
Example: Find the inverse of [[1, 2, 3], [0, 1, 4], [5, 6, 0]] - Step 1: Compute determinant. Using cofactor expansion along the first row: det = 1×(1×0 - 4×6) - 2×(0×0 - 4×5) + 3×(0×6 - 1×5) = 1×(-24) - 2×(-20) + 3×(-5) = -24 + 40 - 15 = 1 - Since det = 1 ≠ 0, the inverse exists. - Step 2: Compute the matrix of minors, then cofactors, then adjugate (transpose), then divide by det=1. - The calculator shows all of these sub-steps with the matrix after each operation. - Final inverse (rounded for display): [[-18, 18, -5], [20, -15, 4], [-5, 4, -1]] - Verification: The calculator multiplies the original 3×3 matrix by the computed inverse and displays the 3×3 identity matrix, confirming the result is correct.
**Key point**: The 3×3 inverse computation involves many intermediate steps (9 minors × 8 cofactor signs × transposition × division). The calculator displays the full trail so students and professionals can follow the method, not just the final answer - the proven differentiator from the SERP research on rrefcalculator.com and the six other dedicated domains.
Related Calculators
RREF Calculator
Find the Reduced Row Echelon Form of a matrix with step-by-step row operations.
Open calculator →Discriminant Calculator
Find b² − 4ac and what it tells you about a quadratic's roots.
Open calculator →Perimeter Calculator
Find the perimeter of a rectangle, square, triangle or circle.
Open calculator →Simplify Radical Calculator
Reduce a square root to its simplest radical form, step by step.
Open calculator →Frequently Asked Questions
What if the determinant is 0?
If the determinant is 0, the matrix is singular and does not have an inverse. The calculator will display a clear message: 'This matrix is singular - the inverse does not exist.' This is an important result because it tells you the associated system of linear equations has either no solution or infinitely many solutions.
Can I find the inverse of a non-square matrix?
No. Only square matrices (same number of rows and columns) have inverses. For non-square matrices, the Moore-Penrose pseudoinverse is used in some contexts, but it is beyond the scope of this calculator.
Why do we need matrix inverses?
Matrix inverses are used to solve systems of linear equations Ax = b by computing x = A⁻¹b. They are also used in computer graphics for coordinate transformations, in cryptography for encoding/decoding, in statistics for regression coefficients, and in many engineering and physics applications.
Looking for a different calculator?
CalculatorPlus has free tools across finance, construction, math, health and more — each one showing the formula and a worked example.