Calculate

Equation 1

Equation 2

Use a negative number for subtraction. Results update as you type.

Try an example

Solution

—

The formula

Two linear equations can be solved with Cramer’s rule. If the determinant D is not zero, there is exactly one solution. If D is zero, the lines are either parallel (no solution) or identical (infinitely many solutions).

D = a₁b₂ − a₂b₁ · x = (c₁b₂ − c₂b₁) ÷ D · y = (a₁c₂ − a₂c₁) ÷ D

Worked example

  1. Given 2x + y = 11 and x − y = 1.
  2. D = (2)(−1) − (1)(1) = −3.
  3. x = ((11)(−1) − (1)(1)) / (−3) = 4; y = ((2)(1) − (1)(11)) / (−3) = 3.

Result: x = 4, y = 3

How the system is solved

The calculator checks the determinant first, then applies Cramer’s rule when there is a unique intersection.

Unique solution

When D ≠ 0, x = Dx / D and y = Dy / D. That point is where the two lines cross on the graph.

No solution

If the coefficients are proportional but the constants are not, the lines are parallel and never meet.

Infinite solutions

If both equations describe the same line, every point on that line is a solution.

Real-world interpretation

A solution is the intersection of two constraints — budgets, mixtures, break-even points, or motion problems with two conditions.

Interesting facts

The determinant tells you the outcome

A non-zero determinant means exactly one intersection; a zero determinant means the lines are parallel or identical.

Systems model intersections

Solving a system of equations is the same as finding where two lines meet on the plane.

Used in real-world calculations

Systems appear in mixture problems, cost/profit intersections, resource allocation, and motion problems with two constraints.

Frequently asked questions

Then the system has either no solution (parallel lines) or infinitely many solutions (the same line).

Yes. The solution is often not a whole number.

Yes. Enter a negative number for subtraction — for example, −1 for the y coefficient of x − y = 1.

Yes. This calculator is designed for two equations in two unknowns.

It is the point where the two lines intersect on the coordinate plane.

References

  1. Systems of linear equations — Khan Academy Substitution and elimination methods for two-variable systems.
  2. Elementary algebra — systems — OpenStax Textbook treatment of linear systems.

For educational and planning use only.

Last reviewed: 2026-10-21 — Reviewed by: Editorial Team

Embed this calculator

Add this calculator to your website with a free iframe widget.

Theme

The widget stretches to the width of its container and adjusts its height automatically.