Straight line graphs show linear relationships, where one quantity changes at a constant rate with another. In the common form y=mx+cy = mx + c, the slope mm and the yy-intercept cc together tell you everything you need to draw the line and compare it with others.

When To Read A Line As y=mx+cy = mx + c

Use this form whenever a relationship has a constant rate of change and is not vertical. In

y=mx+cy = mx + c

mm is the slope, also called the gradient, measuring how much yy changes when xx increases by 11. The number cc is the yy-intercept, the value of yy when x=0x = 0, so the line crosses the yy-axis at (0,c)(0, c).

The sign of mm sets the direction: positive mm rises from left to right, negative mm falls, and m=0m = 0 is horizontal. This form describes non-vertical lines only. Vertical lines are straight lines too, but they have equations like x=4x = 4 and cannot be written as y=mx+cy = mx + c.

The Steps

  1. Read the slope. In y=mx+cy = mx + c, the number mm tells you how steep the line is.
  2. Find the intercept. The number cc is the yy-intercept, so the line crosses the yy-axis at (0,c)(0, c).
  3. Compare slopes. Two non-vertical lines are parallel when they have the same slope but different intercepts.
  4. Check the special case. Vertical lines are straight lines too, but they are written as x=ax = a, not y=mx+cy = mx + c.

For example, in y=3x+2y = 3x + 2, every time xx increases by 11, yy increases by 33, and the line crosses the yy-axis at (0,2)(0, 2), starting 22 units above the origin.

Full Worked Example: Graph y=2x+1y = 2x + 1

Take the line

y=2x+1y = 2x + 1

Find the intercept. When x=0x = 0, y=1y = 1, so the line passes through (0,1)(0, 1).

Read the slope. Since m=2m = 2, moving 11 unit right increases yy by 22, giving a second point (1,3)(1, 3).

Check one more point the same way:

x=2y=2(2)+1=5x = 2 \Rightarrow y = 2(2) + 1 = 5

So (2,5)(2, 5) is on the line. Once you have two correct points, draw the straight line through them.

Compare slopes to test for parallel lines. The lines

y=2x+1andy=2x3y = 2x + 1 \qquad \text{and} \qquad y = 2x - 3

are parallel because both have slope 22. They rise at the same rate, so they never meet, and their different intercepts make them distinct lines. The vertical-line version of this idea: x=1x = 1 and x=5x = 5 are parallel to each other.

Practice: Plot Two Parallel Lines

Graph y=x+4y = -x + 4 and y=x1y = -x - 1 on the same axes. For each, plot the intercept first, then use the slope to step to a second point. Self-check: both have slope 1-1, so the lines should look parallel and never cross; the first crosses the yy-axis at (0,4)(0, 4) and the second at (0,1)(0, -1). If they appear to meet, recheck the slope you used for each step.

Where Each Step Trips People Up

Mixing up cc and the xx-intercept. In y=mx+cy = mx + c, the number cc is the yy-intercept, not the xx-intercept. It tells you where the line crosses the yy-axis.

Assuming equal slopes always mean different parallel lines. If two equations have the same slope and the same intercept, they are the same line. To be parallel as two distinct non-vertical lines, the slopes must match and the intercepts must differ.

Forgetting vertical lines. y=mx+cy = mx + c does not represent vertical lines. A vertical straight line has the form x=ax = a.

Straight line graphs appear wherever one quantity changes at a constant rate with another, such as fixed-price-plus-per-item cost models, distance at constant speed, and unit conversions. They matter because the equation tells you the pattern and the graph lets you see it.

Frequently Asked Questions

What do m and c mean in y = mx + c?
In the equation y equals mx plus c, m is the slope or gradient, measuring how much y changes when x increases by 1, and c is the y-intercept, the value of y when x is zero. The line crosses the y-axis at the point (0, c).
How do you tell if two straight lines are parallel?
Two non-vertical lines are parallel when they have the same slope but different intercepts. For example, y equals 2x plus 1 and y equals 2x minus 3 rise at the same rate and never meet. Vertical lines like x equals 1 and x equals 5 are also parallel to each other.
How do you plot a straight line graph from its equation?
Start at the y-intercept, the point where x equals zero, then use the slope to find a second point: for slope 2, move right 1 and up 2. Check a third point by substituting an x-value into the equation, then draw the straight line through the points.
Can a vertical line be written as y = mx + c?
No. Vertical lines are straight lines, but they have equations like x equals 4, where every point shares the same x-value. They cannot be written in the form y equals mx plus c, which only describes non-vertical lines with a defined slope.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →