Working with grids of numbers
A matrix is a rectangular grid of numbers. Matrices describe systems of equations, transformations in graphics, networks and data tables, and they are a staple of engineering and computer science courses.
Enter a matrix with one row per line and this calculator can add, subtract and multiply matrices, multiply by a number, and find the transpose, determinant, inverse, rank, trace and any whole power. Sizes up to 8 × 8 are supported.
How it is calculated
Worked example
A = [[1, 2], [3, 4]]
- Determinant
- −2
- Trace (1 + 4)
- 5
- Invertible?
- Yes, because the determinant is not zero
Size rules
- Add or subtract matrices only if they have the same size.
- To multiply A × B, the number of columns of A must equal the number of rows of B.
- Only square matrices have a determinant, an inverse or a power.
- Matrix multiplication is not commutative: A × B is usually different from B × A.

