Matrix Calculator
Multiply, add and subtract matrices up to 6 × 6, plus determinant, inverse, transpose and powers, exactly.
Enter a matrix in the linear algebra solver below to find its determinant, inverse, reduced row echelon form, eigenvalues or the solution of a linear system, with the first steps shown right away. Or pick the calculator for your problem, including matrix products and dot and cross products of vectors. Every tool is free, works with 2 × 2, 3 × 3 and larger matrices up to 6 × 6, and keeps answers exact, so an inverse comes out as rather than 1.5.
Multiply, add and subtract matrices up to 6 × 6, plus determinant, inverse, transpose and powers, exactly.
Exact determinants of 2x2 to 6x6 matrices by row reduction or cofactor expansion, with every step.
Exact inverses of 2x2 to 6x6 matrices by Gauss–Jordan elimination, with every row operation and a check.
Reduced row echelon form or REF with each row operation, rank, nullity and linear system solutions.
Eigenvalues, eigenvectors and the characteristic polynomial of a 2x2, 3x3 or 4x4 matrix, with every step.
a × b with i, j, k determinant steps, magnitude, unit normal, angle and area, plus triple products.
Dot product, angle between vectors, magnitude, unit vector and projections of 2D to 6D vectors.
Find your task in the first column. Each Try link opens the calculator with that example already filled in, and the result column shows what it returns.
| Task | Example | Result | Calculator |
|---|---|---|---|
| Multiply, add or subtract matrices; transpose, powers, trace | Try this product | Matrix calculator | |
| Determinant of a square matrix | Try this determinant | −25 | Determinant calculator |
| Inverse of a square matrix | Try this inverse | Inverse matrix calculator | |
| Row reduce (RREF), rank, pivots, null space | Try this reduction | , rank 2 | RREF calculator |
| Solve a system of linear equations (Ax = b) | 2x + 3y = 7, x − y = 1 Try this system | x = 2, y = 1 | System of equations calculator |
| Eigenvalues and eigenvectors | Try these eigenvalues | λ = 6 and λ = 1 | Eigenvalue calculator |
| Dot product, angle, magnitude, unit vector, projection | (1, 2, 2) · (2, −1, 2) Try this angle | 4, angle ≈ 63.61° | Vector calculator |
| Cross product (i, j, k steps), triple products of 3 vectors | (1, 2, 2) × (2, −1, 2) Try this cross product | (6, 2, −5) | Cross product calculator |
The RREF calculator and the system of equations calculator both solve linear systems. Use the system calculator to type equations such as 2x + 3y = 7 directly, for 2 to 4 unknowns. Use the RREF calculator for an augmented matrix with up to 6 equations, or when you also need the rank and null space.
Linear algebra is the branch of mathematics that studies vectors, matrices and systems of linear equations, along with the linear transformations that map one vector space to another. A matrix stores the coefficients of a system or a transformation in a grid, and a vector is an ordered list of numbers, such as a point or a direction in space.
The core questions are the same ones these calculators answer. Does a system have a solution, and is it unique? Row reduction and the rank tell you. Can a transformation be undone? The determinant and the inverse tell you. Which directions does a matrix only stretch? Eigenvalues and eigenvectors tell you.
Every 2 × 2 matrix moves the points of the plane, and the determinant measures how much it scales area. The matrix sends the unit square to a parallelogram whose sides are the columns of A, (3, 1) and (1, 2). Its area is .
Linear algebra vs algebra: school algebra solves for single unknowns such as x in 3x + 5 = 20. Linear algebra handles many unknowns at once by writing the equations as one matrix equation, , and it studies the structure of those equations rather than one answer at a time.
These are the steps the calculators print for each example. Follow the link under each one to open the same problem, then change the entries to your own.
Find for .
Clear column 1
R2 → R2 − 2R1 gives row 2 = (0, 0, −5), and R3 → R3 − 3R1 gives row 3 = (0, −5, −7). Adding a multiple of one row to another does not change the determinant.
Swap rows 2 and 3
Row 2 now has a zero where the next pivot should be, so swap R2 ↔ R3. A row swap flips the sign of the determinant.
Multiply the diagonal
The matrix is now upper triangular with diagonal 1, −5, −5. Their product is 25, and the one swap makes it −25.
Find for .
Find the determinant
. It is not zero, so the inverse exists.
Swap and negate
Swap a and d and change the signs of b and c: .
Divide by the determinant
Dividing each entry by −2 gives . The calculator confirms this with Gauss–Jordan elimination and checks that .
Solve 2x + 3y = 7 and x − y = 1. The augmented matrix is , with the constants in the last column.
Make the first pivot 1
R1 → (1/2)R1 gives row 1 = (1, 3/2, 7/2).
Clear below the pivot
R2 → R2 − R1 gives row 2 = (0, −5/2, −5/2).
Make the second pivot 1
R2 → −(2/5)R2 gives row 2 = (0, 1, 1), so y = 1.
Clear above the pivot
R1 → R1 − (3/2)R2 gives row 1 = (1, 0, 2), so x = 2. The matrix is now in reduced row echelon form.
Find the eigenvalues of .
Write the characteristic polynomial
.
Find its roots
It factors as , so the eigenvalues are 6 and 1.
Find an eigenvector for each
For λ = 6, has rows (−1, 2) and (2, −4), which (2, 1) solves. For λ = 1, has rows (4, 2) and (2, 1), which (−1, 2) solves.
Check with the trace and determinant
The eigenvalues add to 7, the trace 5 + 2, and multiply to 6, the determinant 10 − 4.
Take a = (1, 2, 2) and b = (2, −1, 2).
Dot product
Multiply matching components and add: .
Angle between the vectors
Both have length , so and θ ≈ 63.61°.
Cross product
.
Check it is perpendicular
(6, 2, −5) · a = 6 + 4 − 10 = 0 and (6, 2, −5) · b = 12 − 2 − 10 = 0, as a cross product must be.
| Formula | Rule | Example |
|---|---|---|
| 2 × 2 determinant | ||
| 2 × 2 inverse | , when | See the worked example above |
| Matrix product | Entry (i, j) of AB is row i of A times column j of B | (1, 2) · (5, 7) = 19 |
| Product rule for determinants | ||
| Dot product | (1, 2, 2) · (2, −1, 2) = 4 | |
| Angle between vectors | , θ ≈ 63.61° | |
| Characteristic polynomial | ; its roots are the eigenvalues | |
| Rank–nullity theorem | rank + nullity = number of columns | Rank 2 + nullity 1 = 3 columns |
Matrix entries must be real numbers: whole numbers, decimals or fractions. There are no LU, QR or singular value decompositions, no Gram–Schmidt process and no dedicated Cramer’s rule tool yet. Eigenvalues are limited to 4 × 4 matrices, and the vector calculator accepts decimals but not fractions (the cross product calculator takes both). For how to type matrices and vectors, see how to enter a matrix in a calculator, and for how results are tested, see the methodology.
Every matrix entry you type, including decimals such as 0.25, is stored as an exact fraction. Results stay exact, with no rounding errors building up through row operations, and each one also shows its decimal value. Exact vs decimal answers explains why that matters.
You can paste a block of numbers copied from a spreadsheet straight into the grid. Rows and columns are detected from line breaks and tabs, and fractions such as 3/4 or mixed numbers such as 1 1/2 are accepted.
All of these linear algebra calculators are free, need no account and run in your browser, with every step shown and nothing locked. Results are checked against reference values by automated tests.
Yes. Every calculator here is free, needs no account and shows its working right away: each row operation for RREF and inverses, the expansion or elimination for determinants, the characteristic polynomial for eigenvalues and the component formula for vectors.
Up to 6 × 6 for products, determinants and inverses, and up to 6 × 7 for row reduction, so a system of 6 equations in 6 unknowns fits with its column of constants. Eigenvalues are supported up to 4 × 4, and vectors can have 2 to 6 components.
Yes. Type the equations into the system of equations calculator for 2 to 4 unknowns, or enter the augmented matrix into the RREF calculator for up to 6 equations. Both say whether there is one solution, none or infinitely many, and give the general solution when there are infinitely many.
Decimals are converted to exact fractions before calculating, which stops rounding errors from building up over many row operations. Each result also shows a decimal version to 10 significant digits.
Choose the number of rows and columns above the grid, then type one entry per cell and move with the arrow keys or Enter. Entries can be whole numbers, decimals or fractions such as -5/2, or you can paste a block from a spreadsheet. How to enter a matrix in a calculator has the full details, including TI-84 and Casio steps.
Yes. A real matrix can have complex eigenvalues, and the eigenvalue calculator gives them exactly in the form a + bi, in conjugate pairs. The matrix entries themselves must be real.
It depends on the student. Linear algebra involves less algebraic manipulation than calculus but more abstract ideas, such as vector spaces, span and linear independence, and many courses expect short proofs. Working small examples by hand and checking each step with a calculator is a good way to build intuition for both.