Matrix Calculator
Name your matrices, then type the whole expression, such as 2AᵀB⁻¹ + I. Get an exact answer, every operation in order, and the properties of the result.
Matrices
Each tab's name is a variable you can use below. Add up to six, from A to F, each up to 12×12.
Up to 12 rows and 12 columns.
Use integers, decimals, or fractions such as 1/3. Paste rows from a spreadsheet or a Python list into any cell.
Expression
Write products by putting names side by side: 2AB. You can use + − * / ^, A^T or A', A^-1, A^3, I, and det, tr, rank, inv, rref, and transpose.
Result
Updates as you type.
Properties of this result
- Size
- 2 × 2
How to write an expression
Each tab's name is a variable. Put names side by side to multiply, as you would on paper, and let the calculator apply the usual order: powers and transposes first, then products, then sums.
Above, type that as 2A^T B^-1 + I. A^T or A' is the transpose, which the Matrix Transpose Calculator covers, and A^-1 is the inverse, which the Matrix Inverse Calculator works out in full. I is the identity, and it takes its size from the matrix beside it. The functions are det, tr, rank, inv, rref, and transpose, so det(A)A^-1 is a valid expression.
Just below the box, the expression is shown as it was read, so you can check that an implied product or a parenthesis did what you meant.
Matrix algebra isn't number algebra
Most of the rules you know carry over, but a few don't, and these are behind most mistakes:
- Order matters. In general, , as the example shows. Only one of them may even be defined. The Matrix Multiplication Calculator shows each product entry by entry.
- Transposes and inverses reverse a product: and .
- There's no division. Multiply by an inverse instead, on the correct side: and differ.
- A number can't be added to a matrix. To add 2 along the diagonal, write .
- doesn't mean or is 0.
What the properties tell you
Below a matrix result are the facts about it that come up most, each with a link to the page that explains it. The determinant is 0 exactly when the matrix has no inverse, and the Determinant Calculator shows why. The rank counts its independent rows, which the Matrix Rank Calculator finds by reducing it. The trace is the sum of its diagonal, and that's also the sum of its eigenvalues, which the Eigenvalue and Eigenvector Calculator finds.
Related calculators
See any one operation worked out in full.
Matrix Multiplication Calculator
Multiply two to four matrices with exact fractions, entry-by-entry explanations, and Python list import and export.
Matrix Inverse Calculator
Invert a square matrix with exact fractions, step through [A | I] to [I | A⁻¹], and see the inverse undo the transformation.
Determinant Calculator
Find the determinant of a square matrix with exact fractions, drag a live area picture, and step through elimination or cofactor expansion.
Matrix Transpose Calculator
Transpose matrices up to 12×12 in exact fractions, watch rows become columns, and check whether a matrix is symmetric or skew-symmetric.
Matrix Power Calculator
Raise a square matrix to any whole power, including negative ones, in exact fractions. See repeated squaring step by step and where repeated application leads.
RREF Calculator
Row reduce any matrix with exact fractions, step through every row operation, and practice Gaussian elimination.