Introduction
An augmented matrix is a grid of numbers that stands for a system of equations. The left side holds the numbers in front of the variables. The last column holds the answers, called the constants. A line splits the two parts.
This augmented matrix calculator solves that system. Type your numbers into the grid, pick REF or RREF, and press Calculate. You can enter whole numbers, decimals, fractions like 3/4, or simple math like 2+3.
The calculator uses Gaussian elimination and Gauss-Jordan elimination to clean up the matrix row by row. You see every row swap, every row scaled, and every row added to another. Pivot spots are marked so you can follow along.
When the elimination finishes, the calculator tells you if the system has one solution, no solution, or infinite solutions. It can also show the rank and the determinant. Answers stay exact as fractions, or you can switch to decimals.
Matrices can be 2 to 8 rows tall and 3 to 9 columns wide. Try a built-in example, make a random matrix, transpose it, or multiply it by a number. When you are done, copy the solution, copy it as LaTeX, or print it as a PDF.
How to use our Augmented Matrix Calculator
Type the numbers of your matrix, pick a method, and the calculator shows the row steps, the final matrix, and the solution for x.
Rows: Pick how many rows (equations) your system has, from 2 to 8.
Columns: Pick how many columns you need. In augmented mode this is the number of variables plus 1 for the constants.
Quick sizes: Click a preset like 3×4 to set the rows and columns in one step.
Elimination method: Choose RREF for full Gauss-Jordan (pivots are 1 with zeros above and below) or REF for forward elimination only (zeros below each pivot).
Augmented mode: Leave this on when the last column holds the constants (b). Turn it off to reduce a plain coefficient matrix.
Show step-by-step solution: Turn this on to see every row swap, row scale, and row replacement with the matrix after each move.
Show matrix properties: Turn this on to see the rank of A, the rank of [A|b], and the determinant when the matrix is square.
Matrix cells: Click each box and enter a whole number, decimal, fraction like 3/4, or a small sum like 2+3. Move with the arrow keys, Tab, or Enter.
Clear Matrix: Sets every cell back to 0 so you can start fresh.
Random Matrix: Fills the grid with random whole numbers for quick practice.
Transpose: Flips rows into columns, if the new size still fits the limits.
Scalar Multiply: Enter one number and every cell is multiplied by it.
Example Systems: Load a ready-made system, like one with a unique solution, no solution, or infinite solutions.
Number display: Choose exact fractions or decimal answers. Math stays exact either way.
Calculate: Click it to run the elimination and see the final matrix, rank chart, and solution.
Reset: Puts all settings and the matrix back to the default 3×4 example.
What Is an Augmented Matrix?
An augmented matrix is a way to write a system of linear equations as a grid of numbers. You drop the letters and keep only the numbers. The coefficients (the numbers in front of each variable) go on the left side. The constants (the answers after the equals sign) go in the last column, after a vertical bar.
For example, the system:
2x + y = 5
x − 3y = −1
becomes the augmented matrix rows [2, 1 | 5] and [1, −3 | −1]. Same problem, less writing.
The Three Row Operations
You solve a matrix by changing its rows until the answer is easy to read. Only three moves are allowed, and none of them change the solution:
- Row swap: trade the places of two rows.
- Row scaling: multiply every number in one row by a number that is not zero.
- Row replacement: add a multiple of one row to another row.
REF and RREF
These are two "finished" shapes for a matrix.
Row Echelon Form (REF) uses Gaussian elimination. Each leading number, called a pivot, sits to the right of the pivot above it, and everything below each pivot is zero. The matrix looks like a staircase. You then work backward to find each variable.
Reduced Row Echelon Form (RREF) uses Gauss-Jordan elimination. It goes further: every pivot equals 1, and there are zeros both above and below it. In RREF, the answers sit right there in the last column. No back-solving needed.
Three Kinds of Answers
Every linear system ends in one of three ways:
- One solution: each variable has exactly one value. The lines or planes meet at a single point.
- No solution: a row turns into something impossible, like 0 = 4. The equations disagree. This is called an inconsistent system.
- Infinite solutions: there are fewer useful equations than variables. Some variables are free, so you write the answer with a parameter like t.
Rank and What It Tells You
The rank of a matrix is the number of pivots it has. Rank is a quick way to check your answer type:
- rank(A) is smaller than rank([A|b]) → no solution
- rank(A) = rank([A|b]) = number of variables → one solution
- rank(A) = rank([A|b]) but smaller than the number of variables → infinite solutions
The number of free variables equals the number of variables minus the rank.
Where This Is Used
Solving linear systems with matrices shows up in engineering, physics, computer graphics, economics, chemistry (balancing equations), and machine learning. Any time many facts depend on each other at once, a matrix handles them together instead of one at a time.
Tips for Getting It Right
- Keep fractions exact instead of rounding. Small rounding errors grow fast.
- Work one column at a time, left to right.
- If a whole row becomes zeros, that equation repeated another one.
- Check your answer by plugging the values back into the original equations.