ToolNimba Browse

🧮 Simultaneous Equation Solver (2 Variables)

By ToolNimba Math Team · Updated 2026-06-19

Solve the system a₁x + b₁y = c₁ and a₂x + b₂y = c₂. Enter the six coefficients below.

Equation 1: a₁x + b₁y = c₁
Equation 2: a₂x + b₂y = c₂
x
-
y
-
Determinant (a₁b₂ − a₂b₁)
-
Steps
-

Enter all six coefficients to solve the system.

This simultaneous equation solver finds the values of x and y that satisfy two linear equations at once. Enter the six coefficients for the system a₁x + b₁y = c₁ and a₂x + b₂y = c₂, and the tool returns x, y, the determinant, and the worked steps. It uses Cramer rule, so you also see exactly why a system has one solution, no solution, or infinitely many.

What is the Simultaneous Equation Solver?

A pair of simultaneous (or "system of") linear equations in two unknowns describes two straight lines on a graph. Solving the system means finding the point where those lines cross, because that single point is the only (x, y) pair that makes both equations true at the same time. The three classic methods taught in school are substitution, elimination, and the matrix or determinant approach. This tool uses the determinant method, known as Cramer rule, because it gives a clean formula and a reliable test for whether a unique answer even exists.

Cramer rule starts with the determinant of the coefficient matrix: det = a₁b₂ − a₂b₁. If det is not zero, there is exactly one solution, given by x = (c₁b₂ − c₂b₁) ÷ det and y = (a₁c₂ − a₂c₁) ÷ det. Each numerator is itself a determinant formed by swapping the relevant coefficient column for the constants column, which is why the method scales neatly to larger systems. The key insight is that the determinant measures whether the two lines have genuinely different directions.

When det = 0 the lines are parallel, so they never meet at a single point and there is no unique solution. There are two sub-cases. If the two equations are just scaled copies of each other, they represent the same line and every point on it is a solution, so there are infinitely many. If they have the same slope but different intercepts, they are parallel and distinct and never touch, so there is no solution at all. This solver checks both numerators to tell you which case you are in rather than just reporting "no unique solution".

When to use it

  • Checking homework or exam answers when solving a pair of linear equations by hand.
  • Finding where two straight lines intersect, for graphing or geometry problems.
  • Solving everyday word problems such as mixing two quantities to hit a target, or splitting a total into two unknown parts.
  • Quickly testing whether a system is consistent (has a solution) before committing to a longer substitution or elimination by hand.

How to use the Simultaneous Equation Solver

  1. Enter a₁, b₁ and c₁ for the first equation a₁x + b₁y = c₁.
  2. Enter a₂, b₂ and c₂ for the second equation a₂x + b₂y = c₂.
  3. Read off the values of x and y once all six boxes are filled.
  4. Check the determinant and the step list to see how the answer was reached, or why the system has no unique solution.

Formula & method

det = a₁b₂ − a₂b₁. If det ≠ 0 then x = (c₁b₂ − c₂b₁) ÷ det and y = (a₁c₂ − a₂c₁) ÷ det. If det = 0 there is no unique solution.

Worked examples

Solve 2x + 3y = 13 and x − y = −1, so a₁=2, b₁=3, c₁=13, a₂=1, b₂=−1, c₂=−1.

  1. det = a₁b₂ − a₂b₁ = 2×(−1) − 1×3 = −2 − 3 = −5
  2. x = (c₁b₂ − c₂b₁) ÷ det = (13×(−1) − (−1)×3) ÷ (−5) = (−13 + 3) ÷ (−5) = −10 ÷ −5 = 2
  3. y = (a₁c₂ − a₂c₁) ÷ det = (2×(−1) − 1×13) ÷ (−5) = (−2 − 13) ÷ (−5) = −15 ÷ −5 = 3
  4. Check: 2×2 + 3×3 = 4 + 9 = 13 ✓ and 2 − 3 = −1 ✓

Result: x = 2, y = 3

