Education & Academic

System of Equations Calculator

Solve two linear equations in two unknowns, including checks for no solution or infinitely many solutions.

Your inputs

Example values are filled in. Replace them with yours.

Calculator values

Your result

Example result

Unique solution

x = 2, y = 1

Determinant
-3
Equation 1 left-hand check
5
Equation 2 left-hand check
1
Save or compare

Saved calculations

Save up to five results in this browser. Select up to three to compare.

    How to use the calculator

    1. Rewrite each equation in the form ax + by = c.
    2. Enter all six coefficients, including zero or negative coefficients where appropriate.
    3. Read x and y, or the explanation when the equations do not determine a unique solution.
    4. Select Calculate to update the answer and breakdown. Select Reset to bring back the example.

    Formula

    For ax + by = c and dx + ey = f, determinant D = ae − bd. When D ≠ 0, x = (ce − bf) ÷ D and y = (af − cd) ÷ D.

    Worked example

    2x + y = 5 and x − y = 1 have the unique solution x = 2 and y = 1.

    Understanding your result

    Parallel distinct lines have no solution. Two equations describing the same line have infinitely many solutions. A unique solution is their intersection.

    Assumptions and limits

    Supports two equations with real coefficients. Calculations use floating-point arithmetic. Very small determinants relative to coefficient size are reported as numerically sensitive rather than a reliable unique answer.

    Common questions

    What should I enter when a term is missing?

    Enter zero for its coefficient. For x = 3, use 1 for x, 0 for y, and 3 on the right.

    Why can a tiny determinant be a problem?

    Nearly parallel equations magnify small input or rounding errors. Use higher precision methods when the calculator reports sensitivity.

    Method and references

    Formula and examples checked 2026-12-04. How we check calculations.