System of Equations Calculator

Solve a system of 2 or 3 linear equations: find x, y (and z) by elimination and Cramer's rule, see whether there's one solution, none or infinitely many, and watch two lines meet.

xy===

2x + 3y = 12 · x − y = 1

Answer

One solution

x = 3, y = 2

Check: 12 = 12; 1 = 1.

Determinant−5

Two lines, one meeting point

2x +3y =121x +−1y =1−2.502.557.5−20246(3, 2)

Each equation is a line: every point on it makes that equation true. The solution is the one point on both lines. Drag the dots to tilt or slide a line (they snap to grid points), or click a number in an equation to type; make the lines parallel and the meeting point disappears.

Why this answer

  1. Elimination: multiply the equations so one variable has opposite coefficients, then add to cancel it. Here, multiply equation 1 by 1 and equation 2 by 2 and subtract: (5)y = 10.
  2. Cramer’s rule (the same thing as a formula): D = a₁b₂ − a₂b₁ = −5, Dx = −15, Dy = −10.
  3. x = Dx / D = 3, y = Dy / D = 2.

Why it works

What does solving a system mean?

051015−5051015(2, 10) → $68

Step 1 of 3

Every way to sell 12 tickets

A school sold 12 tickets for $84: adult tickets $9, child tickets $5. The blue line is every way to sell 12 tickets (a + c = 12). Drag the point along it: 2 adult and 10 child tickets bring in $68.
Find the mix that makes exactly $84.

Put it to use

Two unknowns, two facts

Systems appear whenever two facts tie two unknowns together: 12 tickets sold for $84 with adult tickets at $9 and child tickets at $5 (a + c = 12, 9a + 5c = 84), mixing two solutions to get a target concentration, comparing two phone plans to see where they cost the same, or balancing chemical equations. Each extra unknown needs one more independent equation.

How it works

The system of equations calculator solves two linear equations in x and y, or three in x, y and z. It tells you whether there is exactly one solution, none, or infinitely many, checks the answer, and for two equations draws the two lines.

It uses elimination (Gaussian elimination): combine equations to cancel one variable at a time until each equation has one unknown, then substitute back. For two equations it also shows Cramer's rule, x = Dx/D and y = Dy/D, where D = a₁b₂ − a₂b₁ is the determinant.

If the determinant is 0, the lines (or planes) are parallel or the same, so there's no single solution: either none (they never meet) or infinitely many (they coincide).

a₁x + b₁y = c₁ and a₂x + b₂y = c₂D = a₁b₂ − a₂b₁x = (c₁b₂ − c₂b₁) / D, y = (a₁c₂ − a₂c₁) / DD = 0 → no solution or infinitely many

Worked example: 2x + 3y = 12 and x − y = 1

  1. Multiply the second equation by 3: 3x − 3y = 3.
  2. Add it to the first: 5x = 15, so x = 3.
  3. Substitute: 3 − y = 1, so y = 2.
  4. Check: 2(3) + 3(2) = 12 ✓ and 3 − 2 = 1 ✓.

Common mistakes

  • Multiplying only one side of an equation when scaling it.
  • Sign errors when subtracting equations.
  • Stopping after finding one variable: substitute back for the others.
  • Thinking D = 0 always means no solution: it can also mean infinitely many.

Frequently asked questions

How do you solve a system of two equations?

Eliminate one variable: scale the equations so one variable has opposite coefficients, add them, solve for the remaining variable, then substitute back. Or use substitution: solve one equation for a variable and plug it into the other.

What does it mean if a system has no solution?

The equations contradict each other. For two equations, the lines are parallel: same slope, different intercepts.

What is Cramer's rule?

A formula using determinants: x = Dx/D and y = Dy/D, where D is the determinant of the coefficients and Dx, Dy replace a column with the constants. It works when D ≠ 0.

How many equations do I need?

As many independent equations as unknowns: two for x and y, three for x, y and z.

Can a system have infinitely many solutions?

Yes, when one equation is a multiple of another (like x + 2y = 3 and 2x + 4y = 6): they describe the same line.