Solve x + y = 4 and 2x + 2y = 8, so a₁=1, b₁=1, c₁=4, a₂=2, b₂=2, c₂=8.

  1. det = a₁b₂ − a₂b₁ = 1×2 − 2×1 = 2 − 2 = 0
  2. Since det = 0, there is no unique solution.
  3. c₁b₂ − c₂b₁ = 4×2 − 8×1 = 8 − 8 = 0 and a₁c₂ − a₂c₁ = 1×8 − 2×4 = 8 − 8 = 0
  4. Both extra determinants are zero, so the equations are the same line: infinitely many solutions.

Result: No unique solution (infinitely many: the lines coincide)

What the determinant tells you about the system

Determinant a₁b₂ − a₂b₁LinesSolutions
Not zeroCross at one pointExactly one (unique x, y)
Zero, same lineCoincide (overlap fully)Infinitely many
Zero, distinct linesParallel, never meetNone

Cramer rule formulas for a 2-variable system

QuantityFormula
Determinant (det)a₁b₂ − a₂b₁
x(c₁b₂ − c₂b₁) ÷ det
y(a₁c₂ − a₂c₁) ÷ det

Common mistakes to avoid

  • Mixing up the coefficient order. Both equations must be written in the same a·x + b·y = c form before you read off coefficients. If one equation is given as y = 2x + 1, rearrange it to −2x + y = 1 first, otherwise the a and b values are wrong.
  • Dropping a minus sign. The determinant is a₁b₂ minus a₂b₁, and the numerators have their own subtractions. A single sign slip flips the answer, so keep negative coefficients in brackets, for example 2×(−1), when you compute by hand.
  • Assuming det = 0 always means no solution. A zero determinant only rules out a single unique answer. The system may still have infinitely many solutions if the two equations are scaled copies of the same line, which is a different outcome from having no solution at all.
  • Forgetting to check the answer. Substituting x and y back into both original equations is the fastest way to catch an arithmetic error. If either equation does not balance, recompute the determinants.

Glossary

Simultaneous equations
Two or more equations that must all be true for the same set of variable values at once.
Coefficient
The number multiplying a variable, for example the 3 in 3x. Here a and b are the x and y coefficients.
Determinant
A single number computed from the coefficients (a₁b₂ − a₂b₁) that tells you whether a unique solution exists.
Cramer rule
A method that solves a linear system using ratios of determinants, one for each unknown.
Consistent system
A system that has at least one solution. An inconsistent system has none.

Frequently asked questions

How does this simultaneous equation solver work?

It uses Cramer rule. First it computes the determinant det = a₁b₂ − a₂b₁ from your six coefficients. If det is not zero, it returns x = (c₁b₂ − c₂b₁) ÷ det and y = (a₁c₂ − a₂c₁) ÷ det, along with the worked steps so you can follow the arithmetic.

What does it mean when the determinant is zero?

A zero determinant means the two lines are parallel, so they do not cross at a single point and there is no unique solution. If the equations are scaled copies of each other the lines coincide and there are infinitely many solutions; if they are parallel but distinct there is no solution.

Can it solve three or more equations?

This tool is built for two equations in two unknowns (x and y). Larger systems use the same determinant idea but with bigger matrices. For a 3-variable system you would need three equations and a 3 by 3 determinant.

How do I write my equations in the right form?

Rearrange each equation into a·x + b·y = c, with the variables on the left and the constant on the right. For example y = 2x + 1 becomes −2x + y = 1, giving a = −2, b = 1 and c = 1.

Is Cramer rule the same as substitution or elimination?

They all reach the same answer for a system that has one. Substitution and elimination manipulate the equations step by step, while Cramer rule plugs the coefficients straight into a determinant formula. Cramer rule is handy because the determinant instantly shows whether a unique solution exists.

Can the coefficients be decimals or negatives?

Yes. Enter any real numbers, including decimals, fractions written as decimals, and negative values. The solver handles them and the result is formatted to trim floating-point noise for readability.