A vertical line has an undefined slope because all the points on the line have the same (x)-coordinate. As a result, the formula used to calculate slope has a denominator of (0,) which makes the slope undefined.