Skip to content

2×2 Matrix Calculator

2×2 matrix determinant, inverse or scalar multiple from four entries and an operation.

Maintained by the Calcenzo team. Last reviewed September 25, 2026. Methodology

2×2 Matrix Calculator

A matrix calculator finds the determinant, the inverse or a scalar multiple of a 2×2 matrix. For [1 2; 3 4] the determinant is −2 and the inverse is [−2 1; 1.5 −0.5].

matrix calculator
Matrix calculator chart: determinants, inverses and scaling for example 2×2 matrices.

How to use the matrix calculator

  1. Enter the four entries a11, a12, a21 and a22.
  2. Choose determinant, inverse or scale, and enter a scalar if scaling.
  3. Read the result.

How the matrix calculator works

The matrix calculator works on a 2×2 matrix with entries a11, a12 in the top row and a21, a22 in the bottom row. It offers three operations:

  • Determinant: det = a11 × a22 − a12 × a21
  • Inverse: (1 ÷ det) × [a22 −a12; −a21 a11], if det is not 0
  • Scalar multiple: each entry times the scalar k

Matrix calculator worked example

For [1 2; 3 4], the determinant is 1 × 4 − 2 × 3 = −2. To invert, swap the diagonal entries, change the signs of the others to get [4 −2; −3 1], and divide by −2: the inverse is [−2 1; 1.5 −0.5]. Multiplying the original by this inverse gives the identity [1 0; 0 1], which checks the answer. With a scalar of 2 the matrix calculator returns [2 4; 6 8].

Matrix Operation Result
[1 2; 3 4] Determinant −2
[1 2; 3 4] Inverse [−2 1; 1.5 −0.5]
[1 2; 3 4] Scale × 2 [2 4; 6 8]
[4 7; 2 6] Determinant 10
[4 7; 2 6] Inverse [0.6 −0.7; −0.2 0.4]
[2 4; 1 2] Inverse Singular

What the determinant tells you

The determinant measures how the matrix scales area. A determinant of −2 means shapes double in area and flip orientation. A determinant of 0 means the matrix squashes the plane onto a line, so the rows are multiples of each other and no inverse exists; the matrix calculator reports these matrices, and ones whose determinant is tiny next to their entries, as singular. MIT’s 18.06 linear algebra course builds much of the subject on this idea.

Solving 2×2 systems

A pair of linear equations, such as 4x + 7y = 1 and 2x + 6y = 0, can be written as A × [x; y] = b. Multiply both sides by the inverse: [x; y] = A−1 × b. With A = [4 7; 2 6], the inverse is [0.6 −0.7; −0.2 0.4], so x = 0.6 × 1 − 0.7 × 0 = 0.6 and y = −0.2. Check: 4(0.6) + 7(−0.2) = 1. This is the same result Cramer’s rule gives.

Limits

  • Only 2×2 matrices are supported.
  • Matrix-by-matrix multiplication, addition and transpose are not included.
  • Very small determinants close to zero can give large, unstable inverse entries.

Where 2×2 matrices are used

Small matrices appear across science and computing. In computer graphics, a 2×2 matrix rotates, scales or shears a shape on screen. A rotation by an angle θ uses the matrix [cos θ −sin θ; sin θ cos θ], whose determinant is always 1, so rotation never changes area. A scaling matrix [2 0; 0 3] stretches shapes by 2 horizontally and 3 vertically and has a determinant of 6, the factor by which areas grow.

In economics and biology, 2×2 matrices model how two quantities affect each other over time, such as two competing populations or two linked markets. In statistics, a 2×2 covariance matrix describes how two variables vary together, and its inverse appears in many formulas.

Learning the 2×2 case by hand makes larger matrices easier to understand. The same ideas, determinants, inverses and singular matrices, carry over to 3×3 and beyond, where computers do the arithmetic using methods such as Gaussian elimination. Try a few of your own matrices in the matrix calculator and check each inverse by multiplying it back.

A useful habit is to compute the determinant first. If it is zero, stop: there is no inverse, and a system built on that matrix has either no solution or infinitely many. If it is very small compared with the entries, expect rounding to matter, and keep extra decimal places in your working so the final answer stays accurate.

Related calculators:

Sources

MIT OpenCourseWare 18.06: Linear Algebra.

Formula and method

det = a11·a22 − a12·a21. Inverse = (1/det) × [[a22, −a12], [−a21, a11]] when |det| is not tiny relative to the entries. Scale multiplies each entry.

Singular or near-singular matrices (relative tolerance 1e-12) are reported as singular instead of giving huge, unstable inverses.

Questions about this calculator

What is the determinant of [1 2; 3 4]?

−2.

When does a matrix have no inverse?

When its determinant is 0.

What sizes are supported?

2×2 only.

How do I check an inverse?

Multiply it by the original; you should get the identity.

Can it multiply two matrices?

No, only scalar multiples.

Check the assumptions and units before relying on a result. Financial, tax and health estimates do not replace advice for your individual circumstances.

Report a calculation issue