System of Linear Equations Calculator (2 Variables)

System of 2 Linear Equations Calculator system of two equations

Enter the six coefficients of a₁x + b₁y = c₁ and a₂x + b₂y = c₂. The tool applies Cramer's Rule, then cross-checks with elimination and substitution.

Equation (1): a₁x + b₁y = c₁

Equation (2): a₂x + b₂y = c₂

Examples (click to solve):

The calculator above solves a system of two linear equations with Cramer's rule and explains the same result with substitution and elimination.

Formulas used

a₁x + b₁y = c₁, a₂x + b₂y = c₂
D = a₁b₂ − a₂b₁, Dx = c₁b₂ − c₂b₁, Dy = a₁c₂ − a₂c₁
x = Dx/D, y = Dy/D
  • D ≠ 0: one unique solution (the two lines intersect).
  • D = 0, Dx or Dy ≠ 0: no solution (parallel lines).
  • D = Dx = Dy = 0: infinitely many solutions (the lines coincide).
Three relative positions of two lines and the number of solutions of the systemIntersecting linesxyO(d₁): x + y = 3(d₂): x − y = 1M(2; 1)D ≠ 0: one solutionParallel linesxyO(d₁): x + y = 1(d₂): 2x + 2y = 5D = 0, Dₓ ≠ 0: no solutionCoincident linesxyO(d₁): x + y = 2(d₂): 2x + 2y = 4D = Dₓ = Dᵧ = 0: infinitely many
Each equation of the system is a line, and the solution is the set of points the two lines share. Intersecting lines give exactly one solution (D ≠ 0), parallel lines give no solution, and coincident lines give infinitely many solutions. Click Examples 1, 3 and 4 in the calculator above to solve these three systems step by step.

Worked example

Solve x + y = 5 and x − y = 1. Here D = −2, Dx = −6, Dy = −4, so:

x = 3, y = 2

Enter the same values in the calculator above to see every step of the solution.

How to use the calculator

  1. Enter the coefficients a₁, b₁, c₁ and a₂, b₂, c₂.
  2. Press the calculate button. The result appears instantly.
  3. Read the step-by-step solution, rendered with KaTeX, to check your own work.

🎯 Practice quiz: systems of linear equations

Ten multiple-choice questions with four options each, built on the sections above: recognizing a linear system, checking a solution pair, computing D and Dx, the elimination method, the substitution method, the case D = 0, a system with infinitely many solutions, a system with a parameter m and a word problem. Pick an answer: the correct option turns green, a wrong one turns red, and the worked solution appears right below with a ⚠️ Traps box explaining why the wrong options are tempting. You can enter the coefficients from any question into the calculator above to check every step.

1️⃣ Recognizing a linear system Question 1. Which of the following is a system of two linear equations in two variables:

2️⃣ Checking a solution pair Question 2. Which pair (x; y) is a solution of the system 2x + y = 5 and x − y = 1:

3️⃣ Computing the determinant D Question 3. The determinant D of the system 3x − 2y = 4 and 5x + y = 11 is:

4️⃣ Computing Dx and x Question 4. For the system 3x − 2y = 4 and 5x + y = 11 (with D = 13), the value of Dx and the solution x are:

5️⃣ Elimination method Question 5. Solve 2x + 3y = 13 and 2x − y = 1 by elimination. Subtracting equation (2) from equation (1) gives:

6️⃣ Substitution method Question 6. Solve x − 2y = 1 and 3x + y = 10 by substitution. Solving equation (1) for x and substituting into equation (2) gives:

7️⃣ The case D = 0 Question 7. The system 2x − 4y = 3 and −x + 2y = 1:

8️⃣ Infinitely many solutions Question 8. The solution set of the system x − 3y = 2 and −2x + 6y = −4 is:

9️⃣ System with a parameter m Question 9. For which value of m does the system mx + 2y = 1 and 2x + y = 3 have no solution:

🔟 Word problem Question 10. A cinema sells adult tickets for $5 and child tickets for $3. One afternoon it sold 120 tickets and took in $440. How many adult tickets were sold:

🔗 Related calculators