Inverse of a 2x2 Matrix: Formula, Steps and Examples
To find the inverse of a 2x2 matrix, calculate the determinant ad − bc, swap a and d, change the signs of b and c, then multiply every entry by 1/(ad − bc). A zero determinant means the matrix is singular and has no inverse.
Want the answer instantly? Enter your numbers in the 2x2 Inverse Matrix Calculator and every step is shown for you.
How Do You Calculate the Inverse of a 2x2 Matrix Instantly?
You calculate the inverse of a 2x2 matrix instantly by entering the four values a, b, c, and d into the 2x2 inverse matrix calculator. The tool computes the determinant ad − bc, swaps and negates the entries, scales the result, and shows each step with a verification check.
Enter a, b, c, and d for the matrix [[a, b], [c, d]] in the four input boxes of the calculator and press calculate. The result appears in a fixed order:
- The original matrix
- The determinant ad − bc
- The invertibility status
- The inverse matrix
- The step-by-step solution
- The A × A⁻¹ verification
The determinant appears before the inverse because it decides everything after it. A nonzero determinant produces an inverse. A zero determinant produces a plain message that no inverse exists, with no division by zero.
Each line of the solution matches one term of the inverse formula, so a hand calculation and the tool output compare line by line.
What Is the Formula for the Inverse of a 2x2 Matrix?
The formula for the inverse of a 2x2 matrix is A⁻¹ = 1/(ad − bc) × [[d, −b], [−c, a]]. It applies to any matrix A = [[a, b], [c, d]] with a nonzero determinant. Multiplying A by A⁻¹ returns the identity matrix [[1, 0], [0, 1]].
The determinant ad − bc controls the formula. It decides when an inverse exists and sets the scale of every entry. Dividing by a determinant of 14 shrinks each entry to one-fourteenth, while dividing by 0.5 doubles each entry. A determinant of 1 leaves the entries unscaled: A = [[1, 2], [3, 7]] has determinant 7 − 6 = 1, so its inverse is [[7, −2], [−3, 1]] with no fractions.
The matrix [[d, −b], [−c, a]] is the adjugate of a 2x2 matrix. It swaps the diagonal entries a and d and flips the signs of the off-diagonal entries b and c. The 2x2 determinant calculator computes ad − bc by itself when you need only that value.
Math is Fun states the same matrix inverse definition and the same formula. The formula divides by ad − bc, and division by zero has no value, so a zero determinant stops the calculation. The four steps below apply the formula one operation at a time.
How Do You Find the Inverse of a 2x2 Matrix Step by Step?
You find the inverse of a 2x2 matrix in four steps: calculate the determinant, confirm it differs from zero, swap a and d while negating b and c, then multiply every entry by 1/determinant. The example below uses A = [[5, 3], [2, 4]], which has determinant 14.
Step 1: Calculate the determinant.
det(A) = (5)(4) − (3)(2) = 20 − 6 = 14.
Step 2: Check the determinant.
14 differs from zero, so the inverse exists.
Step 3: Swap and negate.
Swap 5 and 4. Change the signs of 3 and 2.
[ 4 -3 ]
[ -2 5 ]
Step 4: Multiply every entry by 1/14.
A⁻¹ = 1/14 × [ 4 -3 ] = [ 2/7 -3/14 ]
[ -2 5 ] [ -1/7 5/14 ]
In decimals rounded to 3 places, A⁻¹ = [[0.286, −0.214], [−0.143, 0.357]].
Each step changes one thing. Step 3 rearranges the entries. Step 4 rescales them.
The rescaling works because A × adj(A) = (ad − bc) × I. Dividing by ad − bc turns that product into the identity matrix. The same four steps handle fractions, decimals, negative numbers, and variables.
How Does the 2x2 Inverse Change With Fractions, Decimals, Negatives, and Variables?
The 2x2 inverse follows the same four steps for fractions, decimals, negatives, and variables. Only the arithmetic changes. Fractions can produce whole-number inverses, decimals need a stated rounding precision, negatives need careful sign handling, and variables produce an expression that fails at specific values.
Each case below uses a new matrix and shows the final values.
How Do You Find the Inverse of a 2x2 Matrix With Fractions?
You find the inverse of a 2x2 matrix with fractions by running the same steps on the fraction entries. For A = [[1/2, 1/3], [1/4, 1/5]], the determinant is 1/60, so every entry of the swapped matrix is multiplied by 60 and gives [[12, −20], [−15, 30]].
The first product entry confirms it: (1/2)(12) + (1/3)(−15) = 6 − 5 = 1.
How Do You Find the Inverse of a 2x2 Matrix With Decimals?
You find the inverse of a 2x2 matrix with decimals by keeping full precision until the last step. For A = [[0.5, 1.5], [2, 4]], the determinant is −1, so the inverse is [[−4, 1.5], [2, −0.5]]. Round only the final entries and state the precision.
The first product entry confirms it: 0.5(−4) + 1.5(2) = −2 + 3 = 1.
How Do You Find the Inverse of a 2x2 Matrix With Negative Numbers?
You find the inverse of a 2x2 matrix with negative numbers by tracking every sign through the determinant and the swap. For A = [[−2, 4], [3, −5]], the determinant is (−2)(−5) − (4)(3) = −2, so the inverse is [[5/2, 2], [3/2, 1]].
The first product entry confirms it: (−2)(5/2) + 4(3/2) = −5 + 6 = 1.
How Do You Find the Inverse of a 2x2 Matrix With Variables?
You find the inverse of a 2x2 matrix with variables by keeping the determinant as an expression. For A = [[x, 1], [2, x]], the determinant is x² − 2, so the inverse is 1/(x² − 2) × [[x, −1], [−2, x]]. It fails when x equals √2 or −√2.
At x = 2, the determinant is 2 and the inverse is 1/2 × [[2, −1], [−2, 2]] = [[1, −0.5], [−1, 1]].
When Does a 2x2 Matrix Have No Inverse?
A 2x2 matrix has no inverse when its determinant ad − bc equals zero. Such a matrix is called singular. Its rows are multiples of each other, so the matrix collapses a two-dimensional plane onto a line and no operation can undo the collapse.
Take A = [[2, 6], [1, 3]]. The determinant is (2)(3) − (6)(1) = 6 − 6 = 0. Row 1 equals 2 times row 2, so both rows carry the same information. The matrix [[1, 2], [2, 4]] behaves the same way: its determinant is 4 − 4 = 0, and column 2 equals 2 times column 1.
The determinant also measures how a matrix scales area. A determinant of 14 multiplies area by 14, and a determinant of 0 flattens every shape to zero area.
The 2x2 inverse calculator flags this case before it computes anything else. It displays the determinant 0, labels the matrix singular, and states that no inverse exists. This replaces a division by zero with a clear answer.
Any matrix with proportional rows or proportional columns has a zero determinant. To test proportionality by hand, divide the entries of row 1 by the entries of row 2 and compare the ratios. The invertible matrix checker returns a yes or no verdict with steps when you want only the invertibility test.
Once the determinant clears the test, the product of the matrix and its inverse confirms the answer.
How Do You Check That a 2x2 Inverse Is Correct?
You check that a 2x2 inverse is correct by multiplying the original matrix by the inverse. A correct inverse returns the identity matrix [[1, 0], [0, 1]] in both orders, A × A⁻¹ and A⁻¹ × A. Any other product signals an arithmetic error.
Multiply A = [[5, 3], [2, 4]] by A⁻¹ = [[2/7, −3/14], [−1/7, 5/14]]:
- Row 1 × column 1: 5(2/7) + 3(−1/7) = 10/7 − 3/7 = 1
- Row 1 × column 2: 5(−3/14) + 3(5/14) = −15/14 + 15/14 = 0
- Row 2 × column 1: 2(2/7) + 4(−1/7) = 4/7 − 4/7 = 0
- Row 2 × column 2: 2(−3/14) + 4(5/14) = −6/14 + 20/14 = 1
The four results form [[1, 0], [0, 1]], so the inverse is correct. The check works in both orders because a square matrix and its inverse commute: A × A⁻¹ = A⁻¹ × A. The 2x2 inverse matrix calculator shows this same multiplication under every answer. For other pairs of matrices, the matrix multiplication calculator shows each row-by-column product.
A result such as 0.9999 instead of 1 comes from rounding. It does not signal an error.
A second route to the same inverse uses row operations, and it passes this check too.
How Does Gauss-Jordan Elimination Find the Same 2x2 Inverse?
Gauss-Jordan elimination finds the same 2x2 inverse by writing the matrix next to the identity matrix and applying row operations until the left side becomes the identity. The right side then holds the inverse. Both methods give identical results for any invertible 2x2 matrix.
Start with [A | I] for A = [[5, 3], [2, 4]]:
[ 5 3 | 1 0 ]
[ 2 4 | 0 1 ]
- Divide row 1 by 5: [1, 0.6 | 0.2, 0]
- Subtract 2 × row 1 from row 2: [0, 2.8 | −0.4, 1]
- Divide row 2 by 2.8: [0, 1 | −1/7, 5/14]
- Subtract 0.6 × row 2 from row 1: [1, 0 | 2/7, −3/14]
The right side reads [[2/7, −3/14], [−1/7, 5/14]], which matches the formula result. The shortcut formula needs one division. Gauss-Jordan needs four row operations on this matrix. A row of zeros on the left side during elimination signals a singular matrix with no inverse.
Several online matrix calculators run Gauss-Jordan on every size, including 2x2 input. The general method for finding a matrix inverse covers this elimination process for larger sizes. The inverse also solves systems of equations.
How Do You Use a 2x2 Inverse to Solve Two Equations?
You use a 2x2 inverse to solve two equations by writing the system as AX = b and computing X = A⁻¹b. The coefficient matrix becomes A, the variables become X, and the constants become b. One matrix multiplication returns both unknowns at once.
Take the system 3x + 2y = 12 and x + 4y = 8. Then A = [[3, 2], [1, 4]], X = [x, y], and b = [12, 8]. The determinant is (3)(4) − (2)(1) = 10, so A⁻¹ = 1/10 × [[4, −2], [−1, 3]].
Multiply A⁻¹ by b:
- x = (4 × 12 − 2 × 8) / 10 = 32/10 = 3.2
- y = (−1 × 12 + 3 × 8) / 10 = 12/10 = 1.2
Substitution confirms both values: 3(3.2) + 2(1.2) = 12 and 3.2 + 4(1.2) = 8. The system of linear equations calculator solves systems written as Ax = b. A sign slip in A⁻¹ changes both answers, which makes sign handling the most common failure point. A zero determinant leaves the system without a unique solution, so the inverse method stops there.
Which Mistakes Break a 2x2 Inverse Calculation?
Four mistakes break a 2x2 inverse calculation: skipping the swap of a and d, changing the wrong signs, dividing only some entries by the determinant, and confusing the inverse with the transpose. Each mistake produces a matrix that fails the A × A⁻¹ = I check.
Take A = [[5, 3], [2, 4]]. Leaving 5 and 4 in place gives a first product entry of 19/14 instead of 1. Negating 5 and 4 instead of 3 and 2 gives a first product entry of −1. Dividing only the diagonal entries by 14 leaves −3 and −2 unscaled, so the product entry in row 1, column 2 becomes 5(−3) + 3(5/14) ≈ −13.9 instead of 0.
The transpose of A is [[5, 2], [3, 4]]. It shares no entries with the adjugate [[4, −3], [−2, 5]]. The transpose exchanges rows and columns, while the inverse reverses the matrix operation.
For decimal inputs, round at the end and not between steps. Early rounding moves the final product away from the identity matrix. The 2x2 shortcut also stops working beyond two rows and two columns.
What Changes for a 3x3 Matrix or Larger?
A 3x3 matrix needs the cofactor and adjugate method or Gauss-Jordan elimination, because the 2x2 swap-and-negate shortcut applies only to 2x2 matrices. The general formula A⁻¹ = adj(A) / det(A) still holds, and for a 2x2 matrix the adjugate equals the swapped and negated matrix.
A 3x3 inverse requires nine cofactors, and each cofactor is a 2x2 determinant. A 4x4 inverse requires sixteen cofactors, each a 3x3 determinant. A 6x6 inverse requires thirty-six 5x5 cofactors. The determinant must stay nonzero at every size.
The 3x3 inverse matrix calculator shows every cofactor step. The inverse matrix calculator for 1x1 to 6x6 sizes covers every size from one tool. Wolfram MathWorld's matrix inverse reference lists the general properties, such as (AB)⁻¹ = B⁻¹A⁻¹.
Try It Yourself
Enter a, b, c and d and get the determinant, the inverse, every step, and the A × A⁻¹ check.
Open the 2x2 Inverse Matrix CalculatorFrequently Asked Questions
Do all 2x2 matrices have an inverse?
No. A 2x2 matrix has an inverse only when its determinant ad − bc differs from zero. A matrix with determinant zero is singular. Its rows or columns are multiples of each other, and no matrix multiplication can undo that.
Does a 2x3 matrix have an inverse?
No. Only square matrices have inverses, so a 2x3 matrix has none. A 2x3 matrix maps three dimensions onto two, which loses information that no multiplication can restore. Pseudoinverses exist for such matrices but follow different rules.
Is the inverse of a matrix the same as its transpose?
No. The transpose swaps rows and columns, while the inverse satisfies A × A⁻¹ = I. The two match only for orthogonal matrices, where Aᵀ × A = I. For A = [[5, 3], [2, 4]], the transpose and the inverse differ in every entry.
Can a 2x2 inverse contain fractions?
Yes. An integer matrix has an integer inverse only when its determinant is 1 or −1. Otherwise the 1/determinant factor produces fractions. The inverse of [[5, 3], [2, 4]] has determinant 14 and entries such as 2/7 and −3/14.
What is the inverse of 2x + 2?
The inverse of the function f(x) = 2x + 2 is f⁻¹(x) = (x − 2)/2. This is a function inverse, which swaps input and output, and it differs from a matrix inverse. Substitution confirms it: f(f⁻¹(x)) = 2 × (x − 2)/2 + 2 = x.
Can the 2x2 inverse calculator handle decimals and negative numbers?
Yes. Enter decimals such as 0.5 or negatives such as −2 in any of the four input boxes. The calculator computes the determinant, the inverse, and the verification with those values, and it flags a zero determinant before dividing.