Algebra

Solving Systems by Graphing

Last updated: March 2026 · Intermediate
Before you start

You should be comfortable with:

Real-world applications
💰
Retail & Finance

Discounts, tax, tips, profit margins

🌡️
HVAC

Refrigerant charging, airflow, system sizing

Graphing is the most visual method for solving a system of two linear equations. You plot both lines on the same coordinate plane, and the point where the lines cross is the solution. While not always the most precise method for finding exact answers, graphing builds powerful intuition about what systems of equations really mean and makes the three possible outcomes — one solution, no solution, or infinitely many solutions — immediately obvious.

How to Solve a System by Graphing

The process is straightforward:

  1. Rewrite each equation in slope-intercept form (y=mx+by = mx + b) so you can identify the slope and y-intercept
  2. Plot the y-intercept of each line on the coordinate plane
  3. Use the slope to plot additional points for each line (rise over run from the y-intercept)
  4. Draw both lines and identify where they intersect
  5. Read the intersection point as your solution (x,y)(x, y)
  6. Check by substituting the coordinates into both original equations

Example 1: Finding the Intersection

Solve by graphing:

y=2x1y = 2x - 1

y=x+5y = -x + 5

Line 1: y=2x1y = 2x - 1 has slope m=2m = 2 and y-intercept b=1b = -1.

Starting at the point (0,1)(0, -1), use the slope to find more points. A slope of 2 means rise 2, run 1:

  • (0,1)(0, -1)
  • (1,1)(1, 1)
  • (2,3)(2, 3)

Line 2: y=x+5y = -x + 5 has slope m=1m = -1 and y-intercept b=5b = 5.

Starting at (0,5)(0, 5), a slope of 1-1 means drop 1, run 1:

  • (0,5)(0, 5)
  • (1,4)(1, 4)
  • (2,3)(2, 3)

Both lines pass through the point (2,3)(2, 3). That is the intersection.

Answer: (x,y)=(2,3)(x, y) = (2, 3)

Check: Line 1: y=2(2)1=3y = 2(2) - 1 = 3 . Line 2: y=(2)+5=3y = -(2) + 5 = 3 . Both true.

Example 2: Converting to Slope-Intercept Form First

Solve by graphing:

2x+y=62x + y = 6

xy=0x - y = 0

Step 1 — Convert to slope-intercept form.

Equation 1: 2x+y=6    y=2x+62x + y = 6 \implies y = -2x + 6

Equation 2: xy=0    y=xx - y = 0 \implies y = x

Step 2 — Identify slope and y-intercept for each.

Line 1: slope =2= -2, y-intercept =6= 6

Line 2: slope =1= 1, y-intercept =0= 0

Step 3 — Plot points.

Line 1: (0,6)(0, 6), (1,4)(1, 4), (2,2)(2, 2), (3,0)(3, 0)

Line 2: (0,0)(0, 0), (1,1)(1, 1), (2,2)(2, 2), (3,3)(3, 3)

Both lines pass through (2,2)(2, 2).

Answer: (x,y)=(2,2)(x, y) = (2, 2)

Check: Equation 1: 2(2)+2=62(2) + 2 = 6 . Equation 2: 22=02 - 2 = 0 . Both true.

The Three Possible Outcomes

When you graph two lines, exactly one of three things will happen. Learning to recognize each case visually is a key skill.

Case 1: One Solution (Intersecting Lines)

When two lines have different slopes, they will always cross at exactly one point. This is the most common case.

y=3x+1y = 3x + 1

y=12x+8y = -\frac{1}{2}x + 8

These lines have slopes of 33 and 12-\frac{1}{2}. Since 3123 \neq -\frac{1}{2}, the lines intersect at exactly one point. To find it algebraically (to confirm your graph):

3x+1=12x+83x + 1 = -\frac{1}{2}x + 8

3x+12x=73x + \frac{1}{2}x = 7

72x=7\frac{7}{2}x = 7

x=2x = 2

y=3(2)+1=7y = 3(2) + 1 = 7

Intersection point: (2,7)(2, 7)

