What the Matrix Calculator does
The Matrix Calculator works with square matrices of size 2 × 2, 3 × 3 and 4 × 4. Add or subtract two matrices, multiply them, multiply a matrix by a number, transpose it, or find its determinant and inverse. Matrices are used to solve systems of equations, transform shapes in graphics, and in statistics and engineering, and these are the operations taught in school and first-year college maths.
How to use it
- Choose the size.
- Choose the operation.
- Fill in matrix A, and matrix B if the operation needs it.
- Read the result and copy it if you need it elsewhere.
Example
Multiplying [[1, 2], [3, 4]] by [[8, 7], [6, 5]] gives [[20, 17], [48, 41]]: the top-left entry is 1 × 8 + 2 × 6 = 20. The determinant of [[1, 2], [3, 4]] is 1 × 4 − 2 × 3 = −2, and its inverse is [[−2, 1], [1.5, −0.5]].
Determinants and inverses
For a 2 × 2 matrix [[a, b], [c, d]], the determinant is ad − bc, and the inverse is 1 ÷ (ad − bc) times [[d, −b], [−c, a]]. A matrix whose determinant is zero has no inverse; it squashes space flat, so the change cannot be undone.
Matrix multiplication is not commutative: A × B is usually different from B × A. Each entry of the product is a row of A multiplied term by term with a column of B and added up.
Questions people ask
Is anything I enter sent anywhere?
No. The calculator works entirely in your browser, so your numbers stay on your device.
Why are some answers like 1.4999999?
They are not: results are rounded to 6 decimal places, so you see 1.5. Inverses are worked out with decimals, so very small rounding differences are hidden.
Can I multiply matrices of different sizes?
In general you can multiply an m × n matrix by an n × p one, but this calculator works with square matrices of the same size, which covers most school and exam questions.