How to Solve Systems of Equations
A system of equations is a set of equations that must all be true at the same time for the same values of their shared variables. This solver finds those values for you: pick the 2×2 or 3×3 grid, type each coefficient and constant into its box, and the solution appears underneath with the determinant or elimination steps that produced it — including an honest warning when the system has no solution or infinitely many. Systems matter because real questions rarely hand you one unknown at a time; two receipts, two totals or two conditions together can pin down two or three unknowns that neither condition could fix alone.
The Equations and Determinants, Symbol by Symbol
Write a 2x2 system as a₁x + b₁y = c₁ and a₂x + b₂y = c₂. The unknowns are x and y, the values you are hunting. The symbols a₁ and a₂ are the coefficients of x in the first and second equations, b₁ and b₂ are the coefficients of y, and c₁ and c₂ are the constants on the right-hand side. Cramer’s rule combines them into D = a₁b₂ − a₂b₁, the determinant of the coefficient grid; Dx replaces the x-column with the constants, giving Dx = c₁b₂ − c₂b₁, and Dy replaces the y-column, giving Dy = a₁c₂ − a₂c₁. The solution is then x = Dx/D and y = Dy/D, which is why D = 0 is fatal: division by zero means no unique crossing point. A 3x3 system adds a third unknown z, a third coefficient column and a third equation, handled above by elimination instead.
The Main Methods
- Elimination: add or subtract multiples of equations to cancel one variable at a time — the most mechanical method, used for the 3×3 solver above.
- Substitution: solve one equation for a variable and plug it into the others — great for 2×2 by hand.
- Cramer’s rule: express each variable as a ratio of determinants — elegant for 2×2, shown step by step above.
Special Cases
If elimination produces 0 = 5, the system is inconsistent (no solution — parallel lines). If it produces 0 = 0, the equations are dependent (infinitely many solutions — the same line twice). The calculator detects and reports both.
How to Use This Solver, Step by Step
- Choose the grid size with the “2×2 system” or “3×3 system” tab, matching the number of unknowns in your problem.
- Fill one row per equation: type the coefficient of x, then of y (and z for 3×3), into the numbered boxes, and the constant after the equals sign. Use a negative number for a subtracted term, and 0 for a missing variable. There is no calculate button — the solver updates as you type.
- Read the dark results panel: it shows x, y (and z) in green, with the numbered determinant or elimination steps below. An amber panel instead means a box is empty or the system is a special case, and its message tells you which.
Worked Example 1: Two Unknowns With Cramer’s Rule
Solve x + y = 10 and x − y = 4. Here a₁ = 1, b₁ = 1, c₁ = 10 and a₂ = 1, b₂ = −1, c₂ = 4. The negative coefficient matters: the second equation subtracts y, so b₂ enters every determinant as −1, not 1.
- Main determinant: D = a₁b₂ − a₂b₁ = (1)(−1) − (1)(1) = −2. Non-zero, so exactly one solution exists.
- Replace the x-column: Dx = c₁b₂ − c₂b₁ = (10)(−1) − (4)(1) = −14, so x = Dx/D = −14 ÷ −2 = 7.
- Replace the y-column: Dy = a₁c₂ − a₂c₁ = (1)(4) − (1)(10) = −6, so y = Dy/D = −6 ÷ −2 = 3.
- Answer: x = 7, y = 3.
Verify against both originals: 7 + 3 = 10 satisfies the first equation, and 7 − 3 = 4 satisfies the second. A candidate that passed only one test would not be a solution of the system, however neatly it was found.
Worked Example 2: Three Unknowns by Elimination
Solve x + y + z = 6, x − y + 2z = 5 and 2x + y − z = 1. Elimination removes one unknown at a time: first clear x from the lower two equations, then clear y from the last one, leaving a single equation in z’s partner y.
- Second row minus first row: (x − y + 2z) − (x + y + z) = 5 − 6, giving −2y + z = −1.
- Third row minus twice the first: (2x + y − z) − (2x + 2y + 2z) = 1 − 12, giving −y − 3z = −11.
- Eliminate z: multiply −2y + z = −1 by 3 to get −6y + 3z = −3, then add −y − 3z = −11: −7y = −14, so y = 2.
- Back-substitute: from −2y + z = −1, z = 2y − 1 = 3; then x = 6 − y − z = 6 − 2 − 3 = 1.
- Answer: x = 1, y = 2, z = 3.
Check all three originals: 1 + 2 + 3 = 6, 1 − 2 + 6 = 5, and 2 + 2 − 3 = 1. Every equation balances, so the triple is confirmed as the unique solution.
When a System Is the Right Model
Use a system whenever two or three unknowns are tangled together by separate totals. A café owner who sold 40 drinks for a known revenue, split between two prices, can recover both quantities from the count and money equations. A pharmacist mixing two stock solutions uses one equation for total volume and another for total strength. A business comparing a cost line against a revenue line solves the pair to find the break-even quantity. Even two trains’ distance equations form a system whose solution is their meeting time and place.
Three Errors That Corrupt Systems
- Losing a sign while copying: an equation rearranged from y = 10 − x becomes x + y = 10, not x − y = 10. Every term that crosses the equals sign flips sign, and the grid above takes coefficients exactly as typed.
- Reading D = 0 as x = 0: a zero determinant never means the unknowns are zero; it means no unique solution exists — the lines are parallel or identical, and the solver reports which.
- Checking only one equation: infinitely many pairs satisfy a single equation, so a half-checked answer can look right while failing the second condition completely. Always substitute into every original.
Working with single equations or matrices? Try our linear equation solver or the matrix calculator. For answers that come as a range rather than a single value, try the inequality solver.