08 Tech Group
Back to Calculator Hub

Slope Calculator: Find Slope Between Two Points

Math
Slope (m)2
y-intercept (b)0
Angle (degrees)63.43°
Distance6.7082

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

  1. Enter the first point’s x- and y-coordinates.
  2. Enter the second point’s x- and y-coordinates.
  3. Review slope, y-intercept, angle in degrees and point-to-point distance.
  4. 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.

Frequently Asked Questions

Frequently Asked Questions

How do you calculate slope from two points?+

Subtract the first y-coordinate from the second, then divide by the difference between the x-coordinates: m=(y₂−y₁)/(x₂−x₁).

What is a positive slope?+

A positive slope means y increases as x increases; the line rises from left to right.

What is a negative slope?+

A negative slope means y decreases as x increases; the line falls from left to right.

What is the slope of a horizontal line?+

A horizontal line has slope zero because its rise is zero while its run is nonzero.

Why is the slope of a vertical line undefined?+

The run x₂−x₁ is zero, so the slope formula would divide by zero. If both points are identical, they do not determine a unique line either.

How is the y-intercept calculated?+

For a non-vertical line, use b=y₁−mx₁. It is the y-value where the line crosses the vertical axis.

Does point order affect slope?+

No. Reversing both point differences changes both signs, so the quotient remains the same.

Does this calculator draw a graph or solve an equation?+

No. It calculates slope, y-intercept, angle and distance from two entered points; it does not graph or parse equations.

Share the tool
Slope Calculator: Find Slope Between Two Points | 08 Tech Group