Free Math tool · Step by step

Slope Calculator

Find the slope from two points, the y-intercept and the equation of the line in slope-intercept, point-slope and standard form — exact fractions and a graph. Free for Algebra 1 and SAT.

Slope and equation

m=2m = 2
y=2xy = 2x
-2246810-2246810(1, 2)(4, 8)
Point-slope form
y−(2)=2 (x−(1))y - (2) = 2\,(x - (1))
Standard form
2x−y=02x - y = 0
Distance between points
6.70826.7082
Midpoint
(2.5, 5)(2.5,\ 5)
Angle with x-axis
63.43∘63.43^\circ
  1. 1

    Slope = rise over run

    m=y2−y1x2−x1=8−(2)4−(1)=63=2m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{8 - (2)}{4 - (1)} = \frac{6}{3} = 2
  2. 2

    y-intercept: b = y₁ − m·x₁

    b=2−(2)(1)=0b = 2 - (2)(1) = 0
  3. 3

    Slope-intercept form

    y=2xy = 2x
  4. 4

    Standard form (integer coefficients)

    2x−y=02x - y = 0
  5. 5

    Distance and midpoint

    d=(Δx)2+(Δy)2=6.7082,M=(2.5, 5)d = \sqrt{(\Delta x)^2 + (\Delta y)^2} = 6.7082,\quad M = \left(2.5,\ 5\right)

AI video explanation

Want a 1-minute AI video explanation, or have a harder homework screenshot?

Doubtclip turns the question into a step-by-step whiteboard video with voice.

Click here — solve with AI

FAQ

What is the slope formula?

m = (y₂ − y₁) ÷ (x₂ − x₁) — the rise over the run between the two points.

How do I find the y-intercept?

Substitute one point into y = mx + b and solve: b = y₁ − m·x₁.

What if x₁ = x₂?

The line is vertical, the slope is undefined and the equation is x = x₁.

More free tools