๐Ÿ  Home ๐Ÿงฎ Calculators โœ๏ธ Text Tools
๐Ÿ“ˆ 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

Frequently asked questions

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.
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.
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.
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