Matrix addition and subtraction
Add or subtract corresponding entries of two matrices with equal row and column counts.
(A ± B)ᵢⱼ = aᵢⱼ ± bᵢⱼ
Add, subtract, and multiply matrices or calculate determinant, inverse, transpose, rank, and trace.
Version 1.0 · Last Updated: August 10, 2026 · Maintained by ToolLarder
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.
Add or subtract corresponding entries of two matrices with equal row and column counts.
(A ± B)ᵢⱼ = aᵢⱼ ± bᵢⱼ
When the columns of A equal the rows of B, each output entry is a row-column dot product.
(AB)ᵢⱼ = Σ aᵢₖbₖⱼ
Compute the determinant of a square matrix using elimination with pivoting; a zero determinant indicates a singular matrix.
det(A)
Find the inverse of a nonsingular square matrix with Gauss-Jordan elimination.
A × A⁻¹ = I
Swap rows and columns to convert an m×n matrix into an n×m matrix.
(Aᵀ)ᵢⱼ = Aⱼᵢ
The number of nonzero rows in row-echelon form gives the rank of a matrix.
rank(A)
Add the entries on the main diagonal of a square matrix to find its trace.
tr(A) = Σ aᵢᵢ