Matemática

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.

🗓️ Updated June 2026 Reviewed by
Calculator Free · Private
Reviewed by: (editorial policy ) · Last reviewed:
Have a website? Embed this calculator for free Free — copy the code and paste it on your website Embed on your site
<iframe src="https://hacecuentas.com/embed/2x2-matrix-determinant-inverse" width="100%" height="560" style="border:1px solid #e2e8f0;border-radius:12px;max-width:720px" loading="lazy" title="2×2 Matrix Determinant and Inverse Calculator"></iframe>
<p style="font-size:13px;text-align:center;margin:8px 0">Powered by <a href="https://hacecuentas.com" target="_blank" rel="noopener">Hacé Cuentas</a> — <a href="https://hacecuentas.com/2x2-matrix-determinant-inverse" target="_blank" rel="noopener">2×2 Matrix Determinant and Inverse Calculator</a></p>
Preview →

Paste it on your site. Keep the credit link — thanks for sharing. More widgets →

A 2×2 matrix is the simplest square matrix that carries full linear-algebraic meaning. Its determinant is a single scalar that tells you whether the matrix is invertible, how it scales areas, and what sign it assigns to orientation. For a matrix A = [[a, b], [c, d]], the determinant is det(A) = ad − bc. If det(A) ≠ 0, the inverse exists and equals (1/det(A)) × [[d, −b], [−c, a]]. These two quantities appear in solving 2×2 linear systems, computing 2D transformations (rotation, shear, scaling), finding eigenvalues, and verifying linear independence of two vectors.

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 Adet(A) = ad−bcInvertible?A⁻¹
[[1, 0], [0, 1]] — Identity1Yes[[1, 0], [0, 1]]
[[2, 0], [0, 3]] — Diagonal6Yes[[0.5, 0], [0, 0.333]]
[[1, 2], [3, 4]]−2Yes[[−2, 1], [1.5, −0.5]]
[[3, 1], [5, 2]]1Yes[[2, −1], [−5, 3]]
[[2, 5], [1, 3]]1Yes[[3, −5], [−1, 2]]
[[4, 7], [2, 6]]10Yes[[0.6, −0.7], [−0.2, 0.4]]
[[−1, 0], [0, 1]] — Reflection−1Yes[[−1, 0], [0, 1]] (self-inverse)
[[cos θ, −sin θ], [sin θ, cos θ]] — Rotation1Yes[[cos θ, sin θ], [−sin θ, cos θ]]
[[1, 2], [2, 4]]0NoDoes not exist
[[0, 0], [0, 0]] — Zero0NoDoes 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·c

