What is the Slope of a Vertical Line?

The slope of a vertical line is infinity. By contrast, the slope of a horizontal line is zero. These values are obtained by dividing the change in y by the change in x, or the rise divided by the run. Since there is never a change in x for a vertical line (this ‘change’ is always zero), the slope is something divided by zero, which is infinity.