System of Linear Equations Calculator
Solve systems with up to 12 unknowns in exact fractions. Find out whether there is one solution, none, or infinitely many, and see why.
Equations
Each row is one equation. Columns left of the line hold coefficients, and the last column holds the right-hand side.
Up to 12 rows and 13 columns.
Use integers, decimals, or fractions such as 1/3. Paste rows from a spreadsheet or a Python list into any cell.
Your system
Solution
Updates as you type.
One solution
How it is solved
Write the system as an augmented matrix. Row operations change the equations, never the solutions.
Show all 3 row operations
Back-substitution
Start at the last pivot and work up. Each row gives one unknown in terms of those already found.
Row 2
Row 1
What this calculator does
Enter a system as an augmented matrix, with one row per equation and the right-hand side in the last column. The calculator keeps every number as an exact fraction and solves systems with up to 12 unknowns. It reports one of three outcomes: a single solution, no solution, or infinitely many solutions written in parametric form.
The answer also shows up in the row-reduced matrix. A row that reads means no solution. A column without a pivot means that its variable is free. To look at the reduction on its own, try the RREF Calculator.
Three outcomes, two pictures
Every linear system has exactly one of these outcomes, and the See tab draws why when there are two unknowns.
- One solution. In the row picture, the lines cross at one point. In the column picture, the columns point in different directions, so exactly one combination reaches the target.
- No solution. The lines are parallel and separate. The columns point along one line, and the target isn't on it.
- Infinitely many. The equations describe the same line. The columns point along one line, and the target is on it, so many combinations work.
Row operations rotate the lines without moving any point they share. That is why elimination never changes the solutions. It only turns the equations into ones you can read off.
Elimination or Cramer's rule?
Elimination works for every system, of any shape, and is what the Steps tab shows first. It reduces the matrix to echelon form, then solves from the last pivot upward by back-substitution.
Cramer's rule expresses each unknown as a ratio of determinants. It is tidy for two or three unknowns, and useful when you need a formula for one unknown. But it needs a square system with a nonzero determinant, and it says nothing about the other cases. For large systems, each extra determinant costs about as much as solving the whole system once. The Determinant Calculator works through those determinants, and the Matrix Inverse Calculator covers another route, .
Related calculators
Keep working with matrices and equations.
RREF Calculator
Row reduce any matrix with exact fractions, step through every row operation, and practice Gaussian elimination.
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.
Single Variable Equation Calculator
Instantly solve linear, quadratic, and cubic equations. Get solutions with exact and decimal results.