Skip to main content
← All calculators

Slope Calculator

Find slope from two points with graph

Last updated:
Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
Graph
xyrun: 3.0rise: 6.0(1, 2)(4, 8)
Slope (m)
2
Rise: 6.00 / Run: 3.00
Slope-Intercept Form (y = mx + b)
y = 2x
Point-Slope Form
y - 2 = 2(x - 1)
Y-Intercept
0.00
Distance
6.7082
Parallel Line Slope
2
Same slope (m₁ = m₂)
Perpendicular Line Slope
-0.5
Negative reciprocal (m₁ × m₂ = -1)

Slope Formulas

Slope Formula
m = (y₂ - y₁) / (x₂ - x₁)
Rise over run
Slope-Intercept
y = mx + b
m = slope, b = y-intercept
Point-Slope
y - y₁ = m(x - x₁)
Using slope and one point
Distance Formula
d = √[(x₂-x₁)² + (y₂-y₁)²]
Distance between two points

Understanding Slope Values

Positive
Line rises
Negative
Line falls
Zero
Horizontal
Undefined
Vertical

How to Use the Slope Calculator

The slope calculator finds the slope of a line from two points, calculates the y-intercept, and provides the equation of the line in multiple forms. Visualize your line on an interactive graph that updates as you type.

The Slope Formula

Given two points (x₁, y₁) and (x₂, y₂), the slope is calculated as:

m = (y₂ - y₁) / (x₂ - x₁) = rise / run

The slope represents how much y changes for each unit change in x.

Understanding Slope Values

  • Positive slope: Line goes up from left to right (m > 0)
  • Negative slope: Line goes down from left to right (m < 0)
  • Zero slope: Horizontal line (m = 0)
  • Undefined slope: Vertical line (division by zero)

Forms of Linear Equations

  • Slope-Intercept Form: y = mx + b (where m is slope, b is y-intercept)
  • Point-Slope Form: y - y₁ = m(x - x₁)
  • Standard Form: Ax + By = C

Parallel and Perpendicular Lines

Two lines are related if their slopes have special relationships:

  • Parallel lines: Have the same slope (m₁ = m₂)
  • Perpendicular lines: Have negative reciprocal slopes (m₁ × m₂ = -1)

Finding the Y-Intercept

Once you have the slope, substitute one point into y = mx + b and solve for b:

b = y₁ - m × x₁

Related Calculators

For finding the distance between two points, use our Pythagorean theorem calculator. For quadratic equations, try our scientific calculator.

Frequently Asked Questions

Use the formula m = (y₂ - y₁) / (x₂ - x₁). Subtract the y-coordinates (rise) and divide by the difference in x-coordinates (run). Example: for points (2, 3) and (6, 11), slope = (11 - 3) / (6 - 2) = 8 / 4 = 2.

Stay Updated

Get new calculators and tips delivered to your inbox.