Identify two points on the line: ((x_1, y_1)) and ((x_2, y_2))
Compute the slope:
(m = dfrac{y_2 – y_1}{x_2 – x_1})
If using rise/run:
(m = dfrac{text{rise}}{text{run}}) where rise (= y_2 – y_1) and run (= x_2 – x_1)
If the line is vertical:
slope is undefined
If the line is horizontal:
slope is (0)
Optional: simplify the fraction for the slope
Optional: write the slope-intercept form:
(y = mx + b) where (m) is the slope
