System of Equations Solver

Find x and y from two simultaneous linear equations. See the complete solution with step-by-step working and formula explanations.

#
#
#

Enter your values above to see the results.

Tips & Notes

  • Elimination is fastest when coefficients align. If not, multiply one equation to create matching coefficients.
  • Always substitute back to verify: the solution must satisfy BOTH equations simultaneously.
  • For 3×3 systems, reduce to 2×2 first: eliminate the same variable from pairs of equations.
  • If equations are proportional (e.g., 2x+4y=8 and x+2y=4), system has infinite solutions.
  • Determinant = 0 means no unique solution — system is either inconsistent or dependent.

Common Mistakes

  • Substituting into the same equation used to solve — must substitute into the OTHER equation.
  • Sign errors when subtracting equations. Subtract every term: (2x+y)−(x+y) = x, not 2x.
  • Multiplying only one side of an equation — must multiply both sides by the same value.
  • Forgetting to back-substitute and find all variables — system needs ALL variable values.
  • Checking solution in only one equation. A valid solution must satisfy every equation.

System of Equations Solver Overview

A system of equations is a collection of two or more equations that must all be satisfied simultaneously by the same values of the unknowns. The solution is the set of variable values that makes every equation in the system true at once. Systems appear wherever multiple independent constraints govern a single situation: balancing chemical reactions, analyzing electrical circuits, optimizing business decisions, and fitting curves to data all require solving simultaneous equations.

For a 2×2 linear system, the elimination method adds or subtracts multiples of equations to cancel one variable at a time:

EX: 2x + y = 9 and x + y = 5 → subtract second from first → x = 4 → sub back: 4 + y = 5 → y = 1
Substitution works best when one variable can be isolated easily in one equation:
EX: x + y = 10 and x − y = 4 → from first: x = 10−y → sub into second: (10−y)−y = 4 → y = 3, x = 7
Cramer's Rule provides an explicit determinant-based formula for 2×2 systems:
For ax + by = e and cx + dy = f: x = (ed − bf)/(ad − bc), y = (af − ce)/(ad − bc)
EX: 3x + 2y = 8 and x − y = 1 → det = 3(−1)−2(1) = −5 → x = (−8−2)/(−5) = 2, y = 1
Before solving, identifying the system type determines the solution approach and the expected result. A consistent independent system has a unique solution — the lines intersect at one point, the planes meet at one point, or the equations represent independent constraints. A consistent dependent system has infinitely many solutions — the equations represent the same geometric object. An inconsistent system has no solution — the constraints are contradictory. Gaussian elimination (row reduction to echelon form) is the most reliable general method for systems of any size, because it is completely systematic and handles degenerate cases naturally. When the elimination produces a row of all zeros, the system is dependent; when it produces a contradiction (0 = 1), the system is inconsistent. Substitution is faster for small systems with one equation easily solved for one variable. Matrix methods (Cramer's rule, inverse matrix) work for any consistent independent system but become computationally intensive for large systems where iterative numerical methods are preferred.

Frequently Asked Questions

A system has no solution when the equations represent parallel lines — they never intersect. This happens when the equations have the same slope (same coefficients for x and y) but different constants. Example: x + y = 5 and x + y = 8 — these lines are parallel and never meet, so no values of x and y satisfy both equations simultaneously. Algebraically, attempting to solve produces a contradiction like 5 = 8. A system has infinitely many solutions when both equations represent the same line (one is a multiple of the other): x + y = 5 and 2x + 2y = 10 are identical lines. Every point on the line is a solution. This calculator indicates when a system is inconsistent (no solution) or dependent (infinite solutions).

A system has infinite solutions when the equations are dependent — one equation is a multiple of the other, so they describe the same line (in 2D) or the same plane (in 3D). For example, x + 2y = 4 and 2x + 4y = 8 are the same line multiplied by 2. Any point on that line is a solution, giving infinitely many solutions. The solution is expressed as a parametric family: letting x = t (any value), then y = (4-t)/2. This calculator detects dependency and reports when infinite solutions exist rather than producing a false unique answer.

Use substitution when one equation already has a variable isolated or can be easily isolated — for example, if one equation is y = 3x + 1, substitute directly into the other. Use elimination when both equations have the same variable with equal (or easily made equal) coefficients — for example, x + 2y = 5 and x + 4y = 9: subtract to eliminate x immediately. For 3x + 2y = 7 and 5x - 2y = 9: the y coefficients are already opposite, so add directly. In general, elimination is faster when coefficients are simple integers; substitution is cleaner when a variable is already isolated. This calculator uses elimination (Gaussian elimination) internally, which generalizes to any number of variables.

A system has no solution when equations represent parallel lines (same slope, different intercepts). Example: x+2y=5 and x+2y=8. Eliminating x by subtracting: 0=3 — a contradiction, so no solution exists. Geometrically, two parallel lines never intersect. A system has infinitely many solutions when both equations describe the same line. Example: x+2y=5 and 2x+4y=10 (second equation is 2× the first). Every point satisfying x+2y=5 satisfies both equations — the solution is the entire line, parameterized as x=t, y=(5−t)/2 for any real t.

Three-variable systems need three independent equations. Strategy: pick any two pairs of equations and eliminate the same variable from each pair, producing two equations in two unknowns. Then solve that smaller system and back-substitute. Example: x+y+z=6, x+2y+z=9, 2x+y+z=8. Pair (2)−(1): y=3. Pair (3)−(1): x=2. Back-substitute into (1): 2+3+z=6 → z=1. Final answer: x=2, y=3, z=1. Verify in all three original equations: 6=6 ✓, 9=9 ✓, 8=8 ✓.

Matrix methods handle large systems systematically using augmented matrices and row operations. Write [A|b] and apply: swap two rows, multiply a row by a non-zero constant, add a multiple of one row to another. Reduce to row echelon form (REF) then back-substitute, or continue to reduced row echelon form (RREF) where solutions are explicit. RREF of a 3×3 system with unique solution gives the identity matrix on the left: [[1,0,0|x],[0,1,0|y],[0,0,1|z]]. Software packages use LU decomposition for numerical stability.