EasyConvert

Matrix Calculator

Add, subtract and multiply 2×2 and 3×3 matrices, and find the determinant. Type the numbers into the two grids, pick an operation, and the result appears with the working shown. Matrices are used in computer graphics, engineering, physics and solving systems of equations.

…

How to use this converter

Choose the size (2×2 or 3×3) and the operation (add, subtract, multiply, or determinant of the first matrix). Fill in the numbers and the result appears with the working.

Formula

Addition: (A+B)ᵢⱼ = Aᵢⱼ + Bᵢⱼ. Multiplication: (AB)ᵢⱼ = row i of A · column j of B. Determinant 2×2: |a b; c d| = ad − bc. Determinant 3×3: a(ei − fh) − b(di − fg) + c(dh − eg).

Adding matrices is simple — add the matching entries. Multiplying is the interesting one: each entry of the answer is the dot product of a row from the first matrix and a column from the second. The determinant is a single number that tells you whether a matrix can be inverted: if it is zero, the matrix has no inverse.

Matrix examples

FromEquals
det of [1 2; 3 4]1×4 − 2×3 = −2
det of [2 0; 0 2]4
[1 2; 3 4] + [5 6; 7 8][6 8; 10 12]
[1 2; 3 4] × [2 0; 1 2][4 4; 10 8]
det of identity 3×31
det of zero matrix0

Frequently asked questions

How do I multiply two matrices?

Multiply each row of the first matrix by each column of the second: the entry in row i, column j is the dot product of row i and column j. For 2×2 matrices the calculator above shows every step.

What is a determinant?

A single number worked out from a square matrix. For a 2×2 matrix [a b; c d] it is ad − bc. If the determinant is zero, the matrix cannot be inverted.

Can I multiply a 2×3 matrix by a 3×2 matrix?

In general, yes — the inner sizes must match (columns of the first = rows of the second). This calculator handles 2×2 and 3×3 square matrices only.

What are matrices used for?

Computer graphics (rotating and moving 3D objects), engineering, physics, statistics, and solving systems of linear equations — anywhere several related numbers change together.

What does a zero determinant mean?

The matrix has no inverse — it squashes space flat, so information is lost. A system of equations built from it has either no solution or infinitely many.