Matrix Calculator
Choose 2x2 or 3x3 matrices, fill in the entries of A and B, pick an operation, and get the exact result.
Matrix Dimensions & Operations
Matrix Solution
What is a matrix?
A matrix is a rectangular grid of numbers arranged in rows and columns. A 2x2 matrix has two rows and two columns. Matrices are the building blocks of linear algebra, used to solve systems of equations, transform coordinates in graphics, and represent data in machine learning.
Matrix addition and subtraction work entry by entry: add (or subtract) the numbers in matching positions. Multiplication is different: each entry of the product is the sum of row-times-column products, so the matrices must have compatible sizes.
Determinants and inverses
The determinant is a single number computed from a square matrix that tells you about scaling and invertibility. A determinant of zero means the matrix is singular and has no inverse.
The inverse of a matrix is the matrix that, when multiplied by the original, gives the identity matrix. Inverses solve matrix equations the way division solves ordinary equations. The calculator finds 2x2 and 3x3 inverses with cofactor expansion.
How to use this calculator
- Choose 2 x 2 or 3 x 3 from the size dropdown.
- Enter the entries of matrix A and matrix B.
- Pick an operation and press Calculate.
- Read the resulting matrix or the scalar value (determinant).
Pro tips
- For A × B, the number of columns of A must equal the rows of B — the calculator uses square matrices so this always holds.
- Check a determinant of 0 before trying to invert: the matrix is singular.
- Multiplying a matrix by its inverse gives the identity matrix — a quick way to verify.
Advantages & considerations
✅ Advantages
- All core matrix operations in one tool
- 2x2 and 3x3 support
- Detects singular matrices before inverting
⚠️ Considerations
- Limited to 2x2 and 3x3 sizes
- Matrix entries are numeric only