Key takeaways
- Two equations with the same two unknowns (x, y) can pin down exactly one solution.
- D = a₁b₂ - b₁a₂ must be nonzero for a single unique solution to exist.
- x = (c₁b₂ - b₁c₂) / D and y = (a₁c₂ - c₁a₂) / D, using Cramer's rule.
- If D = 0, the lines are either parallel (no solution) or identical (infinite solutions).
In this guide
What are simultaneous equations?
When you have two unknowns, one equation alone isn't enough to pin down their values — there are infinite pairs that could work. But if you have two equations using the same two unknowns, there's usually exactly one pair of values that satisfies both at the same time.
Why do simultaneous equations matter?
Real problems often hide two unknown quantities behind two known totals — two items with two different combined prices, or a mixture with two known constraints. A single equation can't separate the two values, but a second, independent equation can.
Buy 2 apples and 1 banana for $11, then compare that to knowing an apple costs $1 more than a banana. Neither fact alone tells you the price of either fruit — together, they solve it exactly.
The formula
| Symbol | What it means | Example |
|---|---|---|
| a₁, b₁, c₁ | Coefficients and constant of equation 1 | 2, 1, 11 |
| a₂, b₂, c₂ | Coefficients and constant of equation 2 | 1, -1, 1 |
| x, y | The two unknowns being solved for | 4, 3 |
This calculator solves both at once using Cramer's rule: x = (c₁b₂ - b₁c₂) / D and y = (a₁c₂ - c₁a₂) / D, where D = a₁b₂ - b₁a₂.
How to solve simultaneous equations step by step
- 1Write both equations in the form ax + by = c. Line up the x-terms, y-terms, and constants.
- 2Calculate D = a₁b₂ - b₁a₂. If D = 0, there's no single unique solution.
- 3Calculate x using x = (c₁b₂ - b₁c₂) / D.
- 4Calculate y using y = (a₁c₂ - c₁a₂) / D.
Enter your own two equations below and see x and y calculated step by step.
Try it yourself
Pre-filled with the example — change any value.
Common mistakes to avoid
- Not checking D = 0. If D is zero, the lines are parallel (no solution) or identical (infinite solutions) — there's no single answer.
- Solving only for x and stopping. You need both x and y to fully answer the problem — substitute x back into either original equation to double-check y.
- Forgetting a negative sign in a coefficient, like b₂ = -1, which flips the whole calculation if dropped.
Tips and tricks
- If you only have one unknown, use the simpler linear equation solver instead.
- To visualize either equation as a line, find its steepness with the slope formula calculator.
- The elimination method (adding/subtracting equations by hand) reaches the exact same answer as Cramer's rule — just by a different route.
Where you'll use it in real life
- Shopping: pricing two items from two different combined purchase totals.
- Cooking: mixing two ingredients to hit a target combined weight or cost.
- Business: finding a break-even point where two cost or revenue lines cross.
- Physics: finding two unknown forces or speeds from two independent measurements.
Quick summary
Simultaneous equations solve for two unknowns using two independent equations. Calculate D, then use Cramer's rule to find x and y directly. Watch for D = 0, which signals parallel or identical lines. Try the calculator above with your own two equations.
Worked example
Two apples and one banana cost $11. One apple minus one banana costs $1 less than nothing extra — in other words, one apple costs $1 more than one banana. What does each fruit cost? That's 2x + y = 11 and x - y = 1.
- 01Using Cramer's rule: D = a₁b₂ - b₁a₂
- 02D = (2)(-1) - (1)(1) = -3
- 03x = (c₁b₂ - b₁c₂) / D = (-11 - 1) / -3 = 4
- 04y = (a₁c₂ - c₁a₂) / D = (2 - 11) / -3 = 3
- 05x = 4, y = 3
These numbers are pre-filled in the calculator above.
Frequently asked questions
How do I solve simultaneous equations with two variables?
Use Cramer's rule: find D = a₁b₂ - b₁a₂, then x = (c₁b₂ - b₁c₂) / D and y = (a₁c₂ - c₁a₂) / D.
What does it mean if D = 0?
It means the two equations don't cross at a single point. Either they're parallel lines (no solution) or the exact same line (infinite solutions).
What's the difference between the elimination method and this formula?
Elimination adds or subtracts the equations by hand to cancel a variable. Cramer's rule reaches the same answer using a direct formula, without manually combining the equations.
Can simultaneous equations have more than two unknowns?
Yes, but you then need one equation for every unknown. This calculator handles the common two-variable, two-equation case.


