Matrix Calculator
Add, subtract, multiply, transpose matrices up to 5×5, or find the determinant of a square matrix — instant results as you type.
836 views
Matrix Operations, Instantly
Pick the size of Matrix A (and Matrix B for addition, subtraction and multiplication), type the values, and choose an operation. Addition and subtraction require matching dimensions; multiplication requires A's column count to match B's row count. The determinant and transpose only need Matrix A.
The determinant is computed by recursive cofactor expansion, which is exact for any size up to 5×5 supported here.
Frequently Asked Questions
Why can't I multiply my matrices?
Matrix multiplication A×B requires the number of columns in A to equal the number of rows in B. Resize one of the matrices so the dimensions line up.
Does the determinant work for non-square matrices?
No — a determinant is only defined for square matrices (same number of rows and columns). Resize Matrix A to a square shape first.
What size matrices are supported?
Up to 5×5 for both matrices — large enough for most coursework and quick checks, small enough to stay exact and instant in the browser.
Similar Tools
Report a Problem
Matrix Calculator