Skip to content
    Algebra

    How to Solve Simultaneous Equations (2 Variables)

    Two apples and a banana cost $11 total, and an apple costs a dollar more than a banana — so what does each fruit actually cost? Simultaneous equations pin down two unknowns at once, and Cramer's rule gets you there directly.

    Math Solver Academic Editorial Board4 min read

    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
    1. 01What are simultaneous equations?
    2. 02Why do simultaneous equations matter?
    3. 03The formula
    4. 04How to solve simultaneous equations step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    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

    a₁x + b₁y = c₁ a₂x + b₂y = c₂
    SymbolWhat it meansExample
    a₁, b₁, c₁Coefficients and constant of equation 12, 1, 11
    a₂, b₂, c₂Coefficients and constant of equation 21, -1, 1
    x, yThe two unknowns being solved for4, 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

    1. 1Write both equations in the form ax + by = c. Line up the x-terms, y-terms, and constants.
    2. 2Calculate D = a₁b₂ - b₁a₂. If D = 0, there's no single unique solution.
    3. 3Calculate x using x = (c₁b₂ - b₁c₂) / D.
    4. 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.

    🧮
    Algebra
    High School

    Simultaneous Equations Solver

    Solve a pair of linear equations in two variables

    a₁x + b₁y = c₁ ; a₂x + b₂y = c₂

    xy(0.7, 0.7)
    cos: 0.71
    sin: 0.71
    tan: 1.0
    120
    120
    139
    120
    -320
    120

    💡 Example

    Reference
    Inputs:a1=2, b1=3, c1=13, a2=4, b2=-1, c2=5
    Result:2
    Open the full Simultaneous Equations Solver calculator

    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.

    1. 01Using Cramer's rule: D = a₁b₂ - b₁a₂
    2. 02D = (2)(-1) - (1)(1) = -3
    3. 03x = (c₁b₂ - b₁c₂) / D = (-11 - 1) / -3 = 4
    4. 04y = (a₁c₂ - c₁a₂) / D = (2 - 11) / -3 = 3
    5. 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.

    #Algebra#High School#Simultaneous Equations Solver
    Updated

    Keep reading

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX