Math calculator

Slope Calculator

Find slope, y-intercept, y = mx + b, distance, and midpoint from two points with steps.

Slope Calculator

⚡ Answer updates as you type · Enter = calculate · Esc = reset

Answer
Slope (m): 2 • y-intercept (b): 0 • Equation: y = 2x + 0 • Distance: 4.472136 • Midpoint: (2, 4) • Angle: 63.434949°
  1. Rise = y₂ − y₁ = 6 − 2 = 4
  2. Run = x₂ − x₁ = 3 − 1 = 2
  3. m = rise ÷ run = 4 ÷ 2 = 2
  4. b = y₁ − m·x₁ = 2 − 2·1 = 0
  5. Distance = √(run² + rise²) = 4.472136

Enter two points to find the slope (m), y-intercept (b), line equation y = mx + b, distance, and midpoint with step-by-step work.

About this Slope Calculator

The Slope Calculator finds the slope of a line through two points, plus the y-intercept, the slope-intercept equation y = mx + b, the distance between the points, and the midpoint — with every step shown for algebra and geometry homework.

Formula

m = (y₂ − y₁) ÷ (x₂ − x₁). b = y₁ − m·x₁. Distance = √((x₂ − x₁)² + (y₂ − y₁)²).

What you'll need

  • • First point (x₁, y₁)
  • • Second point (x₂, y₂)

How it works

  1. 1. Subtract the y-values to get the rise.
  2. 2. Subtract the x-values to get the run.
  3. 3. Divide rise by run to get the slope m.
  4. 4. Plug one point into y = mx + b and solve for b.
  5. 5. Write the final equation in slope-intercept form.

Worked example

For (1, 2) and (3, 6): rise = 6 − 2 = 4, run = 3 − 1 = 2, so m = 4 ÷ 2 = 2. Then b = 2 − 2·1 = 0, giving y = 2x. Distance = √(2² + 4²) ≈ 4.472.

Related searches

slope calculator onlinefree slope calculatormath calculatorslope calculatorcalculator calculatortwo calculatorpoints calculator

Slope Calculator FAQ

What is the Slope Calculator?

The Slope Calculator is a free online tool that helps you find slope, y-intercept, y = mx + b, distance, and midpoint from two points with steps.

How do I use the Slope Calculator?

Open the Slope Calculator, enter the requested values, and review the instant estimate on the page.

Is the Slope Calculator free?

Yes. The Slope Calculator is free to use on Fast Online Calculator and does not require an account.

What does slope mean?

Slope measures how steep a line is: how much y changes for every 1 unit change in x. Positive slopes rise left to right; negative slopes fall.

What is the slope of a vertical line?

A vertical line has an undefined slope because the run (x₂ − x₁) is zero, and you cannot divide by zero. Its equation is x = a constant.

What is the slope of a horizontal line?

A horizontal line has a slope of 0 because the y-values do not change. Its equation is y = a constant.

What is slope-intercept form?

Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept — the point where the line crosses the y-axis.