Free Math tool · Step by step

System of Equations Solver

Solve systems of linear equations in two or three variables with exact fractions and every elimination step (augmented matrix and row operations), plus a graph of both lines. Detects no solution and infinitely many solutions.

Useful for JEE · NEET · CBSE · AP · SAT · IB · GCSE · A-level homework and exam practice — India and worldwide.

x+y=
x+y=

Use negative numbers for minus signs, 0 for a missing variable. Fractions like 1/2 work.

Solution

x=3, y=2x = 3,\ y = 2

✓ Checked in every original equation

(3, 2)

2x+3y=122x + 3y = 12

x−y=1x - y = 1

The solution is where the lines cross.

  1. 1

    Write the system as an augmented matrix

    [23121−11]\left[\begin{array}{cc|c} 2 & 3 & 12 \\ 1 & -1 & 1 \end{array}\right]
  2. 2

    Make the pivot 1: R1 → R1 ÷ 2

    [13261−11]\left[\begin{array}{cc|c} 1 & \frac{3}{2} & 6 \\ 1 & -1 & 1 \end{array}\right]
  3. 3

    Eliminate x from the other rows: R2 → R2 − 1·R1

    [13260−52−5]\left[\begin{array}{cc|c} 1 & \frac{3}{2} & 6 \\ 0 & -\frac{5}{2} & -5 \end{array}\right]
  4. 4

    Make the pivot 1: R2 → R2 ÷ -5/2

    [1326012]\left[\begin{array}{cc|c} 1 & \frac{3}{2} & 6 \\ 0 & 1 & 2 \end{array}\right]
  5. 5

    Eliminate y from the other rows: R1 → R1 − \frac{3}{2}·R2

    [103012]\left[\begin{array}{cc|c} 1 & 0 & 3 \\ 0 & 1 & 2 \end{array}\right]
  6. 6

    Read off the solution

    x=3,y=2x = 3,\quad y = 2

AI video explanation

Want a 1-minute AI video explanation, or have a harder homework screenshot?

Doubtclip turns the question into a step-by-step whiteboard video with voice.

Click here — solve with AI

FAQ

How does elimination work?

Multiply and subtract equations so one variable cancels, repeat until each equation has one variable, then read off the answer. The steps show every row operation on the augmented matrix.

What if there is no solution?

If elimination produces a row like 0 = 5, the equations contradict each other (parallel lines), so there is no solution.

Are the answers exact?

Yes — all arithmetic is done with fractions, so you get 19/15 instead of 1.2666…, and the answer is checked in every original equation.

More free tools