Matrix Calculator
Use this matrix calculator for addition, subtraction, multiplication, determinant, transpose, inverse and reduced row echelon form. Enter rows on separate lines and separate matrix values with spaces or commas. All calculations run directly in your browser.
Result
How to use the Matrix Calculator
- Enter Matrix A using one row per line.
- For binary operations such as multiplication, addition or subtraction, enter Matrix B as well.
- Choose the matrix operation.
- The calculator checks the required matrix dimensions before calculating.
- For determinant and inverse operations, Matrix A must be square.
- RREF uses row operations to transform the matrix into reduced row echelon form.
Examples
Multiply two 2 × 2 matrices
For A = [[1,2],[3,4]] and B = [[5,6],[7,8]], the product A × B is [[19,22],[43,50]].
Determinant
The determinant of [[1,2],[3,4]] is −2.
Inverse
A square matrix has an inverse only when its determinant is nonzero.
Frequently asked questions
When can two matrices be multiplied?
Matrix A can multiply Matrix B when the number of columns in A equals the number of rows in B.
When does a matrix have an inverse?
A matrix must be square and nonsingular. Equivalently, its determinant must be nonzero.
What is RREF?
Reduced row echelon form is a standardized form produced by elementary row operations. It is useful when solving systems of linear equations and analyzing matrix rank.
Does matrix multiplication commute?
No. In general A × B is not equal to B × A, and one ordering may be defined while the other is not.
More graphing & advanced math tools
Scientific Calculator
PopularAdvanced calculator for trig, logs, roots, powers, factorials and more.
Open tool →Quadratic Formula Calculator
PopularSolve quadratic equations and find real or complex roots.
Open tool →Standard Deviation Calculator
PopularCalculate population or sample standard deviation, variance and mean.
Open tool →Graphing Calculator
PopularGraph functions, trace points, view tables and analyze equations.
Open tool →Logarithm Calculator
PopularCalculate log base 10, natural log, base 2 or a custom logarithm base.
Open tool →TI-84 Online Alternative
PopularFree browser graphing calculator for common TI-84-style graphing, tables and scientific math tasks.
Open tool →