Slope and Graphing Lines
Slope calculation using points
Slope measures how steep a line is and which direction it tilts. You find it by comparing how much the line moves vertically to how much it moves horizontally between two points.
The slope formula is:
where and are two distinct points on the line.
For example, given the points and :
That slope of 2 means for every 1 unit you move right, the line goes up 2 units.
Here's how to interpret the value you get:
- Positive slope: the line rises from left to right (uphill)
- Negative slope: the line falls from left to right (downhill)
- Zero slope: the line is perfectly horizontal (flat), because
- Undefined slope: the line is vertical, because and you can't divide by zero
It doesn't matter which point you label as and which as , as long as you stay consistent. If you swap both the numerator and the denominator, the negatives cancel and you get the same answer.
Point-slope form for graphing
Point-slope form is the go-to equation when you know the slope of a line and one point on it:
where is the slope and is the known point.
To graph a line using point-slope form:
-
Identify the slope and a point on the line
-
Plug those values into
-
Choose a few x-values and solve for the corresponding y-values
-
Plot those points and connect them with a straight line
For example, if and the point is , the equation becomes . Plugging in gives , so . Now you have a second point, , and you can draw the line.

Slope-intercept form for plotting
Slope-intercept form is probably the most common way to write a linear equation:
where is the slope and is the y-intercept, the y-coordinate where the line crosses the y-axis (at the point ).
This form makes graphing straightforward:
- Identify the slope and y-intercept from the equation
- Plot the y-intercept at
- From that point, use the slope to find a second point. Think of slope as . For example, if , move 3 units right and 2 units up
- Draw a straight line through both points
If the slope is negative, like , you'd move 4 units right and 3 units down (or equivalently, 4 units left and 3 units up).
Efficient line graphing methods
The information you're given determines which approach is fastest:
- Given slope and y-intercept: use slope-intercept form directly
- Given slope and a point: plug into point-slope form
- Given two points: calculate the slope first using , then use point-slope form with either point
- Given standard form : solve for to convert to slope-intercept form, then graph from there

Applications and Relationships
Real-world slope-intercept applications
In real-world linear models, the slope represents the rate of change (how fast something increases or decreases per unit), and the y-intercept represents the starting value (the value when ).
A car rental company charges a base fee of $50 plus $0.25 per mile driven. The equation is , where is miles driven and is total cost. The y-intercept (50) is the base fee you pay before driving at all, and the slope (0.25) tells you the cost goes up $0.25 for each additional mile.
A savings account starts with $200 and grows by $100 per month. That's , where is months and is the balance. After 6 months, the balance would be dollars.
Parallel vs perpendicular line slopes
Parallel lines have the exact same slope but different y-intercepts. They never intersect. If one line has slope and another has slope , the lines are parallel when .
For example, and are parallel because both have a slope of 3.
Perpendicular lines cross at a 90° angle. Their slopes are negative reciprocals of each other, meaning:
For example, if one line has slope , a perpendicular line has slope . You flip the fraction and change the sign.
To find the equation of a line parallel or perpendicular to a given line through a specific point:
- Determine the slope of the given line
- Use the same slope (parallel) or the negative reciprocal (perpendicular)
- Plug that slope and the given point into point-slope form
Functions and linear equations
A function is a relationship where each input (x-value) produces exactly one output (y-value). Linear equations like are functions because every x you plug in gives you one and only one y.
You can write linear functions in function notation as . This is the same as , just with replacing . The notation means "plug in 3 for x and find the output."
Not every line is a function, though. Vertical lines (like ) fail the vertical line test because a single x-value maps to infinitely many y-values.