Matrices

Determinant of a 2×2 Matrix

The determinant of a 2×2 matrix [abcd]\begin{bmatrix} a & b \\ c & d \end{bmatrix} is ad−bcad - bc: multiply the main diagonal, then subtract the product of the other diagonal. The result is a single number, not a matrix.

det⁡[abcd]=ad−bc\det\begin{bmatrix} a & b \\ c & d \end{bmatrix} = ad - bc

Try it with your numbers

Show every step

Type your own numbers into the solver above to see every step. The rest of this page covers where the formula comes from, how to handle negatives and fractions, what a result of 00 is telling you, and how the same number appears in inverses, areas and systems of equations. Larger sizes, such as the 3×3 determinant, are built out of 2×2 determinants, so this one is worth knowing cold.

What Is the Determinant of a 2×2 Matrix?

A matrix is a grid of numbers. Its determinant is one number computed from that grid, written det⁡(A)\det(A) or with vertical bars around the entries:

det⁡[abcd]=∣abcd∣=ad−bc\det\begin{bmatrix} a & b \\ c & d \end{bmatrix} = \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

Those bars do not mean absolute value, so the answer can be negative. Only square matrices have determinants. A 1×1 matrix [k][k] has determinant kk, and a 2×3 matrix has none.

The number answers two questions at once. First, how much does the matrix stretch or shrink area? Second, can the matrix be undone, or does it destroy information? The identity matrix changes nothing, and its determinant is 1⋅1−0⋅0=11\cdot 1 - 0\cdot 0 = 1. A matrix that flattens the plane onto a line has determinant 00.

How Do You Find the Determinant of a 2×2 Matrix?

Three moves, always in this order:

  1. Multiply the top-left entry by the bottom-right entry: a⋅da\cdot d.
  2. Multiply the top-right entry by the bottom-left entry: b⋅cb\cdot c.
  3. Subtract the second product from the first.

Example 1. Find the determinant of [5324]\begin{bmatrix} 5 & 3 \\ 2 & 4 \end{bmatrix}.

det⁡[5324]=5⋅4−3⋅2=20−6=14\det\begin{bmatrix} 5 & 3 \\ 2 & 4 \end{bmatrix} = 5\cdot 4 - 3\cdot 2 = 20 - 6 = 14

The trap that costs the most points is the order of subtraction. The main diagonal goes first. Reverse it and you get −14-14, which is a perfectly reasonable-looking wrong answer. Both multiplications must also finish before the subtraction happens, the same rule you use in any order of operations problem.

Quick check

A student computes bc−adbc - ad for [6125]\begin{bmatrix} 6 & 1 \\ 2 & 5 \end{bmatrix} and gets −28-28. What is the correct determinant?

Determinant of a 2×2 Matrix with Negatives and Fractions

Negatives cause nearly every lost mark here, because −bc-bc is a subtraction sitting on top of a product that may already be negative.

Example 2. Find the determinant of [−34−2−5]\begin{bmatrix} -3 & 4 \\ -2 & -5 \end{bmatrix}.

det⁡=(−3)(−5)−(4)(−2)=15−(−8)=15+8=23\det = (-3)(-5) - (4)(-2) = 15 - (-8) = 15 + 8 = 23

The second product is −8-8, and subtracting a negative adds. Writing 15−8=715 - 8 = 7 is the classic slip.

Example 3. Find the determinant of [2314632]\begin{bmatrix} \frac{2}{3} & \frac{1}{4} \\ 6 & \frac{3}{2} \end{bmatrix}.

det⁡=23⋅32−14⋅6=1−32=−12\det = \frac{2}{3}\cdot\frac{3}{2} - \frac{1}{4}\cdot 6 = 1 - \frac{3}{2} = -\frac{1}{2}

Look for reciprocals before multiplying: 23⋅32\frac{2}{3}\cdot\frac{3}{2} is exactly 11, which saves a step. Decimals work the same way, with no special rule.

Parentheses first