Case 2: No Solution (Parallel Lines)

When two lines have the same slope but different y-intercepts, they are parallel and never intersect.

y=3x+2y = 3x + 2

y=3x4y = 3x - 4

Both lines have slope m=3m = 3, but different y-intercepts (22 and 4-4). On a graph, these lines run side by side and never touch. There is no solution.

How to recognize it: Same slope, different y-intercept. The system is called inconsistent.

Case 3: Infinitely Many Solutions (Same Line)

When two equations describe the same line (same slope and same y-intercept), every point on the line is a solution.

y=2x+3y = 2x + 3

4x2y=64x - 2y = -6

Convert the second equation: 2y=4x6    y=2x+3-2y = -4x - 6 \implies y = 2x + 3. This is identical to the first equation.

On a graph, you would draw one line directly on top of the other. There are infinitely many solutions.

How to recognize it: Both equations simplify to the same slope-intercept form. The system is called dependent.

Quick-Check: Slopes Tell the Story

Before graphing, you can predict the outcome by comparing slopes:

SlopesY-InterceptsLinesSolutions
DifferentAnyIntersectingExactly one
SameDifferentParallelNone
SameSameIdenticalInfinitely many

Advantages and Limitations of the Graphing Method

Advantages:

  • Gives a visual picture of the relationship between two equations
  • Makes special cases (parallel, identical) immediately obvious
  • Helps you estimate an answer quickly, even before solving algebraically
  • Builds geometric intuition for what “solving a system” means

Limitations:

  • Hard to read exact answers when the intersection involves fractions (e.g., the point (23,74)\left(\frac{2}{3}, \frac{7}{4}\right) is difficult to pinpoint on a hand-drawn graph)
  • Time-consuming compared to substitution or elimination
  • Requires a carefully drawn coordinate plane for accuracy
  • Not practical for large coefficients without graphing technology

When to use graphing: Use it when you want a visual overview, when the answer is likely to involve integers, or when you have access to graphing technology (like Desmos or a graphing calculator). Use substitution or elimination when you need exact answers with fractions or decimals.

Real-World Application: HVAC — Comparing Heating System Costs

An HVAC technician is advising a homeowner on two heating system options:

  • System A (heat pump): $4,800 installation cost plus $85 per month in operating costs: y=85x+4800y = 85x + 4800
  • System B (gas furnace): $2,200 installation cost plus $145 per month in operating costs: y=145x+2200y = 145x + 2200

Here, xx represents the number of months and yy represents the total cost.

Graphing these two lines:

System A starts higher (y-intercept of 4800) but rises more slowly (slope of 85).

System B starts lower (y-intercept of 2200) but rises more quickly (slope of 145).

Finding the break-even point (intersection):

85x+4800=145x+220085x + 4800 = 145x + 2200

48002200=145x85x4800 - 2200 = 145x - 85x

2600=60x2600 = 60x

x=26006043.3x = \frac{2600}{60} \approx 43.3

At about 43 months (roughly 3 years and 7 months), both systems have cost the same total amount:

y=85(43.3)+48008481y = 85(43.3) + 4800 \approx 8481

Interpretation: If the homeowner plans to stay longer than about 3.5 years, the heat pump (System A) saves money in the long run despite the higher upfront cost. The graph makes this crossover point easy to see visually.

Common Mistakes to Avoid

  1. Sloppy plotting. Inaccurate graphs lead to wrong answers. Use graph paper or a ruler, and be precise with your scale.
  2. Misreading the intersection. Double-check by substituting your answer into both equations. If the point does not satisfy both, re-examine your graph.
  3. Forgetting to convert to slope-intercept form. If an equation is in standard form like 3x+2y=123x + 2y = 12, you must solve for yy first to identify the slope and y-intercept.
  4. Assuming the intersection is at integer coordinates. Just because the grid has whole-number lines does not mean the answer is a whole number. If the lines appear to cross between grid points, the exact answer likely involves fractions.
  5. Drawing only two points per line. Two points define a line, but plotting a third point catches errors. Always plot at least three points for each line.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Solve by graphing: y=x+1y = x + 1 and y=x+5y = -x + 5

