Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
A matrix is a grid of numbers used throughout linear algebra, computer graphics, and engineering — combined using operations like addition, multiplication, and the determinant.
This calculator performs all the core operations on matrices up to 4×4 and shows the full working for each one, with matrices rendered as real matrices rather than plain numbers.
How it works
Choose an operation — addition, subtraction, multiplication, scalar multiplication, transpose, determinant, or inverse — pick the size of matrix A (and matrix B, if the operation needs one), fill in the grid of values, and calculate. The tool applies the matching formula element by element and shows the full working.
- Choose an operation — addition, subtraction, multiplication, scalar multiplication, transpose, determinant, or inverse.
- Pick the size of Matrix A (and Matrix B, if the operation needs one).
- Fill in each cell of the matrix grid.
- Click Calculate to see the result and the full step-by-step solution.
Examples
Adding two matrices
Adding [[1,2],[3,4]] and [[5,6],[7,8]] gives [[6,8],[10,12]] — each position is added to the matching position in the other matrix.
Finding a determinant
For matrix [[4,3],[6,8]], the determinant is (4×8) − (3×6) = 32 − 18 = 14.
Finding an inverse
The inverse of A is found by dividing the adjugate of A by det(A) — it only exists when the determinant is nonzero.
Who should use it
- Checking a linear algebra homework answer.
- Verifying a transformation matrix used in computer graphics or engineering calculations.
- Finding the inverse of a matrix for solving a system of linear equations.
Industry applications
- Linear algebra and engineering education
- Computer graphics and physics simulations
Advantages
- Covers all seven core matrix operations, including scalar multiplication and inverse, in one tool.
- Supports any matrix size from 1×1 up to 4×4, not just a fixed 2×2 grid.
- Shows the full row-by-column working for multiplication and cofactor expansion for the determinant and inverse, not just the final result.
Limitations
- Limited to 4×4 matrices — larger matrices require specialized linear algebra software.
Common mistakes to avoid
- Multiplying matrices position by position like addition, instead of using the row-by-column method matrix multiplication requires.
- Mixing up the row and column order when reading off a matrix's values.
- Trying to find the determinant or inverse of a non-square matrix — both operations only apply to square matrices.
Best practices
- Always double check which matrix (A or B) comes first in multiplication — unlike regular numbers, matrix multiplication is not commutative (AB does not usually equal BA).
- Check the determinant before attempting to invert a matrix — a zero determinant means no inverse exists.
Tips
- Remember that matrix multiplication order matters — AB and BA usually give different results, unlike multiplying ordinary numbers.
- For determinant and inverse, the rows and columns selectors stay locked together since only square matrices support these operations.