Graphing Linear Equations
To graph a linear equation, create and plot at least two correct ordered pairs, then draw the straight line through them. In , gives the -intercept and gives the rise-over-run slope; a linear graph need not pass through the origin.
Once you know how to draw and interpret these graphs, you can reverse the process for writing linear equations from a coordinate plane.
What does graphing a linear equation mean?
Graphing a linear equation creates a visual representation of all the solutions to that equation. The result is always a straight line on the coordinate plane.
Every individual point on the line has an -coordinate and a -coordinate. When you substitute those values back into the equation, they make the statement true. Because there are infinite combinations of and that balance linear equations, the line continues endlessly in both directions.
Graph from a value table
You can graph any linear equation by calculating a small set of coordinate pairs.
To use a value table, choose simple numbers for the independent variable , substitute them into the equation, and calculate the corresponding values for . Once you have your ordered pairs, plot points on a graph and connect them.
While you only need two points to draw a straight line, it is best practice to calculate three. The third point acts as a check; if all three points do not line up perfectly, you know there is a calculation error.
Graph using slope and y-intercept
When a linear equation is written in slope-intercept form, , you can graph it quickly without a value table.
The variable represents the -intercept, which is the exact point where the line crosses the vertical -axis. Its coordinate is always . This provides your starting point.
The variable represents the slope of a line. Slope measures the steepness and direction as a ratio of the vertical change (rise) to the horizontal change (run). From your starting -intercept, count the rise and the run to find the next point on the line.
Use intercepts when useful
Sometimes equations are given in standard form, such as . In these cases, finding the two intercepts is often the fastest graphing method.
The x-intercept has a y-coordinate of 0, and the y-intercept has an x-coordinate of 0.
Substitute into the equation and solve for to find the -intercept. Then, substitute into the equation and solve for to find the -intercept. Plot these two points on the axes and draw the line connecting them.
Check the line
Always verify your graphed line by selecting a random test point. Pick any point that lies on your drawn line but was not one of your initial calculated points.
Substitute the and values of this test point back into the original equation. If both sides of the equation equal the same number, your graph is correct.
Worked examples
Example 1: Graphing using a value table
Question: Graph the equation using a table of values.
Method:
- Choose three simple values for , such as , , and .
- Substitute each into the equation to calculate .
Ordered Pair | |||
3. Plot the three ordered pairs on the coordinate plane and draw a straight line through them.
Answer:

Check: Test . The equation gives . The point falls exactly on the drawn line.
Example 2: Graphing using slope and intercept
Question: Graph the equation .
Method:
- Identify the -intercept from the equation. The constant is , so the starting point is .
- Identify the slope. The coefficient is . This means a rise of unit for a run of units to the right.
- Start at , move up and right to find the next point .
Answer:

Check: Test . The point on the graph is . Using the equation, . The point is correct.
Example 3: Graphing using intercepts
Question: Graph the line by finding its intercepts.
Method:
- Find the -intercept by setting .
The -intercept is .
- Find the -intercept by setting .
The -intercept is .
- Plot and and draw the line through them.
Answer:

Check: Test the point which lies on the visual graph. Substitute into : . The values match perfectly.
Common mistakes
- Drawing a short segment instead of a line: Linear equations represent infinite solutions. If you only join your two calculated points, you are drawing a line segment. Always extend the line across the entire grid and place arrows at the ends.
- Unequal axis spacing: The scale on each axis must be consistent. If one grid square represents unit, it must represent unit everywhere on that axis.
- Reversing coordinates: An ordered pair is always . A common plotting error is moving vertically first and horizontally second, which plots the point backwards as .
Frequently asked questions
Are there other ways to represent linear equations?
Yes. While slope-intercept form () is common, you can also write linear equations in standard form () and point-slope form (). All forms produce the same straight line when graphed.
Do linear equations have exponents?
The variables in linear equations only have an exponent of . If an equation contains , , or variables inside a square root, it will not form a straight line when graphed.
Practice questions

Which equation is represented by the line shown in the graph?
What are the -intercept and -intercept of the line ?
-intercept: , -intercept:
-intercept: , -intercept:
-intercept: , -intercept:
-intercept: , -intercept:
-intercept: , -intercept:
A line has a -intercept of and a slope of . Which pair of points lies on this line?
and
and
and
and
and

The graph represents the line . What is the value of when based on the graph?
Which of the following equations represents a line that passes through the origin?
