๐ Geometry Tool
Slope Calculator
Find slope, y-intercept, angle, distance and line equation from two points โ slope-intercept form, point-slope form and standard form, with a plotted graph.
Point 1 (xโ, yโ)
Point 2 (xโ, yโ)
Examples:
๐ Slope (m)
โ
โ
Slope-intercept form ๐
โ
Point-slope form ๐
โ
Standard form (Ax + By = C) ๐
โ
Perpendicular line slope ๐
โ
โSlope m
โY-intercept b
โAngle (ยฐ)
โDistance
Positivem > 0
Negativem < 0
Zerom = 0
Undefinedvertical
๐ Step-by-step solution
Line graph
Key insight
โ
Slope formulas
The slope of a line through two points (xโ,yโ) and (xโ,yโ) is the ratio of the vertical change (rise) to the horizontal change (run):
Slope: m = (yโ โ yโ) / (xโ โ xโ) = rise / run
Y-intercept: b = yโ โ m ร xโ
Slope-intercept: y = mx + b
Point-slope: y โ yโ = m(x โ xโ)
Distance: d = โ((xโโxโ)ยฒ + (yโโyโ)ยฒ)
Angle: ฮธ = arctan(m) in degrees
Perpendicular: m_perp = โ1/m
Y-intercept: b = yโ โ m ร xโ
Slope-intercept: y = mx + b
Point-slope: y โ yโ = m(x โ xโ)
Distance: d = โ((xโโxโ)ยฒ + (yโโyโ)ยฒ)
Angle: ฮธ = arctan(m) in degrees
Perpendicular: m_perp = โ1/m
Frequently asked questions
What does slope mean?
Slope (m) measures how steep a line is โ specifically how much y changes for every 1 unit increase in x. A slope of 2 means y increases by 2 for every 1 step right. Slope = rise รท run.
What is a negative slope?
A negative slope means the line goes downward from left to right. As x increases, y decreases. For example, a slope of โ3 means y decreases by 3 for every 1 unit increase in x.
What is an undefined slope?
A vertical line has undefined slope because both points have the same x-coordinate, making the denominator (xโโxโ) equal to zero, which is division by zero. Vertical lines cannot be expressed in y = mx + b form.
How are perpendicular slopes related?
Two perpendicular lines have slopes that are negative reciprocals of each other. If one line has slope m, the perpendicular line has slope โ1/m. Their product is always โ1. Horizontal (m=0) and vertical (undefined) lines are perpendicular to each other.
๐ Related tools