The gradient of a line measures how steep the line is, and can be positive, negative, or zero. The gradient is calculated by taking the change in y over the change in x between two points on the line. If the line is vertical, its gradient cannot be determined. Examples are provided to demonstrate calculating the gradient using points on a line and the formula for change in y over change in x.