The Gradient of a straight-line is defined as its vertical rise upon its horizontal shift between two points. To calculate the gradient of a straight line we choose two points on the line itself. From these two points we calculate: The difference in height (y co-ordinates) ÷ The difference in width (x co-ordinates). If the answer is a positive value then the line is uphill in direction. The Gradient (also called slope of a straight line) shows how steep a straight line is. Formula: m= The vertical rise/ The horizontal shift= BC/AC Divide the change in height by the change in horizontal distance: