How to use the system of equations solver
- Rearrange both equations into standard form, ax + by = c, with the x- and y-terms on the left and the number on the right. For example y = 2x − 1 becomes −2x + y = −1.
- Type the three numbers for each equation. Decimals and negative numbers are fine.
- Press Solve. You will see the solution, the elimination steps, a check using determinants and a graph of both lines.
What is a system of equations?
A system of two linear equations asks for values of x and y that make both equations true at the same time. Each equation is a straight line on a graph, so solving the system means finding the point that lies on both lines.
| Lines | Number of solutions | Name |
|---|---|---|
| Cross at one point | Exactly one | Consistent, independent |
| Parallel | None | Inconsistent |
| The same line | Infinitely many | Dependent |
The elimination method
Elimination (also called the addition method or linear combination) removes one variable by adding or subtracting the equations:
- Match a pair of coefficients. Multiply one or both equations so the y-coefficients are the same size.
- Add or subtract. If the matched coefficients have the same sign, subtract the equations; if they have opposite signs, add them. The y-terms cancel.
- Solve the one-variable equation that is left — the same skill used in the linear equation solver.
- Back-substitute that value into either original equation to find the other variable.
- Check the pair (x, y) in both equations.
Example: 2x + 3y = 12 and x − y = 1.
Multiply the second equation by 3: 3x − 3y = 3. The y-coefficients are now 3 and −3, which are opposites, so add: 5x = 15, giving x = 3.
Substitute into the first equation: 2(3) + 3y = 12, so 3y = 6 and y = 2.
Check: 2·3 + 3·2 = 12 ✓ and 3 − 2 = 1 ✓. The solution is (3, 2).
Cramer’s rule and the determinant
For the system a₁x + b₁y = c₁, a₂x + b₂y = c₂, the determinant is D = a₁b₂ − a₂b₁. If D is not zero there is exactly one solution, and Cramer’s rule gives it directly:
x = (c₁b₂ − c₂b₁) ÷ D and y = (a₁c₂ − a₂c₁) ÷ D
In the example above, D = 2·(−1) − 1·3 = −5, so x = (12·(−1) − 1·3) ÷ (−5) = 3 and y = (2·1 − 1·12) ÷ (−5) = 2. The solver uses this as an independent check of the elimination answer.
If D = 0 the lines have the same slope. They are either parallel (no solution) or identical (infinitely many solutions). You can compare slopes yourself with the slope calculator.
Spotting the special cases
No solution: 2x + 4y = 6 and x + 2y = 8. Doubling the second equation gives 2x + 4y = 16. The left sides match but 6 ≠ 16, so subtracting leaves 0 = −10 — impossible. The lines are parallel.
Infinitely many: x − 2y = 3 and 2x − 4y = 6. The second is just the first doubled, so subtracting leaves 0 = 0. Every point on the line is a solution.
Tips
- Fraction answers are normal. Keep them exact while you work; the fraction calculator helps with the arithmetic.
- Substitution is a good alternative when one equation is already solved for a variable, such as y = 2x − 1.
- Reading a solution from a graph only gives an estimate; algebra gives the exact value.
Frequently asked questions
How do you solve a system of equations by elimination?
Multiply one or both equations so one variable has matching coefficients, then add or subtract the equations to cancel that variable. Solve the remaining one-variable equation and substitute back to find the other variable.
How do I know if a system has no solution?
If eliminating one variable also eliminates the other and leaves a false statement such as 0 = −10, the system has no solution. The two lines are parallel: same slope, different intercepts.
What does infinitely many solutions mean?
It means the two equations describe the same line, so every point on that line satisfies both. Elimination leaves the true statement 0 = 0.
What is Cramer’s rule for a 2×2 system?
Compute D = a1·b2 − a2·b1. If D is not zero, x = (c1·b2 − c2·b1) ÷ D and y = (a1·c2 − a2·c1) ÷ D. If D is zero, the system has either no solution or infinitely many.
Should I use elimination or substitution?
Both always give the same answer. Substitution is quickest when one equation is already solved for x or y; elimination is usually tidier when both equations are in the form ax + by = c.
How do I enter an equation like y = 2x − 1?
Move the x-term to the left to get −2x + y = −1, then enter a = −2, b = 1 and c = −1.