Math tool
Matrix Calculator
Set the size, fill in both matrices, then add, subtract, or multiply.
About the Matrix Calculator
The Matrix Calculator adds, subtracts and multiplies two matrices of any size you set. It is useful for students learning linear algebra and for checking homework.
Addition and subtraction require two matrices of the same size, and each pair of corresponding entries is combined. Multiplication A × B requires the number of columns of A to equal the number of rows of B, and the result has the rows of A and the columns of B. Matrix multiplication is not commutative, so A × B is generally different from B × A.
How to use it
- Set the rows and columns and press Apply size.
- Enter the values for Matrix A and Matrix B.
- Press A + B, A − B or A × B.
- Read the result matrix.
Tips and good to know
- If the tool reports a size error, check the dimensions.
- Use decimals or fractions converted to decimals.
- Check small examples by hand first.
Frequently asked questions
Why can't I multiply my matrices?
The inner dimensions must match.
Does it find determinants?
This tool covers addition, subtraction and multiplication.
How large can matrices be?
Small to medium sizes work best.