How to add, multiply, transpose, and invert a matrix
Matrix arithmetic has a handful of rules that are easy to state and easy to get wrong under time pressure: addition needs identical shapes, multiplication needs the inner dimensions to agree, and only a square matrix with a non-zero determinant has an inverse.
This calculator enforces all of those and tells you which one you broke. Resize each matrix, type the numbers, then hit an operation. Everything runs in the browser and the result can be copied as tab-separated rows for pasting into a spreadsheet.
- Set the size of matrix A, from 1x1 up to 6x6, and fill in the cells.
- Set the size of matrix B if you plan to use a binary operation.
- Click A + B, A - B, or A x B for a two-matrix operation, or Transpose A, det(A), or Inverse A for a single one.
- Read the result grid, or the error explaining why the shapes do not allow it.
- Click Copy result to get the answer as tab-separated rows.