Slope Calculator — Line Equation, Angle, Distance & Midpoint

The Slope Calculator finds every property of a straight line from two points or from a point and slope. Two input modes: Two Points (enter (x₁,y₁) and (x₂,y₂)) or Point + Slope (enter one point and the slope m). Results include the slope as both a decimal and fraction, the line equation in slope-int...

SLOPE CALCULATOR

POINT 1 (x₁, y₁)

POINT 2 (x₂, y₂)

SLOPE (m)

4/3

LINE EQUATION

y = 4/3x + 0.6667

ANGLE

53.1301°

Y-INTERCEPT

0.666667

DISTANCE

5

MIDPOINT

(2.5, 4)

PARALLEL SLOPE

4/3

same slope

PERPENDICULAR SLOPE

-3/4

−1/m

↗ Positive slope — line rises left to right

STEP-BY-STEP

1

Points: (1, 2) and (4, 6)

2

Δy = 6 − 2 = 4

3

Δx = 4 − 1 = 3

4

Slope: m = Δy/Δx = 4/3 = 4/3

5

y-intercept: b = y₁ − m·x₁ = 2 − 4/3×1 = 0.666667

6

Line equation: y = 4/3x + 0.6667

7

Distance: √(Δx²+Δy²) = √(3²+4²) = √25 = 5

8

Midpoint: ((1+4)/2, (2+6)/2) = (2.5, 4)

QUICK EXAMPLES

COORDINATE PLANE

xyrun=3rise=4(1, 2)(4, 6)mid

LINE PROPERTIES

Slope (rise/run)4/3 = 1.333333
Angle with x-axis53.1301°
y-intercept (0, b)(0, 0.666667)
x-intercept(-0.5, 0)
Point-slope formy − 2 = 4/3(x − 1)
Standard form4x − 3y = -2
Created with❤️byeaglecalculator.com

SLOPE FORMULAS

ALL SLOPE & LINE FORMULAS
NAMEFORMULADESCRIPTION
Slope formulam = (y₂−y₁)/(x₂−x₁)Rise over run between two points
Slope-intercept formy = mx + bm=slope, b=y-intercept
Point-slope formy − y₁ = m(x − x₁)Line through (x₁,y₁) with slope m
y-interceptb = y₁ − m·x₁Where the line crosses the y-axis
x-interceptx = −b/mWhere the line crosses the x-axis
Distanced = √((x₂−x₁)²+(y₂−y₁)²)Pythagorean theorem on the two points
MidpointM = ((x₁+x₂)/2, (y₁+y₂)/2)Centre point of the segment
Angleθ = arctan(m)Angle with positive x-axis in degrees
Perpendicular slopem⊥ = −1/mNegative reciprocal — product = −1
Standard formax + by = cInteger coefficients, no fractions

HOW TO USE

  1. 1

    Select your mode: Two Points if you know two coordinates, or Point + Slope if you know one point and the slope value.

  2. 2

    Enter your values. For Two Points, enter (x₁, y₁) and (x₂, y₂). For Point + Slope, enter the point coordinates and the slope m.

  3. 3

    The slope appears instantly as a fraction (where possible) and decimal. The line equation in y=mx+b form is shown alongside.

  4. 4

    Check the coordinate plane — the line extends across the graph, both input points are marked with black dots, the midpoint in red, and the rise/run triangle is drawn with dashed lines.

  5. 5

    The right panel shows all equivalent line forms: slope-intercept, point-slope, standard form, both intercepts, angle, and perpendicular/parallel slopes.

WORKED EXAMPLE

Example 1 (two points): (1,2) and (4,6). Rise=4, run=3, m=4/3≈1.3333. y-intercept: b=2−(4/3)(1)=2/3. Line: y=(4/3)x+2/3. Angle=53.13°. Distance=5. Midpoint=(2.5,4). Perpendicular slope=−3/4. Example 2 (point+slope): m=2, point (3,5). b=5−6=−1. Line: y=2x−1.

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.