Write each product in its own parentheses, as in (ad)−(bc)(ad) - (bc), before you subtract. A negative bcbc then cannot hide inside the minus sign.

Why Does the 2×2 Determinant Formula Work?

Parallelogram with sides (3,1) and (1,2) in a 4 by 3 box, area 12 minus 7 equals 5
A 4 by 3 box minus 7 of corner pieces leaves a parallelogram of area 5, the same as 3·2 − 1·1.

The formula is an area. Treat the columns (a,c)(a, c) and (b,d)(b, d) as two arrows from the origin. They are adjacent sides of a parallelogram, and that parallelogram is exactly where the matrix sends the unit square.

Box the parallelogram inside a rectangle of width a+ba+b and height c+dc+d. The leftover corners are two triangles of area ac2\frac{ac}{2}, two triangles of area bd2\frac{bd}{2}, and two rectangles of area bcbc. Subtract them:

(a+b)(c+d)−ac−bd−2bc=ac+ad+bc+bd−ac−bd−2bc=ad−bc(a+b)(c+d) - ac - bd - 2bc = ac + ad + bc + bd - ac - bd - 2bc = ad - bc

This picture assumes the second arrow sits counterclockwise from the first. Swap the arrows and the shape is the same but the orientation flips, so the formula returns the negative. That is why the determinant is a signed area, and the plain area is ∣ad−bc∣|ad - bc|.

An algebra route gives the same factor. For the system ax+by=eax + by = e and cx+dy=fcx + dy = f, multiply the first equation by dd, the second by bb, and subtract:

(ad−bc) x=de−bf(ad - bc)\,x = de - bf

To isolate xx you must divide by ad−bcad - bc, so the system has a single solution only when that number is not zero.

Try this: Sketch the parallelogram with sides (3,1)(3,1) and (1,2)(1,2) inside a 44 by 33 rectangle. The corner pieces total 3+2+2=73 + 2 + 2 = 7, so the area is 12−712 - 7. Confirm it matches 3⋅2−1⋅1=53\cdot 2 - 1\cdot 1 = 5.

What Does a Zero Determinant Mean?

When ad=bcad = bc, one row is a multiple of the other (and the same is true of the columns). The two arrows point along one line, the parallelogram is flat, and the matrix squashes the whole plane onto a line. Information is lost, so the matrix cannot be undone. Such a matrix is called singular.

This shows up in algebra you already know. Rewrite the two equations of a system in slope-intercept form and the slopes are −ab-\frac{a}{b} and −cd-\frac{c}{d}. A zero determinant means those slopes are equal, so the lines are parallel (no solution) or identical (infinitely many). The same idea tests whether three points lie on one line: if the slope formula gives equal slopes, the determinant of the two edge vectors is 00.

Example 4. For which kk is [k623]\begin{bmatrix} k & 6 \\ 2 & 3 \end{bmatrix} singular?

det⁡=3k−12=0⇒k=4\det = 3k - 12 = 0 \quad\Rightarrow\quad k = 4

Check: [4623]\begin{bmatrix} 4 & 6 \\ 2 & 3 \end{bmatrix} has a second row that is exactly half the first.

Determinant Effect on area Orientation Inverse exists?
Positive, such as 55 Multiplied by 55 Kept Yes
Negative, such as −2-2 Multiplied by 22 Flipped Yes
Zero Collapses to 00 Lost No

Quick check

Does [2639]\begin{bmatrix} 2 & 6 \\ 3 & 9 \end{bmatrix} have an inverse?

How the Determinant Gives the Inverse of a 2×2 Matrix

The inverse of a 2×2 matrix uses the determinant as its divisor. Swap aa and dd, negate bb and cc, then divide everything by ad−bcad - bc:

A−1=1ad−bc[d−b−ca]A^{-1} = \frac{1}{ad - bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}

That division explains the zero rule: if ad−bc=0ad - bc = 0, the formula asks for division by zero, and no inverse exists.

