Matrix Calculator
Matrix Calculator
Add, subtract, and multiply 2 by 2 or 3 by 3 matrices, and find the determinant, inverse, and transpose of a matrix.
Matrix A
Matrix B
Add, Subtract, and Multiply use both Matrix A and Matrix B. Determinant, Inverse, and Transpose use Matrix A only.
Result
Enter your matrices and choose an operation to see the result here.
About the Matrix Calculator
A matrix math calculator takes the routine arithmetic of linear algebra off your hands. This one works with 2 by 2 and 3 by 3 matrices: type numbers into Matrix A and Matrix B, pick an operation, and the result appears as a plain matrix you can read and copy.
Add, subtract, and multiply use both matrices. Determinant, inverse, and transpose use Matrix A only. If a matrix has no inverse because its determinant is 0, the tool says so plainly instead of dividing by zero, and if a cell is left empty it asks you to fill it in before calculating.
It is built for students checking linear algebra homework, and for anyone who needs a quick matrix result without opening a spreadsheet or a maths package. The Load sample button fills in two example matrices so you can try each operation before entering your own numbers.
How to use
- Choose 2 by 2 or 3 by 3 as the matrix size.
- Type numbers into the cells of Matrix A and, for two-matrix operations, Matrix B. Or select Load sample to fill in example matrices.
- Select A + B, A – B, or A x B, or choose Determinant of A, Inverse of A, or Transpose of A.
- Read the result below the buttons, or select Copy result to copy it. Clear empties both grids to start again.
Key features
- 2 by 2 and 3 by 3 matrices
- Add, subtract, and multiply two matrices
- Determinant for 2 by 2 and 3 by 3 matrices
- Inverse for 2 by 2 and 3 by 3 matrices using the adjugate method
- Transpose of Matrix A
- Load sample button with example matrices
- Clear error for singular matrices with no inverse
- Copy button for the result
Common uses
- Checking linear algebra homework answers
- Working out a determinant before deciding whether a matrix can be inverted
- Trying out matrix multiplication by hand and comparing results
- Quick matrix arithmetic for computer graphics or data work
Frequently asked questions
2 by 2 and 3 by 3 only. Larger matrices are not supported, and both matrices always use the size you select.
A matrix has no inverse when its determinant is 0. Such a matrix is called singular. The tool shows that message instead of dividing by zero.
Yes. Both matrices use the size you selected, so they always match for addition, subtraction, and multiplication.
Only addition, subtraction, and multiplication use Matrix B. Determinant, inverse, and transpose use Matrix A only, so Matrix B can stay empty for those.
The transpose flips a matrix over its diagonal, so rows become columns and columns become rows. The value in row 1, column 2 moves to row 2, column 1.
Choose 2 by 2 or 3 by 3 as the matrix size, type numbers into the cells of Matrix A and, for two-matrix operations, Matrix B, then pick an operation. Read the result below the buttons, or use Copy result to copy it, and Clear empties both grids to start again.
The tool asks you to fill in the empty cell before it calculates, instead of guessing a value for you. Fill in every cell of the matrices you are using, then run the operation again.
Load sample fills in two example matrices so you can try each operation before entering your own numbers. It is a quick way to see how the tool works and what each operation does.
Yes, you can type decimal and negative numbers into the cells, just like whole numbers. The calculator works with the values exactly as you enter them.
Yes, select Copy result to copy the result matrix, then paste it into your homework, notes, or document. The result is shown as a plain matrix that is easy to read and copy.
