Slope Between Two Points Calculator

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...

ENTER TWO POINTS

POINT 1 (x₁, y₁)

(,)

POINT 2 (x₂, y₂)

(,)

SLOPE (m = rise/run = Δy/Δx)

4/3

= 1.33333333 (decimal)

m = (y₂−y₁)/(x₂−x₁) = (62)/(41) = 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

COORDINATE PLANE

run=3rise=4(1,2)(4,6)

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)

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    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.

  2. 2

    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.

  3. 3

    Below the slope, the line equation, angle, distance, midpoint, y-intercept, and perpendicular slope are all shown.

  4. 4

    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.

  5. 5

    Use the quick example buttons to try positive, negative, horizontal, and vertical slopes and see how each case looks on the graph.

WORKED EXAMPLE

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.

FORMULAS

SLOPE & LINE FORMULAS
NAMEFORMULADESCRIPTION
Slope formulam = (y₂−y₁) / (x₂−x₁)Rise divided by run between two points
y-interceptb = y₁ − m·x₁Substitute one point to find b
Line equationy = mx + bSlope-intercept form
Distanced = √((x₂−x₁)²+(y₂−y₁)²)Pythagorean theorem on the coordinate pair
MidpointM = ((x₁+x₂)/2, (y₁+y₂)/2)Average of x and y coordinates
Angleθ = arctan(m)Angle with positive x-axis
Perpendicular slopem⊥ = −1/mNegative reciprocal — lines meet at 90°

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE GEOMETRY CALCULATORS

Was this calculator helpful?

Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.