Matrix Calculator

Perform matrix operations online: addition, subtraction, multiplication, transpose, and determinant. Enter rows separated by newlines, values by spaces.

enter matrices
Operation
Matrix A
Matrix B (for A±B, A×B)
Result (click to copy)

Frequently Asked Questions

How do I enter a matrix?
Enter each row on a new line, with values separated by spaces or commas. Example: a 2×3 matrix would be entered as two lines with 3 values each: '1 2 3' on line 1, '4 5 6' on line 2.
When can I multiply two matrices?
Matrix multiplication A×B is only possible when the number of columns in A equals the number of rows in B. A 2×3 matrix can multiply a 3×4 matrix (result: 2×4). Matrix multiplication is not commutative — A×B ≠ B×A in general.
What is a determinant?
The determinant is a scalar value calculated from a square matrix. It tells you if the matrix is invertible (non-zero determinant) or singular (zero determinant). Used in solving systems of equations, finding area/volume, and linear algebra.