Category

Systems of Equations Calculator

Formula

Enter your values

Enter your values and press Calculate — your answer, visual and step-by-step solution appear here.

What Is a System of Equations?

A system of equations is two or more equations that share the same variables. Solving the system means finding the values of x and y that satisfy both equations simultaneously.

For example, the system 2x + y = 7 and x − y = 1 has one solution — the pair (x, y) that makes both equations true at the same time. Plug x = 8/3 and y = 5/3 into each equation and both sides balance.

In plain terms: You have two unknowns and two rules. The solution is the one point where both rules are satisfied at once.

Which Solving Method Should You Use?

There are four main methods. The right choice depends on the form of your equations:

MethodWhen to Use ItExample Situation
SubstitutionOne equation is already solved for x or yy = 3x + 2 and 2x + y = 8
EliminationCoefficients are easy to match or cancel3x + 2y = 12 and 3x − y = 3
GraphingYou need a visual check or approximate answerAny two-variable linear system
Matrix / Cramer's RuleThree or more variables; used in this calculator3×3 systems in Algebra 2
Quick rule: If you're unsure, try elimination first — it works cleanly for most standard algebra problems.

How to Solve by Substitution — Step by Step

Substitution works best when one equation is already solved for a single variable. Use the system y = 2x − 1 and 3x + 2y = 12:

  1. Identify the isolated variable. The first equation gives us y = 2x − 1 directly.
  2. Substitute into the other equation. Replace y in the second equation: 3x + 2(2x − 1) = 12.
  3. Simplify and solve for x. 3x + 4x − 2 = 12 → 7x = 14 → x = 2.
  4. Back-substitute to find y. y = 2(2) − 1 = 3. Solution: (2, 3).
  5. Check your answer. Plug (2, 3) back into both original equations to confirm both sides balance — this is the step most students skip and most teachers award marks for.

How to Solve by Elimination — Step by Step

Elimination works by adding or subtracting equations to cancel one variable. Use the system 2x + 3y = 11 and 4x − y = 5:

  1. Multiply to match a coefficient. Multiply the second equation by 3: 12x − 3y = 15.
  2. Add the equations. (2x + 3y) + (12x − 3y) = 11 + 15 → 14x = 26 → x = 13/7.
  3. Substitute back. Plug x into either original equation to find y.
  4. Check your answer. Verify both equations are satisfied.
Common mistake: When multiplying to cancel a variable, multiply every term on both sides — not just the variable term.

How to Solve by Graphing

Convert each equation to slope-intercept form (y = mx + b), then plot both lines. The solution is the point where they intersect.

For example, 2x + y = 7 becomes y = −2x + 7 (slope −2, y-intercept 7). And x − y = 1 becomes y = x − 1 (slope 1, y-intercept −1). The two lines cross at (8/3, 5/3).

The graphing method is especially useful for visualising what "no solution" and "infinite solutions" look like (see below).

Special Cases: No Solution and Infinite Solutions

Not every system has exactly one solution. There are three possible outcomes:

OutcomeWhat the Graph ShowsWhat the Algebra Shows
One solutionTwo lines crossing at a single pointYou get a specific x and y value
No solutionParallel lines — same slope, never meetAlgebra produces a contradiction: e.g. 0 = 4
Infinite solutionsSame line — one equation is a multiple of the otherAlgebra produces a tautology: e.g. 0 = 0

If your elimination or substitution step produces a statement like 0 = 7, the system has no solution. If it produces 0 = 0, the lines are identical and there are infinitely many solutions.

Real-World Word Problem Example

Word problems ask you to build the system before solving it. Here's a typical algebra scenario:

A café sells coffee for $3.50 and tea for $2.00. On Monday, 20 drinks were sold for a total of $55.00. How many of each drink were sold?
  1. Name your variables. Let x = coffees sold, y = teas sold.
  2. Write two equations. Total drinks: x + y = 20. Total revenue: 3.5x + 2y = 55.
  3. Solve by substitution. From equation 1: y = 20 − x. Substitute: 3.5x + 2(20 − x) = 55 → 1.5x = 15 → x = 10.
  4. Find y. y = 20 − 10 = 10. The café sold 10 coffees and 10 teas.
  5. Check. 10(3.50) + 10(2.00) = 35 + 20 = $55. ✓

Common Mistakes to Avoid

Mistake 1 — Not multiplying the whole equationWhen scaling an equation to cancel a variable, multiply every term — including the constant on the right side.
Mistake 2 — Substituting into the same equationAfter isolating a variable in one equation, substitute into the other equation — not the one you just used.
Mistake 3 — Skipping the check stepAlways verify your answer by substituting both x and y into both original equations.
Mistake 4 — Misreading "no solution" as a calculation errorIf you get 0 = (non-zero number), that's not a mistake — it means the lines are parallel and there really is no solution.
Mistake 5 — Sign errors when subtracting equationsWhen you subtract one equation from another, flip the sign of every term in the equation being subtracted.

Frequently Asked Questions