Matrix Calculator

Perform matrix operations including addition, multiplication, transpose, determinant, inverse, and RREF with detailed step-by-step solutions.

Matrix Operation

Choose operation and configure matrices

Matrix Input

Matrix A (2×2)
Matrix B (2×2)

Matrix Operations

Addition & Subtraction

Performed element-wise. Matrices must have identical dimensions. Addition is commutative and associative.

(A + B)[i,j] = A[i,j] + B[i,j]

Multiplication

Columns of first matrix must equal rows of second matrix. Generally not commutative but is associative.

(A × B)[i,j] = Σ A[i,k] × B[k,j]

Transpose

Flips matrix along main diagonal. Rows become columns and vice versa. Transpose of transpose returns original matrix.

(A^T)[i,j] = A[j,i]

Determinant

A scalar value that encodes certain properties of a square matrix. Zero determinant means matrix is singular (not invertible).

2×2: det(A) = ad - bc
Larger matrices: Use cofactor expansion or elimination