Graph Linear Function Worksheet: Step-by-Step Guide

Charts & pivot tables · Updated November 23, 2026

A linear function worksheet typically asks you to graph equations like y = mx + b by plotting points, finding the slope and y-intercept, or using a table of values. To graph any linear function, start by identifying the slope (m) and y-intercept (b) from the equation, plot the y-intercept on the y-axis, then use the slope to find a second point and draw the line through both points.

What Is a Linear Function?

A linear function is a relationship between two variables that forms a straight line when graphed. Its standard form is y = mx + b, where m is the slope (how steep the line is) and b is the y-intercept (where the line crosses the y-axis). For example, in y = 2x + 1, the slope is 2 and the y-intercept is 1. Linear functions have a constant rate of change: every time x increases by 1, y changes by the same amount (the slope). This constant change is what makes the graph a straight line, unlike quadratic or exponential functions that curve.

How to Graph a Linear Function: The Core Method

The most reliable method for graphing a linear function from an equation is the slope-intercept method. Here are the steps, which you can apply to any worksheet problem:

  1. Identify m and b from the equation y = mx + b. If the equation is not in this form, rearrange it. For example, 2x + y = 4 becomes y = -2x + 4.
  2. Plot the y-intercept (b) on the y-axis. For y = -2x + 4, put a point at (0, 4).
  3. Use the slope (m) to find a second point. Slope is rise over run: from the y-intercept, move up (if positive) or down (if negative) by the numerator, then right by the denominator. For slope -2, write it as -2/1: from (0,4), move down 2 and right 1 to get (1,2).
  4. Plot the second point and draw a straight line through both points, extending it in both directions with arrows.
  5. Label the line with its equation if the worksheet asks for it.

If the slope is a whole number like 3, treat it as 3/1. If the slope is 0, the line is horizontal at y = b. If the slope is undefined (e.g., x = 2), the line is vertical—this is not a function but appears on some worksheets.

Using a Table of Values to Graph

Many worksheets ask you to complete a table of x and y values before graphing. This method is especially useful when the equation is given in standard form (Ax + By = C) or when you want to verify your slope-intercept graph. To build a table:

  • Choose at least three x-values, typically -2, 0, and 2.
  • Substitute each x into the equation to find the corresponding y.
  • For y = 3x - 1: if x = -2, y = 3(-2) – 1 = -7; if x = 0, y = -1; if x = 2, y = 5.
  • Plot the points (x, y) on a coordinate plane and connect them with a straight line.

Using three points is a good habit because it catches arithmetic errors—if the three points don’t form a straight line, you know something is wrong.

Common Problem Types on Worksheets

Linear function worksheets usually mix several types of problems to test different skills. Expect to see:

  • Graph from slope-intercept form: e.g., graph y = (2/3)x - 4.
  • Graph from standard form: e.g., graph 3x + 2y = 6 by finding intercepts or converting to slope-intercept form.
  • Find the equation from a graph: identify the y-intercept and slope by counting rise/run between two points, then write y = mx + b.
  • Find the equation from two points: calculate slope using the formula m = (y2 - y1) / (x2 - x1), then use one point to solve for b.
  • Interpret slope and y-intercept in word problems: e.g., a phone plan costs $20 per month plus $0.10 per minute; write the equation and graph it.

How to Check Your Work

After graphing, verify your line is correct. Pick any x-value from your table or graph, substitute it into the original equation, and confirm the y-value matches what you plotted. Also check that the slope visually matches: if the slope is positive, the line should rise from left to right; if negative, it should fall. For a quick check, use a graphing calculator or an online graphing tool like Desmos—enter the equation and compare the graph to your hand-drawn one. If you’re working without a calculator, test a third point: for y = -2x + 4, if you plotted (0,4) and (1,2), try x=2: y = -2(2)+4 = 0, so (2,0) should also lie on your line.

Common Mistakes and How to Avoid Them

Students often make a few predictable errors on linear function worksheets. Here are the most frequent ones:

  • Confusing slope and y-intercept: Remember that m is the coefficient of x, not the constant term. In y = 3x + 2, slope is 3, y-intercept is 2.
  • Misreading negative slopes: A slope of -2 means you go down 2 and right 1, not up 2 and left 1. Both give the same line, but going down/right is the standard convention.
  • Forgetting to rearrange standard form: If the equation is 2x - y = 4, you must solve for y first: y = 2x - 4. Plotting directly from standard form without converting leads to errors.
  • Plotting the y-intercept on the x-axis: The y-intercept is where the line crosses the y-axis, so the x-coordinate is always 0. For y = 2x + 1, the point is (0,1), not (1,0).
  • Using a non-straightedge: Always use a ruler to draw the line; a wobbly hand-drawn line can make a correct answer look wrong.

Real-World Applications and Why It Matters

Linear functions are everywhere in daily life and in many careers. For instance, if you earn $15 per hour, your total pay is a linear function: pay = 15 * hours. A car rental company might charge a flat fee plus a per-mile rate, which is exactly a slope-intercept equation. In science, linear relationships describe speed (distance = rate × time), converting Celsius to Fahrenheit (F = (9/5)C + 32), and many physics formulas. Understanding how to graph these functions helps you visualize trends, predict future values, and analyze data. On a worksheet, these problems build the foundation for more advanced topics like systems of equations, linear inequalities, and linear regression in statistics.

Frequently Asked Questions

What is the easiest way to graph a linear function?

The easiest method is the slope-intercept method: rewrite the equation as y = mx + b, plot the y-intercept (0, b), then use the slope to find a second point. This is faster than making a table and works for any linear equation that can be solved for y.

How do I graph a linear function with fractions?

Fractions in the slope or y-intercept are handled the same way. For slope 2/3, from the y-intercept, go up 2 and right 3. For a fractional y-intercept like 1/2, plot the point (0, 0.5) as accurately as possible. If the equation is in standard form with fractions, first multiply through by the common denominator to clear them, then convert to slope-intercept form.

What if the worksheet gives me two points instead of an equation?

Use the two points to find the slope: m = (y2 - y1) / (x2 - x1). Then plug the slope and one point into the point-slope form y - y1 = m(x - x1), and simplify to slope-intercept form. For example, points (1,3) and (3,7) give slope (7-3)/(3-1) = 2, then using (1,3) gives y - 3 = 2(x - 1), which simplifies to y = 2x + 1.

Why does my line look wrong when I use a table of values?

Usually it’s an arithmetic error in calculating y for one of the x-values, or you plotted the points incorrectly. Double-check each substitution and make sure you’re counting grid lines correctly. Also, ensure you’re using the same scale on both axes—if the x and y scales differ, the line will look skewed but may still be correct.

Can I use a graphing calculator or app for homework?

Yes, tools like Desmos or a TI-84 calculator are great for checking your work, but many teachers require you to show the steps by hand. Use the calculator to verify your graph, but practice the manual method because tests usually don’t allow calculators. When using an app, enter the equation exactly as given and compare the on-screen line to your drawn one.

What does a zero slope or undefined slope look like?

A zero slope (m = 0) gives a horizontal line, like y = 3. An undefined slope occurs when the equation is x = constant, like x = 2, which is a vertical line. Note that a vertical line is not a function because it fails the vertical line test, but it may appear on worksheets for practice.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.