System of Equations Solver

Solve two linear equations with two variables. Enter the coefficients of each equation to find x and y, calculate the determinant, and verify the solution.

a₁x + b₁y = c₁
a₂x + b₂y = c₂
Equation 1
Coefficient of x
Coefficient of y
Right-hand side
Equation 2
Coefficient of x
Coefficient of y
Right-hand side
Example: 2x + 3y = 12 and x − y = 1 use: a₁=2, b₁=3, c₁=12, a₂=1, b₂=-1, c₂=1 .

How to Solve a System of Equations

A system of two linear equations with two variables can be written as:

a₁x + b₁y = c₁
a₂x + b₂y = c₂

The solution is the point (x, y) that satisfies both equations simultaneously.

Cramer's Rule

This calculator uses the determinant form of Cramer's rule to solve systems with a unique solution.

D = a₁b₂ − a₂b₁

x = (c₁b₂ − c₂b₁) / D

y = (a₁c₂ − a₂c₁) / D

Example

Consider the system:

2x + 3y = 12
x − y = 1

The determinant is:

D = (2)(−1) − (1)(3)
D = −2 − 3
D = −5

Because the determinant is not zero, the system has one unique solution.

Three Possible Outcomes

Geometric Interpretation

Each linear equation represents a line on a coordinate plane. Solving the system means finding the point or points where those lines intersect.

If the lines cross once, there is one solution. If they are parallel and different, there is no solution. If they are exactly the same line, there are infinitely many solutions.