Slope represents the rate of change of a line and is calculated by rise over run. A positive slope indicates the line rises from left to right, while a negative slope rises from right to left. Horizontal lines have a slope of zero as there is no rise, and vertical lines have an undefined slope as the run is zero.