Math · Every step shown

System of Equations Solver

Solve two linear equations in x and y at the same time.

Enter your numbers

Press Solve with steps to see the answer and how to get it.

Job: Algebra
x + y =
x + y =
Your answer

Press Solve with steps to see the answer and every step.

How it works, examples and FAQ

Using Cramer's rule: find D = a1b2 − a2b1, then x = (c1b2 − c2b1) ÷ D and y = (a1c2 − a2c1) ÷ D.

Example: 2x + 3y = 13 and x − y = 1 — D = (2)(−1) − (1)(3) = −5, giving x = 3.2 and y = 2.2.

What method does this calculator use?
Cramer's rule, which uses determinants to solve directly for x and y without substitution.

What if the two lines are parallel?
There's no single solution — the calculator will tell you the lines never meet.

What's the solution to 2x + 3y = 13 and x − y = 1?
x = 3.2, y = 2.2.

More math calculators

Snap a photo of a problem →   All math tools →   All calculators →

These calculators show the method as well as the answer, so you can learn the steps and check your own work. If a result ever looks wrong, tell us on the Contact page with the numbers you entered.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.