2×2 Matrix Calculator

Work with 2x2 matrices including determinant style checks supported by the tool.

2×2 Matrix Calculator

Formula

det = a*d - b*c

Standard 2x2 determinant. Inverse exists only when det is not zero.

This matrix 2×2 calculator works with two by two matrices for determinant and related operations supported on the page. Enter the four entries carefully; small sign errors change the determinant a lot.

matrix 2x2 calculator

Determinant reminder

For matrix [[a, b], [c, d]], det = a*d – b*c. If det is 0, the matrix is singular and has no inverse.

For triangle geometry instead of matrices, use the right triangle calculator or the quadratic formula calculator for polynomial roots.

The three matrix 2×2 calculator operations and their formulas

For A = [[a, b], [c, d]], where a = a11, b = a12, c = a21 and d = a22:

  • Determinant: det(A) = ad − bc.
  • Inverse (only when det ≠ 0): A⁻¹ = (1 ÷ det) × [[d, −b], [−c, a]]. Swap a and d, change the signs of b and c, then divide every entry by the determinant.
  • Scalar multiple: kA = [[ka, kb], [kc, kd]]. Every entry is multiplied by k.

Matrix 2×2 calculator worked example

Let A = [[4, 7], [2, 6]].

  1. Determinant: 4 × 6 − 7 × 2 = 24 − 14 = 10.
  2. Inverse: (1/10) × [[6, −7], [−2, 4]] = [[0.6, −0.7], [−0.2, 0.4]].
  3. Check A × A⁻¹:
    • Row 1: 4(0.6) + 7(−0.2) = 2.4 − 1.4 = 1, and 4(−0.7) + 7(0.4) = −2.8 + 2.8 = 0.
    • Row 2: 2(0.6) + 6(−0.2) = 1.2 − 1.2 = 0, and 2(−0.7) + 6(0.4) = −1.4 + 2.4 = 1.
    The product is the identity matrix [[1, 0], [0, 1]]. ✔
  4. Scalar ×3: [[12, 21], [6, 18]]. Its determinant is 3² × 10 = 90, because scaling a 2×2 matrix by k multiplies the determinant by k².

What the determinant means

Wolfram MathWorld defines the determinant as a single number computed from a square matrix. For 2×2 matrices it has a geometric reading. Its absolute value is the area scale factor of the transformation: A turns the unit square into a parallelogram of area |10| = 10. A negative sign means orientation is flipped, like a mirror image. A determinant of 0 means the plane collapses onto a line, so no inverse can undo it. The matrix 2×2 calculator then reports “Matrix is singular”.

Solving two equations with Cramer’s rule

Solve 4x + 7y = 5 and 2x + 6y = 4. The coefficient matrix is A above, with det = 10.

  • Replace the first column with the constants: det[[5, 7], [4, 6]] = 30 − 28 = 2, so x = 2 ÷ 10 = 0.2.
  • Replace the second column: det[[4, 5], [2, 4]] = 16 − 10 = 6, so y = 6 ÷ 10 = 0.6.
  • Check: 4(0.2) + 7(0.6) = 0.8 + 4.2 = 5 ✔, and 2(0.2) + 6(0.6) = 0.4 + 3.6 = 4 ✔.

Multiplying A⁻¹ by the constants [5, 4] gives the same answer: 0.6(5) − 0.7(4) = 0.2 and −0.2(5) + 0.4(4) = 0.6.

Common matrix 2×2 calculator mistakes

  • Computing bc − ad instead of ad − bc. The sign flips and the inverse comes out negated.
  • Forgetting to negate b and c in the inverse, or negating a and d by mistake.
  • Entering entries column by column in the matrix 2×2 calculator. a12 is row 1, column 2 (top right).
  • Rounding the inverse too early. Entries like 1/3 should be carried as fractions, or to 6 decimal places as the tool does.

Where 2×2 matrices are used

Small matrices show up in 2D graphics (rotating, scaling or shearing points around the origin), in Markov chains with two states, and in economics models with two goods. A rotation by angle θ is [[cos θ, −sin θ], [sin θ, cos θ]], whose determinant is cos²θ + sin²θ = 1, so rotations preserve area.

Always sanity-check a result before relying on it: multiply the original matrix by its inverse and confirm you get the identity matrix, or recompute the determinant by hand with ad − bc. If the determinant is very close to zero but not exactly zero, the inverse will contain very large entries, so small input errors get magnified. Double-check each entry before you trust the output.

Last reviewed: October 2026

Related calculators

Frequently Asked Questions

What does the default example show?

a11=1, a12=2, a21=3, a22=4 with op=det returns determinant -2.

What is the determinant formula?

det = a11*a22 - a12*a21 for a 2x2 matrix.

What does a zero determinant mean?

The matrix is singular. It does not have an inverse in the usual real matrix sense.

Can entries be negative?

Yes. Signs flow through the same product difference formula.

Is this only for 2x2?

This page is built for 2x2 entries. Larger matrices need a different layout.

How do I read a11 style labels?

Row first, then column. a11 is top left, a12 top right, a21 bottom left, a22 bottom right.

Does determinant depend on order?

Swapping rows changes the sign of the determinant. Keep entry positions exact.

Can I check by expansion?

For 2x2 the product difference is the full expansion. Multiply diagonally and subtract.

How do you find the inverse of a 2x2 matrix?

Swap a and d, negate b and c, then divide by the determinant ad − bc. For [[4, 7], [2, 6]] the inverse is [[0.6, −0.7], [−0.2, 0.4]].

What does a determinant of zero mean?

The matrix is singular. It squashes the plane onto a line, so it has no inverse and the system it represents has no unique solution.

How does multiplying a 2x2 matrix by a scalar change the determinant?

It multiplies the determinant by the scalar squared. Tripling every entry multiplies the determinant by 9.

Can a matrix 2x2 calculator solve equations?

Indirectly. Find the inverse or use Cramer's rule: divide each column-replaced determinant by det(A). Here, 4x + 7y = 5 and 2x + 6y = 4 give x = 0.2 and y = 0.6.