The Slope Between Two Points Calculator finds the slope, line equation, angle, distance, and midpoint from any two coordinate points instantly. Enter (x₁, y₁) and (x₂, y₂) — the slope m = (y₂−y₁)/(x₂−x₁) appears immediately as a fraction (where possible) alongside the decimal. Th...
POINT 1 (x₁, y₁)
POINT 2 (x₂, y₂)
SLOPE (m = rise/run = Δy/Δx)
4/3
= 1.33333333 (decimal)
m = (y₂−y₁)/(x₂−x₁) = (6−2)/(4−1) = 4/3 = 4/3
Line Equation
y = 4/3x + 0.6667
Angle
53.1301°
Distance
5
Midpoint
(2.5, 4)
y-intercept
0.666667
Perpendicular m
-3/4
↗ Positive slope — rises 4 for every 3 across
QUICK EXAMPLES
STEP-BY-STEP
Step 1: Δy = y₂ − y₁ = 6 − 2 = 4
Step 2: Δx = x₂ − x₁ = 4 − 1 = 3
Step 3: m = Δy/Δx = 4/3 = 4/3
Step 4: y-intercept: b = 2 − (4/3)(1) = 0.666667
Step 5: Equation: y = 4/3x + 0.6667
Step 6: Distance = √(3²+4²) = 5
Step 7: Midpoint = ((1+4)/2, (2+6)/2) = (2.5, 4)
Enter the x and y coordinates for Point 1 in the first row of inputs, and for Point 2 in the second row. Negative numbers and decimals are supported.
The slope appears instantly in the large black result box as a fraction (e.g. 4/3) and as a decimal. The formula application m=(y₂−y₁)/(x₂−x₁) is shown with your actual numbers.
Below the slope, the line equation, angle, distance, midpoint, y-intercept, and perpendicular slope are all shown.
Check the coordinate plane — the line is drawn through both points and extended, the rise/run triangle is shown with dashed lines, and the midpoint is marked in red.
Use the quick example buttons to try positive, negative, horizontal, and vertical slopes and see how each case looks on the graph.
Example: Points (1,2) and (4,6). Rise=4, run=3, slope=4/3≈1.333. y-intercept: b=2−(4/3)(1)=2/3. Line equation: y=(4/3)x+2/3. Angle=arctan(4/3)=53.13°. Distance=√(9+16)=5. Midpoint=(2.5,4). Perpendicular slope=−3/4.
| NAME | FORMULA | DESCRIPTION |
|---|---|---|
| Slope formula | m = (y₂−y₁) / (x₂−x₁) | Rise divided by run between two points |
| y-intercept | b = y₁ − m·x₁ | Substitute one point to find b |
| Line equation | y = mx + b | Slope-intercept form |
| Distance | d = √((x₂−x₁)²+(y₂−y₁)²) | Pythagorean theorem on the coordinate pair |
| Midpoint | M = ((x₁+x₂)/2, (y₁+y₂)/2) | Average of x and y coordinates |
| Angle | θ = arctan(m) | Angle with positive x-axis |
| Perpendicular slope | m⊥ = −1/m | Negative reciprocal — lines meet at 90° |
Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.