Matrix

Add, subtract, multiply, determinant, and inverse for 2×2 matrices.

Operation
First matrix
Second matrix

These are 2×2 matrices. Determinant and inverse use only the first matrix. A determinant of 0 has no inverse.

Fill in the matrix entries.

How a 2×2 matrix is calculated

Choose an operation and enter the entries. Add, subtract, and multiply use both matrices. Determinant and inverse use only the first.

The determinant is the product of the main diagonal minus the product of the other diagonal. If that value is 0, the matrix has no inverse. The result matrix is written as row 1, then a semicolon, then row 2.

How to use this calculator

  1. Choose add, subtract, multiply, determinant, or inverse.
  2. Enter the first matrix. Enter the second matrix when the operation uses it.
  3. Read the result. The rows below list each entry, or the absolute value of the determinant.

Determinant

The first matrix has entries a and b on row 1, and c and d on row 2.

Main diagonal minus the other diagonal
|A|=ad−bc

The inverse exists only when this value is not 0. It is 1 divided by that value, times the matrix with d and a on the main diagonal and the signs of b and c flipped.

Source

Addition, multiplication, and the determinant of a matrix are defined on the Wikipedia page on matrices.

Worked examples

Example: add

[[1, 2], [3, 4]] + [[5, 6], [7, 8]] = [[6, 8], [10, 12]].

Example: multiply

The same two matrices multiply to [[19, 22], [43, 50]].

What to keep in mind

Each entry can be a number from −1,000,000 to 1,000,000, including decimals. Subtracting the same pair gives [[−4, −4], [−4, −4]]. The determinant of [[1, 2], [3, 4]] is −2. Its inverse is [[−2, 1], [1.5, −0.5]]. [[1, 2], [2, 4]] has determinant 0 and no inverse. A completed result, including the entries you use, can be stored in this browser’s local history and never leaves your device. Clear it with the history Clear action or by clearing site data.

Common questions about 2×2 matrices

What is [[1, 2], [3, 4]] plus [[5, 6], [7, 8]]?

[[6, 8], [10, 12]].

What is the product of those two matrices?

[[19, 22], [43, 50]].

What is their difference?

[[−4, −4], [−4, −4]].

What is the determinant and inverse of [[1, 2], [3, 4]]?

The determinant is −2. The inverse is [[−2, 1], [1.5, −0.5]].

When is there no inverse?

When the determinant is 0. [[1, 2], [2, 4]] has no inverse.

Does this calculator store my entries?

A completed result can be saved in this browser’s local history, including the entries you use. It stays on your device and is not sent to our servers or to analytics. Clear it with the history Clear action or by clearing site data.