This Slope Calculator uses two coordinate points to calculate the slope of the line, its y-intercept, angle from the horizontal and distance between the points. Enter ((x₁,y₁)) and ((x₂,y₂)). A vertical line has an undefined slope and no slope-intercept form. If both entered points are identical, they do not define a unique line.
How to Use the Slope Calculator
- Enter the first point’s x- and y-coordinates.
- Enter the second point’s x- and y-coordinates.
- Review slope, y-intercept, angle in degrees and point-to-point distance.
- If both x-coordinates are equal, the line is vertical and the slope is undefined.
Slope Formula
m = (y₂ − y₁) ÷ (x₂ − x₁) = rise ÷ run
For a non-vertical line, the y-intercept is (b=y₁−mx₁), so its equation is (y=mx+b). The widget’s angle is (θ = arctan(m)), reported in degrees. Distance is (sqrt{(x₂−x₁)²+(y₂−y₁)²}).
Worked Examples
- Positive slope: points (0,0) and (2,4) give (m=4/2=2), y-intercept 0, angle about 63.43° and distance about 4.47.
- Negative slope: (1,5) and (3,1) give (m=(1−5)/(3−1)=−2).
- Horizontal line: (1,3) and (5,3) give slope 0.
- Vertical line: (2,1) and (2,7) have undefined slope.
Interpreting Slope, Angle and Distance
Slope is a rate of vertical change per unit of horizontal change. A slope of 2 means y rises by 2 units for every 1-unit increase in x; a slope of −2 means y falls by 2 units for each 1-unit increase in x. The units of slope are y-units divided by x-units, so coordinate axes should use meaningful and consistent scales.
The calculator reports the signed angle arctan(m), which lies between −90° and 90°. This is not the same convention as a 0°–180° angle of inclination. Distance is the straight-line length between the points. A vertical line has a defined equation x = constant even though its slope and y-intercept are undefined; two identical points do not determine one unique line.
What This Calculator Does Not Solve
Some advanced slope tools accept an equation, a point and slope, standard form or fractional coordinates, and can draw a graph. This widget accepts two numeric points only; it does not parse equations, test parallel/perpendicular lines or produce a graph.
Competitor review covered Pearson, Utilorca, Calcist, AltFTool and openWorkstand. Their broader workflows may add graphs, exact fractions, midpoint, x-intercept, multiple line forms, equation parsing or point-and-slope modes. This page now explains slope direction, units, the signed arctangent convention, vertical-line equations and identical-point ambiguity, and makes the two-point-only scope explicit.
For another rate-of-change calculation, use the Number Sequence Calculator.
Assumptions and Limitations
- Coordinates are entered as numeric values, not fractions or algebraic expressions.
- When (x₂=x₁), slope and y-intercept are undefined for the vertical line.
- The angle is the signed arctangent of slope, so it ranges between −90° and 90° rather than using a 0°–180° inclination convention.
- Distance is the straight-line Euclidean distance between the two points.
- The widget does not calculate x-intercept, graph the line or compare two different lines.
