Systems of Equations Calculator
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.
Which Solving Method Should You Use?
There are four main methods. The right choice depends on the form of your equations:
| Method | When to Use It | Example Situation |
|---|---|---|
| Substitution | One equation is already solved for x or y | y = 3x + 2 and 2x + y = 8 |
| Elimination | Coefficients are easy to match or cancel | 3x + 2y = 12 and 3x − y = 3 |
| Graphing | You need a visual check or approximate answer | Any two-variable linear system |
| Matrix / Cramer's Rule | Three or more variables; used in this calculator | 3×3 systems in Algebra 2 |
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:
- Identify the isolated variable. The first equation gives us y = 2x − 1 directly.
- Substitute into the other equation. Replace y in the second equation: 3x + 2(2x − 1) = 12.
- Simplify and solve for x. 3x + 4x − 2 = 12 → 7x = 14 → x = 2.
- Back-substitute to find y. y = 2(2) − 1 = 3. Solution: (2, 3).
- 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:
- Multiply to match a coefficient. Multiply the second equation by 3: 12x − 3y = 15.
- Add the equations. (2x + 3y) + (12x − 3y) = 11 + 15 → 14x = 26 → x = 13/7.
- Substitute back. Plug x into either original equation to find y.
- Check your answer. Verify both equations are satisfied.
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:
| Outcome | What the Graph Shows | What the Algebra Shows |
|---|---|---|
| One solution | Two lines crossing at a single point | You get a specific x and y value |
| No solution | Parallel lines — same slope, never meet | Algebra produces a contradiction: e.g. 0 = 4 |
| Infinite solutions | Same line — one equation is a multiple of the other | Algebra 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:
- Name your variables. Let x = coffees sold, y = teas sold.
- Write two equations. Total drinks: x + y = 20. Total revenue: 3.5x + 2y = 55.
- Solve by substitution. From equation 1: y = 20 − x. Substitute: 3.5x + 2(20 − x) = 55 → 1.5x = 15 → x = 10.
- Find y. y = 20 − 10 = 10. The café sold 10 coffees and 10 teas.
- Check. 10(3.50) + 10(2.00) = 35 + 20 = $55. ✓
Common Mistakes to Avoid
Frequently Asked Questions
-
What is a system of equations?
A system of equations is two or more equations with the same unknowns. Solving the system means finding the values of the variables that satisfy every equation at the same time.
-
How do you solve a system of equations step by step?
The two most common methods are substitution and elimination. In substitution, isolate one variable and plug it into the other equation. In elimination, add or subtract the equations to cancel one variable. Both methods end with substituting back to find all unknowns.
-
What does it mean when a system has no solution?
No solution means the two lines are parallel — they have the same slope but different y-intercepts, so they never intersect. Algebraically, you end up with a contradiction like 0 = 4.
-
Can this calculator solve 3-variable systems?
This calculator solves 2×2 systems (two equations, two unknowns). For three-variable systems (x, y, z), use the Matrix Calculator, which handles 3×3 systems using row reduction and Cramer's Rule.
-
What is the easiest method to solve a system of equations?
Elimination is usually the fastest for standard algebra problems because you can cancel a variable in one step. Substitution is easier when one equation is already solved for a variable (e.g. y = 3x + 1).
-
How do you check if your answer is correct?
Substitute your x and y values into both original equations. If both equations balance, your answer is correct. This step is also required on most algebra exams.