Simultaneous Equations Solver
Solve two simultaneous linear equations for x and y. Shows the elimination or substitution method step by step.
As an Amazon Associate and CJ Affiliate publisher we earn from qualifying purchases. Prices and availability may vary.
Simultaneous Equations Guide
What's the key thing to understand about The Elimination Method?
Multiply one or both equations to make the coefficient of one variable equal. Then add or subtract the equations to eliminate that variable. Example: 2x + 3y = 12 and 4x + y = 10. Multiply equation 2 by 3: 12x + 3y = 30. Subtract equation 1: 10x = 18, so x = 1.8. Substitute back: 2(1.8) + 3y = 12 → 3y = 8.4 → y = 2.8. Verify in equation 2: 4(1.8) + 2.8 = 7.2 + 2.8 = 10 ✓.
What do I need to know about The Substitution Method?
Rearrange one equation to express one variable in terms of the other, then substitute into the second equation. Best used when one equation has a coefficient of 1 or -1 (easy to rearrange). Example: y = 3 - x and 2x + 5y = 9. Substitute: 2x + 5(3-x) = 9 → 2x + 15 - 5x = 9 → -3x = -6 → x = 2. Then y = 3 - 2 = 1. Verify in equation 2: 2(2) + 5(1) = 4 + 5 = 9 ✓.
What do I need to know about Graphical Interpretation?
Two linear equations each represent a straight line on a graph. The solution (x, y) is the point where the lines intersect. If the lines are parallel (same gradient, different y-intercept), there is no solution. If the lines are identical (same gradient, same y-intercept), there are infinite solutions. For exam questions, always check for 'no solution' (inconsistent) or 'infinite solutions' (dependent) cases before calculating.
What's the key thing to understand about Real-World Applications?
Simultaneous equations model any situation with two conditions constraining two unknowns. Examples: finding break-even point (total cost = total revenue); mixture problems (how much of each ingredient to achieve a target concentration); distance problems (two objects moving at different speeds); finance (splitting costs between two accounts with different interest rates). Setting up the equations correctly from a word problem is often harder than solving them.
What's the key thing to understand about No Solution and Infinitely Many Solutions?
A system of two linear equations in two variables doesn't always have exactly one (x, y) solution. If the two equations represent parallel lines — the same slope but different y-intercepts — they never intersect, and the system has no solution; algebraically, attempting to eliminate a variable leaves a false statement like 0 = 5. If the two equations represent the exact same line (one is just a multiple of the other, such as 2x + 3y = 6 and 4x + 6y = 12), every point on that line satisfies both equations, and the system has infinitely many solutions; eliminating a variable leaves a true but uninformative statement like 0 = 0. Graphically, these three cases correspond to two lines crossing at one point (one solution, the typical case), two parallel lines that never meet (no solution), and two lines perfectly overlapping (infinite solutions). Recognising these special cases early — often visible by comparing the ratio of the x and y coefficients between the two equations — saves time that would otherwise be spent searching for a solution that doesn't exist, or exist uniquely.
What do I need to know about Systems with Three or More Variables?
While this calculator solves systems of two equations in two unknowns, many real-world problems involve three or more variables — for example, balancing a chemical equation, or finding three unknown forces in a mechanical structure. The same underlying principles extend naturally: a system needs at least as many independent equations as unknowns to have a unique solution (three equations for three unknowns, and so on), and the elimination method generalises by systematically removing one variable at a time until a single equation in one unknown remains, which is then back-substituted into the other equations to find the rest. This is the foundation of Gaussian elimination, the standard algorithm computers use to solve large systems of linear equations, and it can also be organised using matrices (coefficients arranged in a grid) for systems too large to solve comfortably by hand. The two-variable elimination and substitution techniques used in this calculator are the direct building blocks of these larger-scale methods.
What do I need to know about Solving Simultaneous Equations with Matrices?
A system of simultaneous linear equations can be written compactly as a matrix equation, Ax = b, where A holds the coefficients, x holds the unknowns, and b holds the constants. For two equations in two unknowns, this can be solved directly using the inverse matrix: x = A⁻¹b, provided A is invertible (its determinant is non-zero). Cramer's Rule offers an alternative route to the same answer without computing a full inverse: each unknown equals the determinant of A with its corresponding column replaced by b, divided by the determinant of A itself. This matrix approach is what scales efficiently to systems with many variables, which is why elimination and substitution — fine for two or three equations by hand — give way to matrix methods inside the engineering, economics, and computer-graphics software that regularly needs to solve dozens or hundreds of simultaneous equations at once.
What should I know about the Three Outcome Cases?
For two equations a1x+b1y=c1 and a2x+b2y=c2, comparing the coefficient ratios predicts which of the three outcomes will occur before solving at all:
| Case | Coefficient ratio test | Graphical picture |
|---|---|---|
| Unique solution | a1/a2 is not equal to b1/b2 | Two lines cross at one point |
| No solution | a1/a2 = b1/b2, but not equal to c1/c2 | Parallel, non-intersecting lines |
| Infinite solutions | a1/a2 = b1/b2 = c1/c2 | Identical, overlapping lines |
What should I know about a Worked Example: A Mixture Problem?
As a worked real-world example: a chemist needs 10 litres of a 40% acid solution, mixing a 25% acid solution with a 60% acid solution. Let x = litres of the 25% solution and y = litres of the 60% solution. Two conditions give two equations: total volume, x+y=10, and total acid content, 0.25x+0.60y=0.40×10=4. From the first, y=10−x. Substituting: 0.25x+0.60(10−x)=4 → 0.25x+6−0.60x=4 → −0.35x=−2 → x=5.714 litres. Then y=10−5.714=4.286 litres. Checking: 0.25×5.714+0.60×4.286 ≈ 1.4285+2.5714 ≈ 4 ✓. So the chemist needs roughly 5.71 litres of the 25% solution and 4.29 litres of the 60% solution. This 'total quantity plus total content' structure is the template behind a huge range of applied simultaneous equations problems, from blending chemicals to combining investments at different interest rates.
What's the key thing to understand about Choosing Between Elimination and Substitution?
With practice, a quick glance at a pair of equations usually suggests which method will be faster. Substitution is most efficient when one equation already has a variable with a coefficient of 1 or −1 (or can easily be rearranged to isolate one), since no extra multiplication step is needed before substituting. Elimination is usually faster when both equations have more awkward coefficients on both variables, since it avoids introducing fractions early — multiplying each equation by a suitable constant to match one variable's coefficient, then adding or subtracting, keeps the arithmetic cleaner than rearranging a fraction-laden equation. Neither method is mathematically 'better' — they always produce the same solution for a consistent, independent system — so the choice is really about which keeps the arithmetic simplest for the specific numbers in front of you.
What should I know about Solving a System with Fractions or Decimals?
Simultaneous equations don't always arrive with convenient whole-number coefficients, and clearing fractions or decimals before applying elimination or substitution usually saves a lot of arithmetic pain later. For an equation like x/2 + y/3 = 5, multiplying every term by the lowest common multiple of the denominators (6) gives 3x+2y=30, with no fractions left to track. Similarly, for a system given with decimal coefficients, such as 0.2x+0.5y=3.1 and 0.4x−0.1y=1.0, multiplying every term in each equation by 10 converts them to 2x+5y=31 and 4x−y=10, both now using clean integers. Solving: from the second equation, y=4x−10. Substituting into the first: 2x+5(4x−10)=31 → 22x−50=31 → 22x=81 → x≈3.68, then y≈4.73. Clearing fractions and decimals before solving doesn't change the solution at all — it only changes how messy the intermediate arithmetic looks — so this preparatory step is always worth doing on sight before committing to either method.
What should I know about Checking a Solution Quickly?
Whichever method is used, substituting the found values of x and y back into BOTH original equations (not just the one used to find them) is the fastest way to catch an arithmetic slip, since an error made partway through elimination or substitution will usually make the solution fail at least one of the two original equations, even if it happens to satisfy the other by coincidence. For example, a solution that satisfies 2x+3y=12 but produces a different value from 4x+y=10 when substituted signals an error occurred somewhere in the elimination or substitution steps, and re-tracing the algebra from the start is faster than trying to debug a single suspect step.