Example 5. Invert A=[4312]A = \begin{bmatrix} 4 & 3 \\ 1 & 2 \end{bmatrix}. The determinant is 4⋅2−3⋅1=54\cdot 2 - 3\cdot 1 = 5, so

A−1=15[2−3−14]A^{-1} = \frac{1}{5}\begin{bmatrix} 2 & -3 \\ -1 & 4 \end{bmatrix}

To verify, use matrix multiplication. The top-left entry of AA−1AA^{-1} is 15(4⋅2+3⋅(−1))=55=1\frac{1}{5}\left(4\cdot 2 + 3\cdot(-1)\right) = \frac{5}{5} = 1, and the top-right entry is 15(4⋅(−3)+3⋅4)=0\frac{1}{5}\left(4\cdot(-3) + 3\cdot 4\right) = 0. The other two entries work out the same way and give the identity matrix. The full method, with more practice, is on the page about the inverse of a 2×2 matrix.

Properties of 2×2 Determinants That Save Time

A few rules let you skip arithmetic or catch errors:

  • Swapping two rows (or two columns) flips the sign of the determinant.
  • Multiplying one row by kk multiplies the determinant by kk.
  • det⁡(AB)=det⁡(A)det⁡(B)\det(AB) = \det(A)\det(B) and det⁡(AT)=det⁡(A)\det(A^{T}) = \det(A).
  • For a diagonal or triangular matrix, the determinant is the product of the diagonal entries: det⁡[3704]=12\det\begin{bmatrix} 3 & 7 \\ 0 & 4 \end{bmatrix} = 12.

Two traps follow from these. First, det⁡(kA)=k2det⁡(A)\det(kA) = k^2\det(A) for a 2×2 matrix, not kdet⁡(A)k\det(A), because kk multiplies both rows. With A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} we get det⁡(A)=−2\det(A) = -2, and 2A=[2468]2A = \begin{bmatrix} 2 & 4 \\ 6 & 8 \end{bmatrix} has determinant 16−24=−816 - 24 = -8, which is 4⋅(−2)4\cdot(-2).

Second, determinants do not respect addition. Take [1000]\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} and [0001]\begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix}. Each has determinant 00, yet their sum (see adding and subtracting matrices) is the identity, with determinant 11.

Quick check

AA is a 2×2 matrix with det⁡(A)=5\det(A) = 5. What is det⁡(3A)\det(3A)?

Real Uses: Triangle Area and Solving Two Equations

Triangle area from coordinates. Pick one vertex, form the two edge vectors from it, and take half the absolute value of their determinant. For the vertices (1,1)(1,1), (5,2)(5,2) and (3,6)(3,6), the edge vectors from (1,1)(1,1) are (4,1)(4,1) and (2,5)(2,5):

Area=12∣ 4⋅5−1⋅2 ∣=182=9\text{Area} = \frac{1}{2}\left|\,4\cdot 5 - 1\cdot 2\,\right| = \frac{18}{2} = 9

Collinearity test

Three points lie on one line exactly when the triangle area comes out as 00, that is, when the determinant of the two edge vectors is 00.

Solving two equations (Cramer’s rule). For 3x+2y=73x + 2y = 7 and x+4y=9x + 4y = 9, the coefficient determinant is D=3⋅4−2⋅1=10D = 3\cdot 4 - 2\cdot 1 = 10. Replace a column with the constants to get each numerator:

x=7⋅4−2⋅910=1010=1,y=3⋅9−7⋅110=2010=2x = \frac{7\cdot 4 - 2\cdot 9}{10} = \frac{10}{10} = 1, \qquad y = \frac{3\cdot 9 - 7\cdot 1}{10} = \frac{20}{10} = 2

Check in the first equation: 3(1)+2(2)=73(1) + 2(2) = 7. It works.

Eigenvalues. For a 2×2 matrix, the eigenvalues solve λ2−(a+d)λ+(ad−bc)=0\lambda^2 - (a+d)\lambda + (ad - bc) = 0, so the determinant is the product of the eigenvalues. Finding them means solving a quadratic, which is good use of quadratic formula practice.

