Matrix Inverse Calculator - 2x2 Determinant and Adjugate
Use this matrix inverse calculator to invert a 2x2 matrix A using its determinant and adjugate and read the four cells of the 2x2 inverse matrix A^-1.
Matrix Inverse Calculator
Results
What Is a Matrix Inverse Calculator?
A matrix inverse calculator is a tool that takes the four entries of a 2x2 matrix A and returns the matching 2x2 inverse matrix A^-1, the unique matrix that satisfies A * A^-1 = A^-1 * A = I. Type the top row a and b, the bottom row c and d, and the result panel shows the determinant det(A) = ad - bc together with the four cells of A^-1 built by swapping the diagonal, negating the off-diagonal, and dividing by the determinant.
- • Linear algebra homework: Confirm the inverse of a 2x2 matrix step by step and read each of the four cells of A^-1 without recomputing the determinant by hand.
- • Solving 2x2 linear systems: Compute A^-1 and use it to solve A * x = b for small systems in a course or a quick engineering check.
- • Computer graphics transforms: Invert a 2x2 rotation, scale, or shear matrix to undo a transform on a 2D point or vector without re-deriving the formula.
- • Statistics and covariance: Invert a 2x2 covariance or correlation slice to get a small precision matrix in a stats workflow.
Matrix inversion is one of the first computational tools introduced in any linear algebra course, and the 2x2 case is the smallest example where the formula, the determinant, and the singular-matrix condition all appear at once. The inverse only exists when the determinant ad - bc is nonzero, and it is the only matrix that, multiplied by A on either side, gives the 2x2 identity matrix I.
When the 2x2 result needs to be linked back to the underlying cofactor pattern, the adjoint matrix calculator walks through the adjugate step that feeds the 2x2 inverse using the same four input cells.
How the Matrix Inverse Calculator Works
The calculator reads the four cells a, b, c, d of matrix A, computes the determinant ad - bc, and then applies the swap-diagonal and negate-off-diagonal pattern to build the inverse. If the determinant is zero, the result panel flags the matrix as singular and leaves the inverse cells at zero.
- a, b: The two entries in the top row of the 2x2 input matrix A.
- c, d: The two entries in the bottom row of matrix A.
- det = a*d - b*c: The scalar determinant of A. When det is zero, A is singular and no inverse exists.
- A^-1: The 2x2 inverse matrix. Its top row is d/det and -b/det, and its bottom row is -c/det and a/det.
If the determinant is zero, no finite inverse exists. The status line switches to "Singular - no inverse exists" and the inverse cells read 0 instead of attempting to divide by zero. Near-singular matrices return very large inverse cells, so you can see the result is numerically unstable and should rephrase the underlying problem.
Worked 2x2 inverse example
A = [[4, 7], [2, 6]].
Compute det = 4*6 - 7*2 = 10. Swap the diagonal and negate the off-diagonal to get the adjugate [[6, -7], [-2, 4]]. Divide every cell by 10: 0.6, -0.7, -0.2, 0.4.
A^-1 = [[0.6, -0.7], [-0.2, 0.4]]. Status: Invertible.
Multiplying A by A^-1 in either order returns the 2x2 identity matrix. The determinant 10 is comfortably away from zero, so the inverse is numerically stable.
According to Wikipedia, an n x n square matrix A is invertible if and only if its determinant is nonzero, and for a 2x2 matrix the inverse is the swapped-and-negated adjugate scaled by 1 / det
If the swap-and-negate adjugate is built first and then divided by det, the per-cell division is the matrix-by-scalar step, and the matrix by scalar calculator carries out that scalar scaling on a 2x2 matrix in a separate page.
Key Concepts Behind a Matrix Inverse
Four short ideas cover the determinant, the adjugate, the singular-matrix condition, and the geometric meaning of inverting a 2x2 transform.
Determinant det(A) = ad - bc
The determinant is the product of the diagonal entries minus the product of the off-diagonal entries. A 2x2 matrix is invertible if and only if this scalar is nonzero.
Adjugate and swap-and-negate
Build the adjugate by swapping the diagonal a and d, then negating b and c. Divide the adjugate by the determinant to get the inverse. This pattern generalizes to 3x3 and n x n matrices through cofactors.
Singular vs. invertible
When det is zero, A is singular and no inverse exists. Rows are linearly dependent, so A maps the plane to a line, and A * x = b has either zero or infinitely many solutions.
A * A^-1 = I and A^-1 * A = I
The defining property of the inverse is that multiplying A and A^-1 in either order gives the 2x2 identity matrix I. The swap-and-negate pattern is built so this identity always holds when det is nonzero.
These four ideas are the backbone of matrix inversion in any linear algebra course. The swap-and-negate step alone is the closed form for the 2x2 adjugate, and the singular-matrix check is the reason a square matrix can fail to have an inverse.
When the same four input cells are added to a second 2x2 matrix, the element-wise sum is the simplest related operation, and the matrix addition calculator returns the matching 2x2 sum matrix C in the same row-column order.
How to Use This Matrix Inverse Calculator
Enter the four cells of matrix A in row order, then read the determinant and the four cells of the inverse matrix A^-1 in the result panel. The output updates as you type.
- 1 Type the top row of matrix A: Fill in the a and b cells with the top row of your 2x2 matrix. The labels show the row and column position for each cell.
- 2 Type the bottom row of matrix A: Fill in the c and d cells with the bottom row of matrix A. The form keeps the four cells grouped so the matrix shape stays visible.
- 3 Read the determinant: The result panel shows det = ad - bc at the top. A nonzero value means the inverse exists; a value of zero means the matrix is singular.
- 4 Read the inverse status: The status line says "Invertible" when det is nonzero and "Singular - no inverse exists" when det is exactly zero, so you know which case applies.
- 5 Read the four cells of A^-1: Each of the four output cells shows one entry of A^-1: top-left d/det, top-right -b/det, bottom-left -c/det, bottom-right a/det.
- 6 Reset or change the inputs: Use Reset to restore the default 2x2 matrix, or change any cell to recompute the determinant and the inverse automatically.
Suppose you need to invert the scale matrix A = [[2, 0], [0, 0.5]] for a 2D graphics pipeline. Type 2 and 0 in the top row and 0 and 0.5 in the bottom row, and the result panel gives det = 1.0 and A^-1 = [[0.5, 0], [0, 2]].
When the inverse is used to solve A * x = b for a 2x2 linear system, the system of equations calculator walks through the same small matrices in a Cramer's rule or elimination context.
Benefits of This Matrix Inverse Calculator
The 2x2 formula is short, but mixing up the sign on the off-diagonal cells is the most common source of errors. The calculator keeps the determinant visible so you can confirm A * A^-1 = I before trusting the result.
- • Determinant and inverse on one screen: The determinant det = ad - bc is shown next to the four inverse cells, so you can see at a glance whether the matrix is invertible and how strong the inversion is.
- • Singular-matrix message built in: When ad - bc equals zero, the result panel switches to a singular status and does not attempt to divide by zero.
- • Matches the textbook adjugate pattern: The four inverse cells are produced by the swap-diagonal and negate-off-diagonal rule divided by the determinant, the closed form taught in introductory linear algebra.
- • Works for positive, negative, decimal, and fractional entries: Cells can be 0.5, -2, 1.25, or any other real number; full double precision is kept internally and rounding happens only at the display step.
For a problem that mixes the inverse with another matrix operation, the related tools on this site cover the same small matrices in different ways.
When the same cells show up inside a vector calculation rather than a matrix transform, the dot product calculator returns the scalar result of multiplying and summing the matching components.
Factors That Affect Your Matrix Inverse
A handful of input choices and structural facts decide whether the inverse matrix is well defined and how numerically stable the result is.
Determinant magnitude
When det = ad - bc is close to zero, the inverse cells blow up in magnitude and small input changes produce large output changes.
Sign of the determinant
A positive determinant preserves orientation; a negative determinant flips it. The sign of every inverse cell flips with the sign of det.
Decimal precision
Inputs can be decimals like 0.5 or 1.25, and the calculation keeps full double precision internally. A true fraction like 1/3 will appear as 0.3333.
Shape of the output
The result panel always shows the determinant, the singular status, and the four cells of a 2x2 inverse matrix A^-1 in the same row-column order as the input matrix.
- • The calculator is limited to 2x2 inputs. For 3x3 and larger matrices, the same adjugate idea applies through cofactors, but you would need a 3x3 tool to enter them all.
- • When the determinant is exactly zero the inverse is undefined; near-zero determinants return very large inverse values, so a tiny change in any of the four input cells can produce a much larger change in the four inverse cells.
If the matrix is part of a 2D or 3D transform, the cells are usually integers or short decimals and the determinant is rarely near zero. The page-level links below cover the related matrix operations on the same small matrices, including the adjugate step that feeds the 2x2 inverse.
According to Wolfram MathWorld, the inverse of a square matrix A is the unique matrix A^-1 such that A * A^-1 = A^-1 * A = I, and the inverse is given by adj(A) divided by det(A)
According to MIT OpenCourseWare 18.06 (Strang), the inverse of a 2x2 matrix A is built by swapping the diagonal entries a and d, negating the off-diagonal entries b and c, and dividing every entry by the determinant
For a different view of how the same 2x2 cell products feed a 3D vector operation, the cross product calculator returns the perpendicular vector that comes from the matching component products.
Frequently Asked Questions
Q: How do you find the inverse of a 2x2 matrix?
A: To find the inverse of a 2x2 matrix A = [[a, b], [c, d]], first compute the determinant det = a*d - b*c. If det is zero, the matrix is singular and no inverse exists. If det is nonzero, swap the diagonal entries a and d, negate the off-diagonal entries b and c, and divide every cell by det. The 2x2 matrix you get is A^-1.
Q: What is the formula for the inverse of a 2x2 matrix?
A: The closed form is A^-1 = (1 / (a*d - b*c)) * [[d, -b], [-c, a]]. It is defined only when the determinant a*d - b*c is nonzero. The top row of the result is d/det and -b/det, and the bottom row is -c/det and a/det.
Q: When does a matrix not have an inverse?
A: A 2x2 matrix A = [[a, b], [c, d]] does not have an inverse when its determinant a*d - b*c equals zero. This is the singular-matrix condition: the two rows are linearly dependent, A maps the plane to a line, and the equation A * x = b has either zero or infinitely many solutions.
Q: What is the determinant of a 2x2 matrix?
A: The determinant of a 2x2 matrix A = [[a, b], [c, d]] is the scalar det(A) = a*d - b*c. It is the product of the diagonal entries minus the product of the off-diagonal entries, and it measures the signed area the matrix applies to the unit square.
Q: How do you check if a 2x2 matrix is invertible?
A: Compute the determinant det = a*d - b*c. The matrix is invertible if and only if det is nonzero. A quick sanity check is to confirm that the two rows of A are not scalar multiples of each other, because that is the geometric condition that makes the determinant vanish.
Q: What is the difference between the inverse and the adjoint of a matrix?
A: The adjoint (more precisely, the adjugate) is the transpose of the cofactor matrix, and the inverse is the adjugate divided by the determinant. For a 2x2 matrix, the adjugate is the matrix [[d, -b], [-c, a]] and the inverse is that adjugate divided by a*d - b*c, so the inverse exists only when the determinant is nonzero.