📈 Slope Calculator
Enter two coordinate points to calculate the slope (gradient), y-intercept, line equation, angle of inclination, distance between the points, and midpoint.
Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
Slope Formulas
Worked Example — Points (1, 2) and (4, 8)
Frequently Asked Questions
Slope (m) measures how steep a line is — the ratio of vertical change (rise) to horizontal change (run) between any two points on the line. A larger absolute value means a steeper line.
Use the formula m = (y₂ − y₁) / (x₂ − x₁). Subtract the y-coordinates and divide by the difference in x-coordinates. For example, points (2, 3) and (6, 11): m = (11−3)/(6−2) = 8/4 = 2.
The y-intercept (b) is the point where the line crosses the y-axis (where x = 0). Once you have the slope, calculate it as b = y₁ − m × x₁ using either of the two given points.
Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept. It makes it easy to graph a line — start at (0, b) on the y-axis, then move right 1 unit and up m units.
Related Calculators
Distance Calculator
Calculate the distance between two points using the distance formula.
Algebra Calculator
Solve algebraic expressions and evaluate equations step by step.
Geometry Calculator
Calculate area, perimeter, volume and other properties of geometric shapes.