Asistente RD

System of equations solver (2x2)

Solve a 2x2 linear system with Cramer’s rule: enter a1, b1, c1, a2, b2, c2 and get x, y, the determinant and the full step-by-step. Free, no sign-up.

Free · No sign-up · In your browser

Enter the six coefficients of the system a₁x + b₁y = c₁ and a₂x + b₂y = c₂. The solution, the determinant and the step-by-step update as you type.

Equation 1 — a₁x + b₁y = c₁

Equation 2 — a₂x + b₂y = c₂

System

2x + 3y = 13

1x − 1y = -1

Determinant (det = a₁·b₂ − a₂·b₁)

-5

Solution

x = 2, y = 3

Step by step

det = a₁·b₂ − a₂·b₁ = (2)·(-1) − (1)·(3) = -5

x = (c₁·b₂ − c₂·b₁) / det = -10 / -5 = 2

y = (a₁·c₂ − a₂·c₁) / det = -15 / -5 = 3

det not equal to 0: the system has a single unique solution.

Share on WhatsApp Last reviewed: July 9, 2026

What a 2x2 system of equations is

A linear system of two equations with two unknowns looks like this:

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

Solving it means finding the pair (x, y) that satisfies both equations at once. Geometrically, each equation is a straight line in the plane, and the solution is the point where they cross. That is why three outcomes are possible: the lines meet at a single point (one unique solution), they are parallel (no solution), or they are exactly the same line (infinitely many solutions).

These systems turn up in mixture problems, prices, ages, speeds, and almost any situation with two unknown quantities linked by two conditions. This calculator solves them right inside your browser, without sending any data, and shows you the determinant and the full step-by-step.

How to use the calculator

  1. Type the three coefficients of the first equation: a₁, b₁ and c₁.
  2. Type the three of the second equation: a₂, b₂ and c₂.
  3. Read the solution, the determinant and the working instantly. There is no “calculate” button.
  4. Press Copy result to drop the summary into your notes. An empty box is treated as 0.

Cramer’s rule

The most direct method for a 2x2 system is Cramer’s rule. First you compute the system’s determinant:

det = a₁·b₂ − a₂·b₁

If det is not zero, there is a single solution:

x = (c₁·b₂ − c₂·b₁) / det y = (a₁·c₂ − a₂·c₁) / det

If det is zero, the lines are parallel and there is no unique solution. To tell the two possible cases apart you look at the numerators: if both are also zero, the equations describe the same line and there are infinitely many solutions; if either one is non-zero, the lines are parallel but distinct and the system has no solution.

DeterminantMeaningExample
det not equal to 0Unique solution2x + 3y = 13 ; x − y = −1
det = 0, distinct linesNo solutionx + y = 2 ; 2x + 2y = 5
det = 0, same lineInfinitely many solutionsx + y = 2 ; 2x + 2y = 4

Worked example

Let’s solve the system 2x + 3y = 13 and x − y = −1. Here a₁ = 2, b₁ = 3, c₁ = 13, a₂ = 1, b₂ = −1, c₂ = −1.

  • Determinant: det = a₁·b₂ − a₂·b₁ = 2·(−1) − 1·3 = −2 − 3 = −5.
  • Since det is not zero, there is a unique solution.
  • Numerator of x: c₁·b₂ − c₂·b₁ = 13·(−1) − (−1)·3 = −13 + 3 = −10, so x = −10 / −5 = 2.
  • Numerator of y: a₁·c₂ − a₂·c₁ = 2·(−1) − 1·13 = −2 − 13 = −15, so y = −15 / −5 = 3.

Check: in the first equation, 2·2 + 3·3 = 4 + 9 = 13 ✓; in the second, 2 − 3 = −1 ✓. The solution (2, 3) satisfies both.

Frequently asked questions

What does a zero determinant mean?

It means the two lines share the same slope: they are parallel. When that happens there is no single crossing point. If they also coincide completely, they share every point (infinitely many solutions); if they are separated, they never meet (no solution).

How do I tell “no solution” from “infinitely many solutions”?

With the Cramer numerators. If det = 0 and both c₁·b₂ − c₂·b₁ and a₁·c₂ − a₂·c₁ are zero, the equations are proportional to each other: the same line, infinitely many solutions. If either one is non-zero, the lines are parallel but distinct and the system is inconsistent.

Does it work with negative or decimal coefficients?

Yes. You can type negative numbers and decimals in any box. The calculator rounds the output to 4 decimals so it stays readable, but it computes at your device’s full precision.

Is this the same as substitution or elimination?

The result is identical; only the path differs. Substitution, equalization, elimination and Cramer all reach the same solution. Cramer is especially handy for the 2x2 case because it boils down to three small determinants and avoids isolating variables by hand.

Can I solve three-equation systems here?

No, this tool is built for the 2x2 case, which is the most common in secondary and high school. For larger systems you use methods such as Gaussian elimination or Cramer’s rule with bigger matrices.

Related tools