A horizontal line has slope zero since it does not rise vertically (i.e. y1 − y2 = 0), while a vertical line has undefined slope since it does not run horizontally (i.e. x1 − x2 = 0).
- What is the slope of a horizontal or vertical line?
- Does a vertical line have a slope?
- Do horizontal lines have a slope?
What is the slope of a horizontal or vertical line?
Horizontal lines go side to side and have a slope of 0. Vertical lines go up and down and have a slope that is undefined.
Does a vertical line have a slope?
Vertical lines are said to have "undefined slope," as their slope appears to be some infinitely large, undefined value. See the graphs below that show each of the four slope types.
Do horizontal lines have a slope?
Slope of a horizontal line. When two points have the same y-value, it means they lie on a horizontal line. The slope of such a line is 0, and you will also find this by using the slope formula.