Up to 4×4 matrices

Matrix Calculator

Fill in matrix A and matrix B, then add, subtract, multiply, transpose, invert or find a determinant instantly.

Matrix A

Matrix B

Result

How it works

1

Set matrix sizes

Choose the row and column count for matrix A and matrix B independently, from 1×1 up to 4×4.

2

Fill in the values

Type each entry directly into the grid — every cell updates the result live.

3

Pick an operation

Add, subtract or multiply A and B, or transpose, invert or find the determinant of A alone.

FAQ

Why can't I add two matrices?

Matrix addition and subtraction require both matrices to have exactly the same number of rows and columns. Resize matrix B to match matrix A to enable this operation.

Why can't I multiply two matrices?

Matrix multiplication A × B is only defined when the number of columns in A equals the number of rows in B. Adjust the dimensions so they line up.

Why does a matrix have no inverse?

Only square matrices with a non-zero determinant have an inverse. A matrix with a zero determinant is called singular and cannot be inverted.

Try other tools