Skip to content
ihateDesmos

Solving systems of equations by graphing

6 min read · Updated 20 October 2026

A system of equations asks for the points that satisfy every equation at once. Each equation is a curve, so the solutions are simply where the curves cross. Graphing shows how many solutions there are at a glance, and a calculator finds them to full precision.

The idea

The graph of an equation is the set of points that satisfy it. A point that lies on both graphs satisfies both equations, so it is a solution of the system. To solve y = 2x − 1 and y = −x + 5, graph both lines and read off where they meet: (2, 3). Check: 2·2 − 1 = 3 and −2 + 5 = 3.

−2246−220
Open in calculator
The lines meet at (2, 3), the solution of the system. Selecting a line marks the intersection.

One, none or infinitely many solutions

  • One solution: lines with different slopes cross exactly once.
  • No solution: parallel lines (same slope, different intercepts) never meet. The system is inconsistent.
  • Infinitely many solutions: two equations describing the same line, such as y = 2x + 1 and 4x − 2y = −2, agree at every point.

Nonlinear systems

The same method works for any curves. A line and a parabola can meet twice, once (tangent) or not at all; a circle and a parabola up to four times. The system x² + y² = 25, y = x² − 5 has three solutions: (0, −5) and (±3, 4). Algebra gets hard quickly here, but the graph shows every solution and the calculator refines each one.

−6−4−2246−4−2240
Open in calculator
A circle and a parabola meeting at three points: (0, −5), (−3, 4) and (3, 4).

How precise is a graphical solution?

By hand, reading coordinates off a grid is accurate to maybe a tenth of a unit, so it is best for counting solutions and estimating them. In the calculator, selecting a curve marks its intersections with every other curve, and each one is refined with Newton’s method to about twelve significant digits, so (2, 3) shows as exactly (2, 3), and irrational solutions are given to full precision.

Checking with algebra

For linear systems, substitution or elimination gives the exact answer. Substituting y = 2x − 1 into y = −x + 5 gives 2x − 1 = −x + 5, so x = 2 and y = 3. The Algebra tab can solve the resulting single equation for you.

Practice

A new problem every time. Answer in any form you like: fractions, decimals, √ and π all work, and equivalent equations count as right.

Problem 1

Solve the system y = −x − 2 and y = x + 4.

Show the answer

Answer: (−3, 1)

  1. Both equal y, so set them equal: −x − 2 = x + 4.
  2. Collect the x terms: −2x = 6, so x = −3.
  3. Then y = −1·(−3) − 2 = 1.
  4. The lines cross at (−3, 1).
Open in the calculator

Frequently asked questions

How do you solve a system of equations by graphing?
Graph each equation on the same axes. The points where the graphs intersect are the solutions.
What does it mean if the lines are parallel?
The system has no solution: parallel lines never meet.
What if the two graphs are the same line?
Then every point on the line is a solution, so there are infinitely many.
Can I solve nonlinear systems by graphing?
Yes. Graph the curves and find every crossing. The calculator marks and refines each intersection.

Keep going

Try it in the calculator

Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.

Open the calculator