System of Equations Solver

Solve simultaneous linear equations.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter two linear equations in x and y, one per line, to find where the lines cross. 2x + y = 5 and x − y = 1 meet at (2, 1).

How to use

1
Step 1
Type the first equation on one line.
2
Step 2
Type the second equation on the next line.
3
Step 3
Press Calculate.

How it works

Two lines either cross at one point, never meet (parallel) or lie on top of each other. The tool solves the pair by elimination and reports the single crossing point. For 3x + 2y = 12 and x − y = 1, adding twice the second equation to the first gives 5x = 14, so x = 2.8.

a₁x + b₁y = c₁,  a₂x + b₂y = c₂  →  x = (c₁b₂ − c₂b₁) ÷ (a₁b₂ − a₂b₁)

Worked example

A non-integer crossing point

Input
3x + 2y = 12 x - y = 1
Output
x = 2.8, y = 1.8
Walkthrough
From the second line x = y + 1. Substituting: 3(y + 1) + 2y = 12, so 5y = 9, y = 1.8 and x = 2.8.

Limitations

  • Two linear equations in x and y only. A 3×3 system or a nonlinear term such as x² returns an error; use Cramer's rule or the matrix equations solver. Forms like x/2 + y = 3 and y = 3x − 1 are accepted.
  • Parallel or identical lines, such as x + y = 2 with 2x + 2y = 4, return No unique solution.

Questions

What is the solution of 2x + y = 5 and x − y = 1?
x = 2, y = 1.
What if the lines are parallel?
The system has no solution, and the tool reports no unique solution.
Can it solve three equations?
No. It handles two equations in x and y; use the matrix equations solver for larger systems.

Features

  • Natural equation input
  • Detects no unique solution
  • Runs in your browser

Guides

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Variables on both sides — example

    Khan Academy

    Worked example to check against solver output.

    Watch on YouTube
  • Essence of linear algebra preview

    3Blue1Brown

    Big-picture linear algebra for matrix-related calculators.

    Watch on YouTube