Matrix Calculator
Perform matrix operations: add, subtract, multiply, determinant, inverse, and more
Matrix A
Matrix B
Matrix Operations Reference
Addition/Subtraction
Matrices must have the same dimensions. Elements are added/subtracted position by position.
Multiplication
Columns of A must equal rows of B. Result has rows of A and columns of B.
Determinant
Only for square matrices. Used to check if a matrix is invertible (det != 0).
Inverse
Only for square matrices with non-zero determinant. A × A⁻¹ = I.
Transpose
Rows become columns and columns become rows. Works for any matrix.
Scalar Multiply
Each element of the matrix is multiplied by the scalar value.