System of Equations Calculator
Why determinants, when substitution exists?
Substitution and elimination are perfectly good for two equations on paper. Determinants earn their place when the system grows and when a machine does the work: Cramer's rule is a closed formula — the same steps for every system, no choices about which variable to eliminate first, and a built-in diagnostic. The denominator determinant D compresses the whole question "does a unique solution exist?" into one number. D ≠ 0: exactly one solution. D = 0 with a non-zero numerator: the equations contradict. All determinants zero: the equations are dependent and infinitely many pairs fit.
There is a geometric reading worth keeping. In two variables, each equation is a line and the solution is where the lines cross; D measures, in effect, how decisively they cross — nearly parallel lines have a small D and solutions that swing wildly when a coefficient is nudged, which is why measurement-based systems with tiny determinants give unstable answers. In three variables each equation is a plane, and the solution is the single point where all three meet — or, when D = 0, they share a line or never share a point at all.
Setting up real problems
Most real systems arrive as words, not coefficients. The translation habits that matter: give each unknown its own variable and never reuse a letter; write one equation per independent fact (a total, a difference, a rate balance); and keep units consistent inside each equation — mixing rupees and dollars, or hours and minutes, is the classic way to build a system whose solution is precise nonsense. Mixture problems, ticket-price problems and two-machine rate problems all reduce to the 2×2 case here; supply balances across three products use the 3×3. After solving, substitute back — thirty seconds that catch nearly every setup slip.
A worked setup, from words to coefficients
A cinema sells adult tickets and child tickets. 120 tickets brought in $1,380; adult tickets are $14, child tickets $8. Let x be adult tickets and y child tickets: x + y = 120 and 14x + 8y = 1,380. The determinant D = (1)(8) − (14)(1) = −6; x = (120×8 − 1,380×1) / −6 = 70, and y = (1×1,380 − 14×120) / −6 = 50. Check: 70 + 50 = 120 tickets, and 70×14 + 50×8 = 980 + 400 = $1,380. Nearly every textbook system is this shape — two totals, two unknowns — and the translation step, not the solving step, is where marks are won and lost.
Frequently asked questions
How do you solve a system of two equations?
For a1x + b1y = c1 and a2x + b2y = c2, Cramer's rule uses determinants: D = a1b2 - a2b1, then x = (c1b2 - c2b1) / D and y = (a1c2 - a2c1) / D. For 2x + 3y = 12 and x - y = 1: D = (2)(-1) - (1)(3) = -5, x = (12 x -1 - 1 x 3) / -5 = 3, and y = (2 x 1 - 1 x 12) / -5 = 2. Check: 2(3) + 3(2) = 12 and 3 - 2 = 1. Substitution and elimination reach the same answer — determinants are just the systematic version that scales to three equations and to code.
What does it mean when a system has no solution?
The equations contradict each other. Graphically, two lines that are parallel never meet: x + y = 4 and x + y = 9 demand two different sums from the same pair of numbers. Algebraically the main determinant D is zero while at least one of the numerator determinants is not, and this calculator reports exactly that case rather than dividing by zero. In applied problems a no-solution system usually means the conditions were recorded inconsistently — one of the numbers is wrong.
What does infinitely many solutions mean?
The equations are not really different: one is a multiple of the other, like x + y = 4 and 2x + 2y = 8, which is the same line written twice. Every point on the line solves both, so the system pins down a relationship between x and y but not a single pair. All the determinants come out zero in this case. To get a unique answer you need genuinely independent information — a third condition that is not already implied by the others.
How does the 3x3 solver work?
By the same rule, one dimension up. Each variable is a ratio of 3x3 determinants: the denominator D is the determinant of the coefficient matrix, and each numerator replaces that variable's column with the constants. The example system x + y + z = 6, 2x - y + z = 3, x + 2y - z = 2 has D = 7 and solves to (1, 2, 3), which checks in all three equations. The calculator shows D and each numerator determinant so you can follow the working, and it flags the zero-D cases where the three planes fail to meet at a single point.
Can this solve equations with fractions or decimals?
Yes — enter decimals directly (0.5 instead of 1/2) and the determinant arithmetic handles them the same way. Two habits keep results clean: clear fractions first by multiplying an equation through by the common denominator when the numbers are simple, and expect answers to be rounded to a few decimal places when the inputs are decimals. The solution check is always available by hand: substitute the answer back into both original equations and confirm each side balances.
Related tools
Figures checked on 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.