ZestCalc

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

2x+3y=8x−y=1\begin{aligned} 2x + 3y &= 8 \\ x - y &= 1 \end{aligned}

Solution

Updates as you type.

One solution

  • x=115x = \frac{11}{5}
  • y=65y = \frac{6}{5}

How it is solved

238
1-11

Write the system as an augmented matrix. Row operations change the equations, never the solutions.

Step 0 of 3
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.

  1. Row 2

    y=65y = \frac{6}{5}
  2. Row 1

    x=4−32y=115x = 4 - \frac{3}{2}y = \frac{11}{5}

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 0=50 = 5 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, x=A−1bx = A^{-1}b.