Beginner

System of Equations Solver (2x2)

Solve two linear equations in two unknowns (x and y) using Cramer’s rule.
x =
1
y =
2
Determinant
-5
Solution
Step by step
  1. 1

    Determinant

    a₁·b₂ − a₂·b₁ = 2·-1 − 1·3 = -5
    Non-zero determinant confirms a unique solution exists.
  2. 2

    x numerator (c₁b₂ − c₂b₁)

    8·-1 − -1·3 = -5
  3. 3

    x = num_x ÷ det

    -5 ÷ -5 = 1
  4. 4

    y numerator (a₁c₂ − a₂c₁)

    2·-1 − 1·8 = -10
  5. 5

    y = num_y ÷ det

    -10 ÷ -5 = 2
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Formula
det = a₁b₂ − a₂b₁; x = (c₁b₂ − c₂b₁) ÷ det; y = (a₁c₂ − a₂c₁) ÷ det
How this is calculated

You enter six numbers describing two straight lines written as a₁x + b₁y = c₁ and a₂x + b₂y = c₂. Here a₁ and a₂ are the coefficients of x, b₁ and b₂ are the coefficients of y, and c₁ and c₂ are the constants on the right side. All values are plain dimensionless numbers, and decimals or negatives are allowed.

The solver applies Cramer's rule. It first computes the determinant det = a₁b₂ − a₂b₁, which measures whether the two lines actually cross at a single point. It then divides two related cross products by this determinant: x = (c₁b₂ − c₂b₁) ÷ det and y = (a₁c₂ − a₂c₁) ÷ det. The result is the exact intersection point of the two lines.

The key assumption is that the determinant is non-zero. When det = 0 the lines are parallel (no solution) or identical (infinitely many solutions), so no unique x and y exists and the tool flags this instead of dividing by zero. Results are shown to four decimal places, so they are rounded for display.

Examples
InputResult
2x + 3y = 8; x − y = −1x = 1, y = 2

About this calculator

A 2x2 system of linear equations consists of two equations a₁x + b₁y = c₁ and a₂x + b₂y = c₂. Cramer’s rule solves it using the determinant det = a₁b₂ − a₂b₁. When det is non-zero the system has exactly one solution given by x = (c₁b₂ − c₂b₁) ÷ det and y = (a₁c₂ − a₂c₁) ÷ det.

When the determinant equals zero the two lines are either parallel (no solution) or the same line (infinitely many solutions), so no single (x, y) pair can be returned. Geometrically, the solution is the point where the two lines intersect.

Frequently asked questions

Cramer’s rule expresses each unknown as a ratio of determinants. For a 2x2 system it gives x and y directly from the coefficients and constants without elimination.

The determinant tells you whether a unique solution exists. If it is non-zero the lines cross at one point; if it is zero they are parallel or identical and there is no single solution.

Rearrange each equation into the form ax + by = c, then enter the six coefficients a₁, b₁, c₁, a₂, b₂, c₂ in the matching fields.

Also known as

system of equations
2x2 linear system
cramers rule
simultaneous equations
solve for x and y
system solver
two equations two unknowns
calculate x and y

APA

TG we-Calculate Editorial Team. (2026). System of Equations Solver (2x2) [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/system-of-equations-calculator

Chicago

TG we-Calculate Editorial Team. "System of Equations Solver (2x2)." TG we-Calculate. 2026. https://we-calculate.com/calculator/system-of-equations-calculator.

IEEE

TG we-Calculate Editorial Team, "System of Equations Solver (2x2)," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/system-of-equations-calculator

BibTeX

@misc{wecalculate_system_of_equations_calculator, title = {System of Equations Solver (2x2)}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/system-of-equations-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?