2×2 Matrix Determinant and Inverse Calculator
Find the determinant and inverse of any 2×2 matrix instantly. Enter a, b, c, d — get det = ad−bc and A⁻¹ = (1/det)×[[d,−b],[−c,a]] in one click.
See step-by-step calculation
When to use this calculator
- Solving a 2×2 linear system (e.g., 3x + y = 7, 5x + 2y = 12) by computing the coefficient matrix inverse and multiplying by the constants vector.
- Checking whether two 2D vectors are linearly independent: arrange them as rows of a 2×2 matrix — if det ≠ 0, they form a basis for ℝ².
- Computing the area of a parallelogram spanned by vectors u = (a, c) and v = (b, d): Area = |ad − bc|.
- Verifying a 2D affine or linear transformation (rotation by θ, scaling, shear) is non-singular before applying it in computer graphics pipelines.
- Finding the inverse of a 2×2 covariance matrix in a bivariate normal distribution calculation for statistics or machine learning.
Common 2×2 Matrices: Determinant and Inverse Reference
| Matrix A | det(A) = ad−bc | Invertible? | A⁻¹ |
|---|---|---|---|
| [[1, 0], [0, 1]] — Identity | 1 | Yes | [[1, 0], [0, 1]] |
| [[2, 0], [0, 3]] — Diagonal | 6 | Yes | [[0.5, 0], [0, 0.333]] |
| [[1, 2], [3, 4]] | −2 | Yes | [[−2, 1], [1.5, −0.5]] |
| [[3, 1], [5, 2]] | 1 | Yes | [[2, −1], [−5, 3]] |
| [[2, 5], [1, 3]] | 1 | Yes | [[3, −5], [−1, 2]] |
| [[4, 7], [2, 6]] | 10 | Yes | [[0.6, −0.7], [−0.2, 0.4]] |
| [[−1, 0], [0, 1]] — Reflection | −1 | Yes | [[−1, 0], [0, 1]] (self-inverse) |
| [[cos θ, −sin θ], [sin θ, cos θ]] — Rotation | 1 | Yes | [[cos θ, sin θ], [−sin θ, cos θ]] |
| [[1, 2], [2, 4]] | 0 | No | Does not exist |
| [[0, 0], [0, 0]] — Zero | 0 | No | Does not exist |
Fuente: Wikipedia – Invertible Matrix & Determinant; Khan Academy – Inverting 2×2 matrices. All values derived from det(A) = ad−bc and A⁻¹ = (1/det)·[[d,−b],[−c,a]].
How it works
Formula: How to Find the Determinant and Inverse of a 2×2 Matrix
Given the 2×2 matrix:
A = | a b |
| c d |Step 1 — Determinant:
det(A) = a·d − b·cStep 2 — Check invertibility:
If det(A) = 0 → A is singular (no inverse exists)
If det(A) ≠ 0 → A is invertible (non-singular)Step 3 — Inverse (only if det ≠ 0):
A⁻¹ = (1 / det(A)) × | d −b |
| −c a |This formula comes from the adjugate (classical adjoint) method: swap the main-diagonal entries (a and d), negate the off-diagonal entries (b and c), then divide every entry by the determinant.
Verification: A · A⁻¹ must equal the identity matrix I = [[1, 0], [0, 1]].
---
Quick-Reference Table: Common 2×2 Matrices
The table below shows common 2×2 matrices, their determinants, and inverses — useful for checking your work.
| Matrix A | det = ad−bc | Invertible? | A⁻¹ |
|---|---|---|---|
| [[1, 0], [0, 1]] (Identity) | 1 | Yes | [[1, 0], [0, 1]] |
| [[2, 0], [0, 3]] (Diagonal) | 6 | Yes | [[0.5, 0], [0, 0.333]] |
| [[1, 2], [3, 4]] | −2 | Yes | [[−2, 1], [1.5, −0.5]] |
| [[3, 1], [5, 2]] | 1 | Yes | [[2, −1], [−5, 3]] |
| [[2, 5], [1, 3]] | 1 | Yes | [[3, −5], [−1, 2]] |
| [[4, 7], [2, 6]] | 10 | Yes | [[0.6, −0.7], [−0.2, 0.4]] |
| [[cos θ, −sin θ], [sin θ, cos θ]] (Rotation) | 1 | Yes | [[cos θ, sin θ], [−sin θ, cos θ]] |
| [[1, 2], [2, 4]] | 0 | No | Does not exist |
| [[0, 0], [0, 0]] (Zero) | 0 | No | Does not exist |
| [[−1, 0], [0, 1]] (Reflection) | −1 | Yes | [[−1, 0], [0, 1]] (self-inverse) |
> Key pattern: A rotation matrix always has det = cos²θ + sin²θ = 1, so it is always invertible, and its inverse equals its transpose.
---
Worked Examples
Example 1 — Classic textbook matrix
A = [[1, 2],
[3, 4]]
det(A) = 1·4 − 2·3 = 4 − 6 = −2
A⁻¹ = (1/−2) × [[ 4, −2],
[−3, 1]]
= [[−2, 1 ],
[ 1.5, −0.5]]Check: [[1,2],[3,4]] × [[−2,1],[1.5,−0.5]] = [[1,0],[0,1]] ✅
---
Example 2 — Solving a 2×2 linear system
System:
2x + 5y = 1 and x + 3y = 0Coefficient matrix: A = [[2, 5], [1, 3]]
det(A) = 2·3 − 5·1 = 1
A⁻¹ = [[ 3, −5],
[−1, 2]]
Solution: x = 3·1 + (−5)·0 = 3, y = (−1)·1 + 2·0 = −1Verify: 2(3) + 5(−1) = 1 ✅ and 1(3) + 3(−1) = 0 ✅
---
Example 3 — Singular matrix (no inverse)
A = [[4, 6],
[2, 3]]
det(A) = 4·3 − 6·2 = 12 − 12 = 0Row 2 is exactly ½ of Row 1 → linearly dependent rows → the system has either infinitely many solutions or no solution. No inverse exists.
---
Common Errors
1. Swapping instead of negating off-diagonal entries. The adjugate formula requires swapping a and d AND negating b and c. Students often negate all four entries or only negate one.
2. Forgetting to divide by det(A). Computing the adjugate [[d, −b], [−c, a]] without multiplying by 1/det(A) gives the adjugate matrix, not the inverse.
3. Applying the formula when det = 0. Division by zero is undefined. A singular matrix has no inverse.
4. Sign error in the determinant formula. det = ad − bc, NOT ad + bc or ab − cd.
5. Confusing the determinant with the trace. The trace is a + d (sum of main-diagonal entries); the determinant is ad − bc. Both appear in the characteristic polynomial λ² − tr(A)λ + det(A) = 0.
6. Row vs. column ordering. Always confirm: a=row1/col1, b=row1/col2, c=row2/col1, d=row2/col2. A transposition error changes the determinant sign and completely changes the inverse.
---
Related Calculators
Worked Example
Frequently asked questions
What is the formula for the inverse of a 2×2 matrix?
What does it mean geometrically when det(A) = 0?
Can the determinant be negative, and what does that mean?
How do I use the inverse matrix to solve Ax = b?
What is Cramer's Rule and how does it relate to the determinant?
Is the inverse of a 2×2 matrix unique?
What is a rotation matrix and why is its determinant always 1?
How does the determinant relate to eigenvalues?
What happens to the determinant if I swap the two rows?
When is a 2×2 matrix its own inverse (involutory)?
Sources & references
Methodology & trust
Calculadora de matemática revisada por el equipo editorial de Hacé Cuentas, contrastada con Wikipedia – Determinant (mathematics), según nuestra política editorial y metodología.
Última revisión: June 20, 2026. Los parámetros se verifican periódicamente con las fuentes citadas.
Calculations run 100% in your browser. We do not store or transmit your data.
Indicative results. For critical decisions, consult a professional.
Rodríguez, M. (2026). 2×2 Matrix Determinant and Inverse Calculator. Hacé Cuentas. https://hacecuentas.com/2x2-matrix-determinant-inverse
Contenido bajo licencia CC-BY 4.0 — reutilizable citando la fuente con enlace a Hacé Cuentas.