Calculate slope from two points or slope-intercept form, find angle of inclination, parallel and perpendicular slopes, and graph the line.
Slope measures the steepness and direction of a line — it's the ratio of vertical change (rise) to horizontal change (run) between any two points. Expressed as m = (y₂ − y₁)/(x₂ − x₁), slope is one of the most fundamental concepts in coordinate geometry and calculus.
This calculator computes slope from two points or from a given equation, converts to slope-intercept form (y = mx + b), finds the angle of inclination, and determines parallel and perpendicular slopes. An interactive line graph shows the line and points, while a reference table lists several points along the line.
Positive slope means the line rises left to right; negative slope means it falls. A slope of 0 is horizontal, and undefined slope (division by zero) represents a vertical line. Slope connects directly to the concept of rate of change — in physics (velocity), economics (marginal cost), and calculus (the derivative). Mastering slope is the gateway to understanding linear functions, tangent lines, and differential calculus.
While the slope formula m = Δy/Δx is simple, fully analyzing a line requires computing the y-intercept (b = y₁ − mx₁), x-intercept (−b/m), perpendicular slope (−1/m), angle of inclination (arctan m), and distance between points — all from one pair of coordinates. This calculator does it all instantly, outputs the slope-intercept equation, graphs the line with labeled points, and generates a table of points along the line. It is the fastest way to go from two points to a complete line analysis.
m = (y₂ − y₁) / (x₂ − x₁) y = mx + b Angle = arctan(m) Perpendicular slope = −1/m
Result: Slope = 4/3, y = 1.333x + 0.667, Angle ≈ 53.13°
m = (6−2)/(4−1) = 4/3 ≈ 1.333. y-intercept: 2 − (4/3)·1 = 2/3. Angle = arctan(4/3) ≈ 53.13°.
Slope is the geometric representation of rate of change. In economics, slope = marginal cost (change in cost per unit produced). In physics, the slope of a position-time graph is velocity, and the slope of a velocity-time graph is acceleration. In medicine, a drug concentration curve's slope indicates how fast a medication is absorbed or eliminated. Any time you see a linear trend in data, slope quantifies the relationship: "for each unit increase in x, y changes by m units."
The slope between two points is the average rate of change over that interval. As the two points get infinitely close, the slope becomes the derivative — the instantaneous rate of change. This is the fundamental bridge between algebra and calculus. The tangent line to a curve at a point has slope equal to the derivative f'(x) at that point. Understanding slope deeply makes the transition to calculus natural: derivatives are just slopes of tangent lines.
A slope of 0 means a horizontal line (no vertical change). An undefined slope (Δx = 0) means a vertical line. A slope of 1 means the line makes a 45° angle with the x-axis — equal rise and run. Slopes between −1 and 1 are "gentle" (less steep than 45°), while |m| > 1 indicates "steep" lines. Parallel lines share the same slope, and perpendicular lines have slopes that are negative reciprocals (m₁ × m₂ = −1). These relationships are the building blocks of coordinate geometry proofs.
Slope is the ratio of vertical change to horizontal change: m = Δy/Δx. It measures steepness and direction.
A vertical line has undefined slope because Δx = 0 (division by zero). The equation is x = constant.
Use y = mx + b. Find m from two points, then solve for b: b = y₁ − m·x₁.
y − y₁ = m(x − x₁). Useful when you know the slope and one point on the line.
The derivative f'(x) at a point gives the slope of the tangent line — the instantaneous rate of change. Understanding this concept helps you apply the calculator correctly and interpret the results with confidence.
If line 1 has slope m, a perpendicular line has slope −1/m. Their product is −1.