Line 1: slope =1= 1, y-intercept =1= 1. Points: (0,1)(0, 1), (1,2)(1, 2), (2,3)(2, 3)

Line 2: slope =1= -1, y-intercept =5= 5. Points: (0,5)(0, 5), (1,4)(1, 4), (2,3)(2, 3)

Both lines pass through (2,3)(2, 3).

Answer: (2,3)(2, 3)

Problem 2: Without graphing, determine whether this system has one solution, no solution, or infinitely many: y=4x3y = 4x - 3 and y=4x+7y = 4x + 7

Both lines have slope m=4m = 4, but different y-intercepts (3-3 and 77). The lines are parallel.

Answer: No solution (parallel lines).

Problem 3: Solve by graphing: y=12x+2y = \frac{1}{2}x + 2 and y=2x+7y = -2x + 7

Line 1: slope =12= \frac{1}{2}, y-intercept =2= 2. Points: (0,2)(0, 2), (2,3)(2, 3), (4,4)(4, 4)

Line 2: slope =2= -2, y-intercept =7= 7. Points: (0,7)(0, 7), (1,5)(1, 5), (2,3)(2, 3)

Both lines pass through (2,3)(2, 3).

Answer: (2,3)(2, 3)

Check: 12(2)+2=3\frac{1}{2}(2) + 2 = 3 and 2(2)+7=3-2(2) + 7 = 3 . Both true.

Problem 4: Convert to slope-intercept form and solve by graphing: x+y=4x + y = 4 and 3xy=03x - y = 0

Equation 1: y=x+4y = -x + 4 (slope =1= -1, y-intercept =4= 4)

Equation 2: y=3xy = 3x (slope =3= 3, y-intercept =0= 0)

Line 1 points: (0,4)(0, 4), (1,3)(1, 3), (2,2)(2, 2)

Line 2 points: (0,0)(0, 0), (1,3)(1, 3), (2,6)(2, 6)

Both lines pass through (1,3)(1, 3).

Answer: (1,3)(1, 3)

Check: 1+3=41 + 3 = 4 and 3(1)3=03(1) - 3 = 0 . Both true.

Problem 5: A retail manager compares two shipping services. Service A charges $200 per month plus $2 per package. Service B charges $50 per month plus $5 per package. Write the system and find the break-even point.

Let xx = number of packages per month, yy = total monthly cost.

Service A: y=2x+200y = 2x + 200

Service B: y=5x+50y = 5x + 50

Set equal: 2x+200=5x+502x + 200 = 5x + 50

150=3x150 = 3x

x=50x = 50

y=2(50)+200=300y = 2(50) + 200 = 300

Answer: The break-even point is at 50 packages per month costing $300. Below 50 packages, Service B is cheaper. Above 50, Service A is cheaper.

Problem 6: Determine whether this system has one solution, no solution, or infinitely many: 2x6y=122x - 6y = 12 and x3y=6x - 3y = 6

Convert both to slope-intercept form:

Equation 1: 6y=2x+12    y=13x2-6y = -2x + 12 \implies y = \frac{1}{3}x - 2

Equation 2: 3y=x+6    y=13x2-3y = -x + 6 \implies y = \frac{1}{3}x - 2

Both equations are identical: same slope (13)\left(\frac{1}{3}\right) and same y-intercept (2)(-2).

Answer: Infinitely many solutions (the equations represent the same line).

Key Takeaways

  • Solving by graphing means plotting both lines and finding where they cross — the intersection point is the solution
  • Different slopes guarantee exactly one intersection (one solution); same slope, different intercept means parallel lines (no solution); identical equations overlap completely (infinitely many solutions)
  • Always convert equations to slope-intercept form (y=mx+by = mx + b) before graphing
  • Plot at least three points per line and verify your intersection by substituting back into both equations
  • Graphing is best for building visual understanding and for problems with integer solutions; use algebraic methods (substitution or elimination) when precision with fractions is needed

Return to Algebra for more topics in this section.

Last updated: March 29, 2026