Graphing Linear Equations
Discounts, tax, tips, profit margins
Medication dosages, IV drip rates, vital monitoring
A linear equation in two variables produces a straight line when graphed on a coordinate plane. Learning to graph these equations lets you visualize relationships between quantities — costs and quantities, dosages and weights, distance and time — and quickly identify trends, intercepts, and break-even points.
Slope-Intercept Form:
This is the most common form for graphing. The equation gives you two pieces of information directly:
- = the slope (steepness and direction of the line)
- = the y-intercept (where the line crosses the -axis)
How to Graph from Slope-Intercept Form
- Plot the y-intercept on the -axis
- Use the slope to find a second point: from the y-intercept, move up (or down) by the rise and right by the run
- Draw a straight line through both points and extend it in both directions
Example 1: Graph
Step 1 — Identify slope and y-intercept:
(rise 2, run 1),
Step 2 — Plot the y-intercept: Place a point at .
Step 3 — Use the slope: From , move up 2 and right 1 to reach .
Step 4 — Plot a third point for accuracy: From , move up 2 and right 1 to reach .
Step 5 — Draw the line through , , and .
Graph of y = 2x + 1
Example 2: Graph
Step 1 — Identify slope and y-intercept:
(down 3, right 4),
Step 2 — Plot the y-intercept: Place a point at .
Step 3 — Use the slope: From , move down 3 and right 4 to reach .
Step 4 — Draw the line through the points. The negative slope means the line falls from left to right.
Graphing Using X and Y Intercepts
An alternative method that works well when the equation is not in slope-intercept form.
- The y-intercept is found by setting
- The x-intercept is found by setting
Example 3: Graph
Find the y-intercept (set ):
Y-intercept:
Find the x-intercept (set ):
X-intercept:
Draw the line through and .
Point-Slope Form:
Use this form when you know the slope and one point on the line (but not necessarily the y-intercept).
Example 4: Write and graph the equation of a line with slope passing through
Step 1 — Substitute into point-slope form:
Step 2 — Convert to slope-intercept form (optional, for graphing):
Step 3 — Graph: The y-intercept is and the slope is 3. Plot , then move up 3 and right 1 to , then to .
Horizontal and Vertical Lines
Horizontal lines have the form (where is a constant). The slope is 0.
- Example: is a flat line crossing the -axis at 4
Vertical lines have the form . The slope is undefined.
- Example: is a vertical line crossing the -axis at
Vertical lines are not functions because a single -value maps to infinitely many -values.
Real-World Application: Retail — Break-Even Analysis
A small business sells custom phone cases. The costs and revenue can be modeled as linear equations:
- Cost: (each case costs $5 to produce, plus $200 in fixed monthly expenses)
- Revenue: (each case sells for $12)
To graph these:
Cost line: y-intercept at , slope of 5 (up 5, right 1)
Revenue line: y-intercept at , slope of 12 (up 12, right 1)
The break-even point is where the two lines intersect. Setting cost equal to revenue:
The business must sell approximately 29 cases to break even. On a graph, you can see this visually: below 29 cases the cost line is above the revenue line (operating at a loss), and above 29 cases the revenue line is higher (profit).
Common Mistakes to Avoid
-
Plotting slope backwards. Slope is , not . For , move up 2 and right 3 — not up 3 and right 2.
-
Forgetting the negative in a negative slope. For , you move down 3 and right 4 (or up 3 and left 4).
-
Confusing x-intercept and y-intercept. The y-intercept is where ; the x-intercept is where .
-
Not plotting enough points. Two points define a line, but plotting a third point helps you catch errors.
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Identify the slope and y-intercept of .
Slope:
Y-intercept: , so the line crosses the -axis at
Answer: Slope is , y-intercept is .
Problem 2: Find the x-intercept and y-intercept of .
Y-intercept (set ): . Point:
X-intercept (set ): . Point:
Answer: Y-intercept is ; x-intercept is .
Problem 3: Write the equation of a line with slope passing through in slope-intercept form.
Start with point-slope:
Distribute:
Add 1:
Answer:
Problem 4: A plumber charges a $75 service call fee plus $50 per hour. Write the equation and identify the y-intercept and slope.
The slope is (cost increases $50 per hour). The y-intercept is (the base fee before any work begins).
Answer: , slope = , y-intercept = .
Problem 5: Is the line horizontal or vertical? What is its slope?
is a vertical line. Every point on this line has regardless of the -value.
The slope is undefined (the run is 0, and you cannot divide by zero).
Answer: Vertical line, undefined slope.
Key Takeaways
- Slope-intercept form () gives you the slope and y-intercept directly — it is the fastest way to graph a line
- Point-slope form () is useful when you know a point and the slope but not the y-intercept
- Intercept method: set to find the y-intercept and to find the x-intercept, then connect them
- Horizontal lines () have zero slope; vertical lines () have undefined slope
- Graphing lets you visualize relationships and quickly identify key values like break-even points and trends
Return to Algebra for more topics in this section.
Next Up in Algebra
Last updated: March 28, 2026