Matrix Calculator

Perform various matrix operations including addition, multiplication, determinant, inverse, and more.

Matrix A

Matrix B

Result

Select an operation above to see the result here.

Understanding Matrix Operations

Matrix Addition/Subtraction

Matrices must have the same dimensions. Operations are performed element by element.

Matrix Multiplication

Number of columns in first matrix must equal number of rows in second matrix. Result dimensions will be (m×p) for (m×n) × (n×p) matrices.

Determinant

Only square matrices have determinants. The determinant is a special number that can tell us important information about the matrix.

Matrix Inverse

Only square matrices with non-zero determinant have inverses. A⁻¹A = AA⁻¹ = I (identity matrix).