How it works

A 2x2 system is two linear equations in two unknowns: a₁x + b₁y = c₁ and a₂x + b₂y = c₂. The determinant D = a₁b₂ − a₂b₁ decides everything. When D is not zero there is exactly one solution, and Cramer's rule finds it: x = (c₁b₂ − c₂b₁)/D and y = (a₁c₂ − a₂c₁)/D.

This solver shows the elimination work behind that formula: it multiplies the equations by b₂ and b₁, subtracts to isolate x, divides by D, then back-substitutes to get y. When D = 0 the lines are parallel, and the constants tell you whether they coincide (infinitely many solutions) or never meet (no solution). All arithmetic is exact rational arithmetic, so 1/3 shows up as 1/3, not 0.333333.

Worked example

Try it with these numbers

The result card above already shows this example — change any field and hit Solve.

FAQ

Quick answers

How do you solve a system of two equations?

Eliminate one variable: multiply the equations so the y-coefficients match, subtract, and solve the remaining equation for x. Then substitute x back into either equation to get y. This page shows each of those moves for your numbers.

What does the determinant D tell me?

D = a₁b₂ − a₂b₁. If D is not zero the system has one unique solution. If D is zero the lines are parallel: same-line systems have infinitely many solutions, and different constants mean no solution at all.

Can I enter fractions?

Yes. Coefficients and constants accept fractions like 3/4 and decimals like 1.5. The answer is computed with exact rational arithmetic, so fractions stay exact instead of being rounded.

Related solvers

Keep going

Every calculator on one page: all mathplum calculators.