Slope Calculator

Calculate the slope of a line passing through two points. Visualize the line and understand the formula.

Enter Point Coordinates

Result:

Slope Formula: $$m = rac{y_2 - y_1}{x_2 - x_1}$$

Understanding Slope

In mathematics, the slope or gradient of a line is a number that describes both the direction and the steepness of the line. Slope is often denoted by the letter 'm'.

It's calculated as the "rise" over the "run", or the change in vertical distance divided by the change in horizontal distance between two points on the line.

Formula: The slope (m) of a line passing through points (x1, y1) and (x2, y2) is given by: $$m = rac{y_2 - y_1}{x_2 - x_1}$$

A positive slope indicates an upward direction, a negative slope indicates a downward direction, a zero slope indicates a horizontal line, and an undefined slope (vertical line) occurs when x1 = x2.

Use Cases:

Source: Wikipedia - Slope