Matrix Calculator

Perform basic matrix operations like addition, multiplication, determinant, and inverse.

Matrix A

Matrix B

Matrix Operations

A matrix is a rectangular array of numbers arranged in rows and columns. This calculator supports basic linear algebra operations.

Matrix Addition & Subtraction

Two matrices can be added or subtracted only if they have the same dimensions. The operation is performed element-wise.

Matrix Multiplication

To multiply matrix A (m × n) by matrix B (n × p), the number of columns in A must equal the number of rows in B. The resulting matrix will have dimensions (m × p).

Determinant & Inverse

The determinant is a scalar value that can be computed from the elements of a square matrix. It provides important properties of the matrix, such as invertibility.

The inverse of a matrix A is denoted as A-1, where A × A-1 = I (Identity Matrix). Only square matrices with a non-zero determinant have an inverse.