Step 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 Adet = ad−bcInvertible?A⁻¹
[[1, 0], [0, 1]] (Identity)1Yes[[1, 0], [0, 1]]
[[2, 0], [0, 3]] (Diagonal)6Yes[[0.5, 0], [0, 0.333]]
[[1, 2], [3, 4]]−2Yes[[−2, 1], [1.5, −0.5]]
[[3, 1], [5, 2]]1Yes[[2, −1], [−5, 3]]
[[2, 5], [1, 3]]1Yes[[3, −5], [−1, 2]]
[[4, 7], [2, 6]]10Yes[[0.6, −0.7], [−0.2, 0.4]]
[[cos θ, −sin θ], [sin θ, cos θ]] (Rotation)1Yes[[cos θ, sin θ], [−sin θ, cos θ]]
[[1, 2], [2, 4]]0NoDoes not exist
[[0, 0], [0, 0]] (Zero)0NoDoes not exist
[[−1, 0], [0, 1]] (Reflection)−1Yes[[−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 = 0

Coefficient 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 = −1

Verify: 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 = 0

Row 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

  • Percentage Calculator

  • Ratio & Proportion Calculator

  • Worked Example

    Matrix A = [[3, 1], [5, 2]]
    det = 3×2 − 1×5 = 6 − 5 = 1
    Since det = 1 ≠ 0, inverse exists
    A⁻¹ = (1/1) × [[2, −1], [−5, 3]] = [[2, −1], [−5, 3]]
    det = 1, A⁻¹ = [[2, −1], [−5, 3]]

    Frequently asked questions

    What is the formula for the inverse of a 2×2 matrix?
    For A = [[a, b], [c, d]], the inverse is A⁻¹ = (1/(ad−bc)) × [[d, −b], [−c, a]]. The formula has three steps: (1) compute det = ad−bc; (2) swap the main-diagonal entries (a↔d) and negate the off-diagonal entries (b→−b, c→−c); (3) divide every entry by det. The inverse only exists when det ≠ 0.
    What does it mean geometrically when det(A) = 0?
    A determinant of zero means the two row vectors (or column vectors) are linearly dependent — one is a scalar multiple of the other. Geometrically, the linear transformation collapses the plane onto a line (or point), reducing area to zero. The transformation is not reversible, which is why no inverse exists.
    Can the determinant be negative, and what does that mean?
    Yes. A negative determinant means the transformation reverses orientation (flips the plane, like a reflection). Its absolute value |det(A)| still gives the area scale factor. For example, a reflection matrix [[−1, 0], [0, 1]] has det = −1: it preserves area but mirrors the x-axis.
    How do I use the inverse matrix to solve Ax = b?
    If A is invertible, the unique solution is x = A⁻¹b. Compute A⁻¹ using (1/det)×[[d,−b],[−c,a]], then multiply by the constants vector b = [b₁, b₂]ᵀ. This gives [x₁, x₂]ᵀ directly without row reduction.
    What is Cramer's Rule and how does it relate to the determinant?
    Cramer's Rule gives explicit formulas for each variable using determinants. For Ax = b (2×2): x₁ = det(A₁)/det(A) and x₂ = det(A₂)/det(A), where A₁ replaces column 1 with b, and A₂ replaces column 2 with b. It requires det(A) ≠ 0 and is mathematically equivalent to using A⁻¹.
    Is the inverse of a 2×2 matrix unique?
    Yes — if an inverse exists, it is unique. This follows from the cancellation law for matrices: if AB = I and AC = I, then B = C. The formula A⁻¹ = (1/det)×[[d,−b],[−c,a]] always produces the one and only inverse when det ≠ 0.
    What is a rotation matrix and why is its determinant always 1?
    A 2D rotation matrix is R(θ) = [[cos θ, −sin θ], [sin θ, cos θ]]. Its determinant is cos²θ − (−sin²θ) = cos²θ + sin²θ = 1 for all θ (Pythagorean identity). This means rotations preserve area and orientation. The inverse of R(θ) is R(−θ), which equals the transpose.
    How does the determinant relate to eigenvalues?
    For a 2×2 matrix, det(A) equals the product of its two eigenvalues (λ₁·λ₂). This comes from the characteristic polynomial det(A − λI) = λ² − tr(A)λ + det(A) = 0. If either eigenvalue is zero, det = 0 and the matrix is singular.
    What happens to the determinant if I swap the two rows?
    Swapping rows of A = [[a,b],[c,d]] gives [[c,d],[a,b]], with det = cb − da = −(ad−bc) = −det(A). Every row swap multiplies the determinant by −1. This property is fundamental to Gaussian elimination.
    When is a 2×2 matrix its own inverse (involutory)?
    A matrix A is involutory (self-inverse) when A² = I, requiring trace = 0 and det = −1. Examples: reflection matrices [[1,0],[0,−1]] and [[0,1],[1,0]], and any matrix [[a,b],[c,−a]] with a²+bc = 1.

    Methodology & trust

    Editorial

    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.

    Updates

    Última revisión: June 20, 2026. Los parámetros se verifican periódicamente con las fuentes citadas.

    Privacy

    Calculations run 100% in your browser. We do not store or transmit your data.

    Limitations

    Indicative results. For critical decisions, consult a professional.

    📌 How to cite this calculator

    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.

    ✉️ Reportar un error en esta calculadora