Matrix Calculator
Add, subtract, multiply, transpose, invert, or find the determinant of a matrix — with the working shown, not just the answer.
Last updated
Matrix A
Matrix B
Operation
About this tool
Enter values into Matrix A and/or Matrix B (resize either one from 2×2 up to 6×6 using the row/column selectors), then pick an operation. Addition, subtraction, and multiplication use both matrices; transpose, determinant, and inverse each act on whichever single matrix you choose. The identity-fill button is a quick way to set a matrix to the identity matrix — useful as a starting point or for checking A × A⁻¹ = I.
Determinant and inverse are both computed with row reduction (Gaussian / Gauss-Jordan elimination with partial pivoting), and every row operation performed along the way is shown underneath the result — the same method taught in most linear algebra courses, rather than just a black-box answer. Dimension mismatches, non-square matrices, and singular (non-invertible) matrices are all caught and explained rather than silently failing.
Everything runs as JavaScript in your browser tab — nothing you enter is sent anywhere.