Find the slope, angle of inclination, line equation and perpendicular slope between two points.
Enter two points to find the slope
This slope calculator finds the slope ("rise over run") between two points, plus the angle of inclination, the line's full equation in y = mx + b form, and the perpendicular slope — all from a single pair of coordinates. Slope is one of the most fundamental ideas in coordinate geometry and algebra, describing how steeply a line rises or falls as it moves from left to right. Whether you need a rise-over-run calculator for algebra homework, a slope-of-a-line calculator for a physics graph, or an angle-of-inclination calculator for a construction or roofing project, this free tool computes every related value instantly and shows the substituted formula behind each one.
Slope measures the rate at which the y-coordinate changes relative to the x-coordinate along a straight line — commonly described as "rise over run." A larger positive slope means a steeper upward incline; a larger negative slope means a steeper downward decline; a slope of exactly zero means the line is perfectly flat (horizontal); and a vertical line has no defined slope at all, since its run is always zero.
This tool is built for algebra and geometry students checking slope, angle, and line-equation homework, physics students reading rate of change off position-time or velocity-time graphs, engineers and architects calculating roof pitch or ramp grade, data analysts estimating a linear trend's rate of change, and anyone who needs a quick, verified slope calculation between two known points.
Slope is the mathematical foundation for describing linear relationships — from the steepness of a road or roof to the rate of return in a financial graph to the velocity implied by a position-time plot. Because slope condenses "how much y changes per unit of x" into one single number, it lets you compare and communicate the steepness of very different lines using the same standardized measure.
Construction professionals use slope to describe roof pitch, ramp grade (including ADA-compliant wheelchair ramp requirements), and road incline. Physicists read velocity from the slope of a position-time graph and acceleration from the slope of a velocity-time graph. Economists use the slope of a cost, supply, or demand line to represent a marginal rate. Data analysts and statisticians use slope to describe a linear trend's rate of change between two data points, and architects use perpendicular slope to design right-angle features and normal vectors to a surface.
How this calculator turns two points into a slope, angle, equation, and perpendicular slope
Positive slope rises left to right; negative slope falls left to right. Zero slope is flat; a vertical line has no defined slope.
θ = arctan(m) and m = tan(θ). A slope of 1 is a 45° angle; as the angle nears 90°, slope grows toward infinity (undefined).
Flip the slope and negate it: a slope of 2 has a perpendicular slope of −0.5. Vertical and horizontal lines are perpendicular to each other.
From entering two points to reading the full set of results
Type the x₁ and y₁ coordinates of the first known point on the line.
Type the x₂ and y₂ coordinates of the second known point on the line.
The calculator computes rise over run, m = (y₂−y₁)/(x₂−x₁), handling vertical lines as a special undefined case.
Review the slope as a simplified fraction (when both rise and run are whole numbers) and as a decimal.
See the angle of inclination in degrees, the line's equation in y = mx + b form, and the perpendicular slope.
Finding the slope, angle, equation, and perpendicular slope for points (1,2) and (5,10)
A line passes through the points (1, 2) and (5, 10). What is its slope, angle of inclination, equation, and the slope of a line perpendicular to it?
Explanation: A slope of 2 means y increases by 2 units for every 1 unit increase in x — a fairly steep upward line, consistent with its 63.43° angle of inclination. The perpendicular slope of −0.5 is the negative reciprocal of 2, confirming that a line with slope −0.5 through any point would cross this one at exactly 90°.
What positive, negative, zero, and undefined slopes mean
| Slope Value | Line Behavior | Example Reading |
|---|---|---|
| Positive (m > 0) | Rises from left to right | m = 2 → line climbs steeply upward |
| Negative (m < 0) | Falls from left to right | m = −0.5 → line descends gently |
| Zero (m = 0) | Perfectly horizontal (flat) line | y stays constant as x changes |
| Undefined | Perfectly vertical line | x stays constant; run = 0 |
Reading the sign: the sign of the slope alone tells you the line's direction — positive always climbs, negative always falls — while the magnitude tells you how steep that climb or fall is.
Typical ranges: slope has no upper or lower bound — it can be any real number, approaching infinity as a line gets closer to vertical, and approaching zero as a line gets closer to horizontal.
Manual verification: plug your two points back into m = (y₂−y₁)/(x₂−x₁) and confirm you get the same value, or check that both original points satisfy your computed line equation y = mx + b.
Where rise-over-run calculations are genuinely useful
Check slope, angle, and line-equation problems from a coordinate plane step by step.
Calculate roof pitch or ramp grade directly from rise and run measurements.
Determine road or driveway incline steepness for engineering and safety standards.
Verify a wheelchair ramp's slope meets required accessibility grade limits.
Read velocity from a position-time graph's slope, or acceleration from a velocity-time graph.
Interpret the slope of a cost, demand, or price trend line as a marginal rate.
Estimate a linear trend's rate of change between two data points.
Use perpendicular slope to design right-angle features and normal vectors to a surface.
Compute line direction and steepness for rendering, physics, and pathfinding.
Explain the direction and steepness of any two-point linear relationship.
Verify line angles and equations while drafting technical drawings.
Estimate trail or climb steepness from elevation-change data points.
What this slope calculator does well, and where manual judgment is still needed
The four possible slope types and how to recognize each one
| Slope Type | Condition | Line Shape | Example |
|---|---|---|---|
| Positive | m > 0 | Rises left to right | (1,2) to (5,10) → m = 2 |
| Negative | m < 0 | Falls left to right | (1,10) to (5,2) → m = −2 |
| Zero | m = 0 (y₁ = y₂) | Perfectly horizontal | (1,4) to (5,4) → m = 0 |
| Undefined | run = 0 (x₁ = x₂) | Perfectly vertical | (3,1) to (3,7) → undefined |
Summary: This slope calculator gives you an instant, free way to find the slope, angle of inclination, line equation, and perpendicular slope between two points, with the formula and steps shown. Pair it with related tools like the Distance Calculator and Pythagorean Theorem Calculator for a fuller picture of coordinate geometry.
Common questions about slope
Trusted educational references to go deeper on lines and coordinate geometry
Explore other geometry tools