System of Equations Solver
Solve simultaneous linear equations.
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
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?
What if the lines are parallel?
Can it solve three equations?
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 YouTubeEssence of linear algebra preview
3Blue1Brown
Big-picture linear algebra for matrix-related calculators.
Watch on YouTube
- Polynomials
Math is Fun
Vocabulary for polynomial simplify and factor tools.
- Systems of Linear Equations
Math is Fun
Two-variable systems for simultaneous equation calculators.