Tools/🧮 Calculators/Matrix Calculator

Matrix Calculator

Add, subtract, and multiply matrices or calculate determinant, inverse, transpose, rank, and trace.

Version 1.0 · Last Updated: August 10, 2026 · Maintained by ToolLarder

Matrix Operation
Matrix A
×
+
Matrix B
×

Matrices A and B must have equal dimensions for addition.

Result · A + B
Enter matrix values and calculate an operation.

Online matrix calculations and linear algebra operations

Enter matrices from 1×1 to 6×6 and perform common matrix operations in one place. The calculator checks dimension compatibility and displays results in your local number format.

Matrix addition and subtraction

Add or subtract corresponding entries of two matrices with equal row and column counts.

(A ± B)ᵢⱼ = aᵢⱼ ± bᵢⱼ

Matrix multiplication

When the columns of A equal the rows of B, each output entry is a row-column dot product.

(AB)ᵢⱼ = Σ aᵢₖbₖⱼ

Determinant calculator

Compute the determinant of a square matrix using elimination with pivoting; a zero determinant indicates a singular matrix.

det(A)

Inverse matrix calculator

Find the inverse of a nonsingular square matrix with Gauss-Jordan elimination.

A × A⁻¹ = I

Matrix transpose

Swap rows and columns to convert an m×n matrix into an n×m matrix.

(Aᵀ)ᵢⱼ = Aⱼᵢ

Matrix rank calculator

The number of nonzero rows in row-echelon form gives the rank of a matrix.

rank(A)

Matrix trace calculator

Add the entries on the main diagonal of a square matrix to find its trace.

tr(A) = Σ aᵢᵢ

Matrix Calculator Frequently Asked Questions