System of Equations Solver

Solve two simultaneous linear equations by determinants, with the working shown and a clear answer when the system has no solution or infinitely many.

Solution x = 3, y = 2
x = (c₁b₂ − c₂b₁) ÷ D, y = (a₁c₂ − a₂c₁) ÷ D, where D = a₁b₂ − a₂b₁
x 3
y 2
Determinant (a₁b₂ − a₂b₁) -14
Type of system Independent — exactly one solution
Check in equation 1 12
Check in equation 2 10

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the System of Equations Solver does

This system of equations solver will solve two simultaneous linear equations by determinants, with the working shown and a clear answer when the system has no solution or infinitely many. Fill in all 6 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for solving a simultaneous-equations question with the determinant shown for checking. A related tool on this site is the rectangle calculator.

How to use it

  1. Rearrange both equations into the form ax + by = c.
  2. Enter the six coefficients, using 0 for a missing variable.
  3. Read x and y, or the message saying the lines are parallel or identical.

How it works

Two linear equations in two unknowns describe two straight lines. Solving the system means finding where they cross, and there are only three possible answers: they cross once, they are the same line and cross everywhere, or they are parallel and never cross. The determinant D = a₁b₂ − a₂b₁ tells you which case you are in before you solve anything. If D is not zero the lines have different gradients and there is exactly one intersection.

Cramer's rule is the closed-form version of elimination. Each unknown is a ratio of two determinants: replace the column of coefficients for that unknown with the right-hand side column, take its determinant, and divide by D. It gives the same answer as substitution or elimination and is easier to check, because the only thing that can go wrong is an arithmetic slip in a 2×2 determinant.

When D is zero the system is degenerate and the right-hand sides decide which kind. If the numerators are also zero the two equations are multiples of each other, so every point on the line is a solution. If they are not, the equations contradict each other and nothing satisfies both. This calculator reports which of the two it is rather than returning an error, because the distinction is usually the point of the question.

When to use it

  • Solving a simultaneous-equations question with the determinant shown for checking.
  • Finding where two straight lines intersect from their equations.
  • Splitting a total between two unknown quantities given two constraints — a mixture, two ticket prices, two unknown rates.
  • Confirming by hand whether a system is independent, dependent or inconsistent.

Common mistakes to avoid

  • Writing the equations in different forms. Both must be in the form ax + by = c before the coefficients line up; move every term across first.
  • Dropping a minus sign in the determinant. D = a₁b₂ − a₂b₁, and the subtraction is where most errors happen.
  • Reading a zero determinant as "no solution". It can equally mean infinitely many — the right-hand sides decide.
  • Forgetting that a missing variable means a coefficient of zero, not of one.

Frequently asked questions

What is Cramer's rule for a 2×2 system?

With D = a₁b₂ − a₂b₁, the solution is x = (c₁b₂ − c₂b₁)/D and y = (a₁c₂ − a₂c₁)/D. It only works when D is non-zero.

What does it mean if the determinant is zero?

The two lines have the same gradient. If the equations are multiples of each other there are infinitely many solutions; if not, the lines are parallel and there is no solution at all.

Is this the same as elimination or substitution?

Yes — the answer is identical. Cramer's rule is the general formula that elimination produces when you carry the letters through instead of numbers.

How do I enter an equation like 3y = 9 − x?

Rearrange it to the form ax + by = c first. 3y = 9 − x becomes x + 3y = 9, so a = 1, b = 3, c = 9.

Can it handle three unknowns?

Not here — this solves two equations in two unknowns. A 3×3 system needs three equations and a 3×3 determinant.

Related tools

See all math & statistics calculators →