Free Online Matrix Calculator
Add, Multiply, Transpose & Invert Matrices
Need to use Matrix Calculator right now?
Matrices are the backbone of linear algebra, appearing everywhere from computer graphics transformations to solving systems of equations to machine learning — but even simple operations like matrix multiplication or finding an inverse involve enough bookkeeping that manual calculation is slow and error-prone, especially for anything larger than 2×2.
Matrix A
Matrix B
Result
Features
- Runs entirely in your browser
- Privacy-first — your data is never uploaded
- Real-time, instant results
- 100% free, no sign-up required
- Works on desktop, tablet, and mobile
- No installation needed
Who uses this tool?
About Matrix Calculator
Matrices are the backbone of linear algebra, appearing everywhere from computer graphics transformations to solving systems of equations to machine learning — but even simple operations like matrix multiplication or finding an inverse involve enough bookkeeping that manual calculation is slow and error-prone, especially for anything larger than 2×2.
This tool supports 2×2, 3×3, and 4×4 matrices and computes addition, subtraction, multiplication, transpose, determinant, and matrix inverse. Determinant and inverse use Gaussian elimination with partial pivoting, a numerically stable technique that works correctly for any invertible matrix of these sizes, verified against standard textbook reference examples.
A matrix's determinant tells you immediately whether it has an inverse at all — a determinant of zero means the matrix is 'singular' and has no inverse, which this tool detects and reports clearly rather than producing a meaningless result. For invertible matrices, the inverse is exactly what's needed to solve systems of linear equations or reverse a transformation.
This is useful for linear algebra coursework and homework verification, computer graphics and game development transformation calculations, checking hand-computed matrix operations, and any application (economics, engineering, computer science) that models relationships as matrices.
How it works
- Choose a matrix size. 2×2, 3×3, or 4×4.
- Choose an operation. Add, subtract, multiply, transpose, determinant, or inverse.
- Enter values and see the result. The result updates automatically as you type.
Examples
Multiplying two 2×2 matrices
Input
[[1,2],[3,4]] × [[5,6],[7,8]]
Output
[[19,22],[43,50]]
Finding a 2×2 determinant
Input
[[4,7],[2,6]]
Output
10