Matrix Calculator
Type matrix A, and B if needed, one row per line, then choose what to calculate. Results are exact fractions or decimals.
Use the tool
Loading the tool…
About Matrix Calculator
Work with matrices, which are grids of numbers. Enter one row per line, with the entries separated by spaces. Choose what to calculate: add, subtract or multiply two matrices, solve a system, or raise a matrix to a power. Choose whether to see exact fractions or decimals to 10 places.
Worked example
Enter matrix A as `1 2` and `3 4`, and matrix B as `5 6` and `7 8`. Choose to multiply A by B.
Limits
Some operations need matrices of matching sizes, or a matrix that can be inverted. If a calculation cannot be done, check the message the tool shows. Check the result for important work.
How to use Matrix Calculator
- Type matrix A with one row per line.
- Add matrix B if the operation needs it.
- Choose the operation.
- Read the result and copy it.
Good to know
- Entries can be whole numbers, decimals such as 0.5, or fractions such as 1/3.
- To multiply, the columns of A must equal the rows of B.
- A matrix has an inverse only when its determinant is not zero.
- To solve A x = b, enter b as a single column in B.
Frequently asked questions
Why is there no inverse?
The determinant is zero, so the rows are not independent.
What is the rank?
It is the number of independent rows. A full-rank square matrix has an inverse.
Are the answers rounded?
No. Fractions stay exact. Choose decimals to see 10 places.