Matrix Calculator
Add, subtract, multiply, transpose, determinant, and inverse — up to 4×4.
About Matrix Operations
A matrix is a rectangular array of numbers arranged in rows and columns, fundamental to linear algebra and widely used in physics, engineering, computer graphics, machine learning, and economics. This calculator supports the most common matrix operations: addition and subtraction (require identical dimensions), matrix multiplication (where the number of columns in A must equal the number of rows in B), transpose (flipping rows and columns), scalar multiplication, determinant (for square matrices), and matrix inverse (for non-singular square matrices).
The determinant of a matrix is a scalar value used to assess whether a matrix is invertible (non-zero determinant) and appears in solving systems of linear equations via Cramer's rule. The inverse of matrix A is the matrix A⁻¹ such that A × A⁻¹ = I (the identity matrix). All calculations run locally in your browser using exact arithmetic.
How to Use
- Select an operation from the row of buttons (A+B, A−B, A×B, transpose, determinant, inverse, or scalar multiply).
- Set the row and column dimensions for each matrix using the dropdowns, then fill in the cell values.
- Click ✨ Calculate to see the result matrix (or scalar for determinant).
- Use ⿻ Copy Result to copy the output to your clipboard.