◆ ALGEBRA · COORDINATE GEOMETRY

Slope Calculator

Enter any two points and instantly get the slope, angle of inclination, distance, midpoint, and the line’s equation — plus a live coordinate-plane graph.

m = Δy/Δx

Slope Formula

y = mx+b

Line Equation

θ = tan⁻¹(m)

Angle Formula

Two Points on a Line

Quick Examples

P₁ — Point One

P₂ — Point Two

Slope

2

y = 2x

θ = 63.43° | 26.57° from vertical

0

Y-Intercept

6.7082

Distance

2

Slope m

63.43°

Angle θ

(2.5, 5)

Midpoint

6.7082

Distance

Line Equations & Properties

Slope-Intercept Form

y = 2x

Point-Slope Form

y - 2 = 2(x - 1)

Standard Form (Ax+By=C)

2x - 1y = 0

2

Slope m

0

Y-Intercept b

63.43°

Angle θ

0

X-Intercept

6.7082

Distance P₁P₂

(2.5, 5)

Midpoint

Parallel Line (through P₁)

slope m = 2

Same slope, different y-intercept

Perpendicular Line (through P₁)

slope m = -0.5

Negative reciprocal: m₁ × m₂ = -1

📋 Steps

1

Calculate slope

m = (y₂-y₁)/(x₂-x₁) = (8-2)/(4-1) = 6/3 = 2

2

Find y-intercept b

b = y₁ - m×x₁ = 2 - 2×1 = 0

3

Distance

d = √((x₂-x₁)² + (y₂-y₁)²) = √(9 + 36) = 6.7082

Coordinate Plane

Line P₁ P₂
-1012345-20246810P₁ (1, 2)P₂ (4, 8)

Understanding Slope

Slope (m) measures how steep a line is: it’s the “rise over run” between any two points on that line — how much y changes for every unit that x changes, written as m = (y₂-y₁)/(x₂-x₁). Because a straight line never curves, this ratio comes out identical no matter which two points on the line you pick. A positive slope climbs left to right, a negative slope falls, a slope of zero is perfectly flat, and a vertical line has no slope at all — it’s undefined. The slope also connects directly to the line’s angle of inclination: taking the arctangent of the slope, θ = arctan(m), tells you the exact angle the line makes with the horizontal x-axis.

Key Slope Formulas

Slope: m = (y₂-y₁) / (x₂-x₁)Slope-Intercept Form: y = mx + bPoint-Slope Form: y - y₁ = m(x - x₁)Angle of Inclination: θ = arctan(m) × (180/π)Distance: d = √((x₂-x₁)² + (y₂-y₁)²)Midpoint: ((x₁+x₂)/2, (y₁+y₂)/2)

Parallel and perpendicular lines: any line parallel to yours shares the exact same slope m, just with a different y-intercept. Any line perpendicular to yours has a slope equal to the negative reciprocal, -1/m — the two slopes always multiply to -1. If you need the full triangle behind an angle rather than just a line, try our right triangle calculator or triangle calculator.

— FAQ

Frequently Asked Questions