How Can You Check a 2×2 Determinant Quickly?

Recompute with the columns swapped. The new answer must be the exact negative of the old one. If it is not, one of your products is wrong. This takes five seconds and catches most sign errors.

Next, glance at the rows. If one is a multiple of the other, the answer must be 00. If a row or column is all zeros, the answer is 00 as well. For diagonal and triangular matrices, the answer is just the product of the diagonal entries.

For messy decimals, round first. In [19.84.12.96.2]\begin{bmatrix} 19.8 & 4.1 \\ 2.9 & 6.2 \end{bmatrix}, the estimate is 20⋅6−4⋅3=10820\cdot 6 - 4\cdot 3 = 108. The exact work gives 122.76−11.89=110.87122.76 - 11.89 = 110.87, which sits comfortably near the estimate. An answer far from the estimate means an arithmetic slip.

From the 2×2 Determinant to the 3×3 Determinant

A 3×3 determinant is three 2×2 determinants in disguise. Expand along the first row, multiply each entry by the determinant of the 2×2 block left after deleting its row and column, and alternate the signs +,−,++,-,+.

Example 6. Find the determinant of [120031201]\begin{bmatrix} 1 & 2 & 0 \\ 0 & 3 & 1 \\ 2 & 0 & 1 \end{bmatrix}.

1∣3101∣−2∣0121∣+0∣0320∣=1(3)−2(−2)+0=71\begin{vmatrix} 3 & 1 \\ 0 & 1 \end{vmatrix} - 2\begin{vmatrix} 0 & 1 \\ 2 & 1 \end{vmatrix} + 0\begin{vmatrix} 0 & 3 \\ 2 & 0 \end{vmatrix} = 1(3) - 2(-2) + 0 = 7

The middle term carries the minus sign, and forgetting it is the standard 3×3 mistake. When you are ready for more, the full method is in the guide to the determinant of a 3×3 matrix, and the 3×3 determinant practice problems give you worked answers to test yourself against.

Practice problems

0 of 5 solved

  1. Find the determinant of [3514]\begin{bmatrix} 3 & 5 \\ 1 & 4 \end{bmatrix}.

  2. Find the determinant of [−234−5]\begin{bmatrix} -2 & 3 \\ 4 & -5 \end{bmatrix}.

  3. Find the determinant of [121334]\begin{bmatrix} \frac{1}{2} & \frac{1}{3} \\ 3 & 4 \end{bmatrix}.

  4. Find all values of xx for which [x43x+1]\begin{bmatrix} x & 4 \\ 3 & x+1 \end{bmatrix} has determinant 00.

  5. Find the area of the triangle with vertices (1,2)(1,2), (4,3)(4,3) and (2,7)(2,7).

Common questions

What is the formula for the determinant of a 2x2 matrix?

For the matrix with rows a,ba, b and c,dc, d, the determinant is ad−bcad - bc. Multiply the main diagonal, multiply the other diagonal, then subtract the second product from the first.

Can the determinant of a 2x2 matrix be negative?

Yes. The vertical bars in ∣A∣|A| are determinant notation, not absolute value. A negative result means the matrix flips orientation, like a mirror, while still scaling area by the size of the number.

What does it mean if the determinant is 0?

The matrix is singular: it has no inverse, and its rows are multiples of each other. A system of equations built from it has no solution or infinitely many, never exactly one.

What is the determinant of a 2x2 identity matrix?

It is 11, because 1⋅1−0⋅0=11\cdot 1 - 0\cdot 0 = 1. The identity matrix leaves every shape unchanged, so it scales area by exactly 11.

Can you find the determinant of a matrix that is not square?

No. Determinants exist only for square matrices, such as 1×1, 2×2 and 3×3. A 2×3 matrix has no determinant.

Is the determinant of a 2x2 matrix the same as its area?

The absolute value of the determinant is the area of the parallelogram formed by the matrix's columns (or its rows). The determinant itself also carries a sign for orientation.

Up next