Matrix Calculator
Performs matrix arithmetic. Write the operation on the first line, then the matrix, one row per line with values separated by commas or spaces. For add, subtract, and multiply, separate the two matrices with a line containing "===".
Performs matrix arithmetic. Write the operation on the first line, then the matrix, one row per line with values separated by commas or spaces. For add, subtract, and multiply, separate the two matrices with a line containing "===".
Operations are add, subtract, multiply, transpose, determinant, and inverse. Matrices are limited to 20 by 20.
Use cases
- Checking a matrix multiplication or determinant by hand
- Finding the inverse needed to solve a system of equations
Examples
Multiplying two matrices
multiply 1, 2 3, 4 === 5, 6 7, 8
{"operation": "multiply", "rows": 2, "columns": 2, "result": [[19.0, 22.0], [43.0, 50.0]]}FAQ
Is my data sent to a server?
Yes — the calculation runs on the server for this tool.
Why does multiplication fail with a size error?
The first matrix's column count must equal the second's row count. A 2 by 3 matrix can multiply a 3 by 4 one, giving a 2 by 4 result.
Why does my matrix have no inverse?
Its determinant is zero, meaning its rows are not independent. Such a matrix is singular and cannot be inverted.
How exact are the results?
Elimination is done in floating point with partial pivoting to limit rounding error, and results are rounded to ten decimal places.