Rise Over Run
Last reviewed: May 2026
Slope is one of the most fundamental concepts in algebra, connecting arithmetic to geometry and real-world rates of change.[1] The formula m = Δy/Δx (change in y divided by change in x) appears throughout math, physics, engineering, and economics. This calculator finds the slope between two points, plus the line equation, distance, and midpoint. Related tools include the Distance Calculator and the Pythagorean Theorem Calculator.
| Slope Value | Line Direction | Angle | Real-World Example |
|---|---|---|---|
| 0 | Horizontal | 0° | Flat road, constant value |
| 1 | 45° uphill | 45° | Equal rise and run |
| 2 | Steep uphill | 63° | Steep hill, rapid growth |
| −1 | 45° downhill | −45° | Decline, inverse relationship |
| 0.06 | Gentle grade | 3.4° | 6% road grade |
| Undefined | Vertical | 90° | Wall, cliff face |
Slope measures the steepness and direction of a line, defined as the ratio of vertical change (rise) to horizontal change (run) between any two points on the line. The slope formula is m = (y₂ − y₁) / (x₂ − x₁), where (x₁, y₁) and (x₂, y₂) are any two distinct points on the line. A slope of 2 means the line rises 2 units for every 1 unit of horizontal movement. A slope of −0.5 means the line falls half a unit for every unit of horizontal movement. Slope is the same everywhere on a straight line — this uniformity is what makes it "linear."
| Slope Value | Direction | Steepness | Example |
|---|---|---|---|
| m > 1 | Rising ↗ | Steep upward | Stairs, steep hill |
| 0 < m < 1 | Rising ↗ | Gentle upward | Wheelchair ramp |
| m = 0 | Horizontal → | Flat | Level ground |
| −1 < m < 0 | Falling ↘ | Gentle downward | Drainage slope |
| m < −1 | Falling ↘ | Steep downward | Ski slope |
| Undefined | Vertical ↑ | Infinite steepness | Cliff face |
The slope-intercept form of a linear equation — y = mx + b — is the most commonly used equation format because it directly reveals the two most important properties of the line. The coefficient m is the slope (rate of change), and b is the y-intercept (where the line crosses the y-axis, i.e., the value of y when x = 0). The equation y = 3x + 5 describes a line with slope 3 that crosses the y-axis at y = 5. Given any x-value, you can immediately calculate y: when x = 4, y = 3(4) + 5 = 17.
Converting from two points to slope-intercept form is a two-step process. First, calculate slope using (y₂ − y₁)/(x₂ − x₁). Then substitute the slope and either point into y = mx + b to solve for b. Given points (2, 7) and (5, 16): slope = (16 − 7)/(5 − 2) = 9/3 = 3. Using point (2, 7): 7 = 3(2) + b, so b = 1. The equation is y = 3x + 1.
Point-slope form — y − y₁ = m(x − x₁) — is useful when you know the slope and one point but do not need to solve for the y-intercept first. It is mathematically equivalent to slope-intercept form and can be rearranged into it by distributing and isolating y. A line through (3, −2) with slope 4: y − (−2) = 4(x − 3), which simplifies to y + 2 = 4x − 12, or y = 4x − 14. This form is particularly convenient in calculus when writing the equation of a tangent line at a specific point, where the slope is the derivative evaluated at that point.
Parallel lines have identical slopes but different y-intercepts — they run in the same direction and never intersect. If line 1 has slope m = 2, any line parallel to it also has slope 2. Perpendicular lines have slopes that are negative reciprocals of each other — their product equals −1. If line 1 has slope m = 2, a perpendicular line has slope −1/2 (flip the fraction and change the sign). This relationship means perpendicular lines intersect at exactly 90 degrees. Finding parallel and perpendicular slopes is essential in geometry, construction (ensuring walls are square), computer graphics, and coordinate geometry problems.
Slope appears throughout science, engineering, and everyday life under different names. In physics, velocity is the slope of a position-time graph, and acceleration is the slope of a velocity-time graph. In economics, marginal cost is the slope of the total cost curve. In construction, grade (or gradient) is slope expressed as a percentage: a 6% grade rises 6 feet vertically for every 100 feet horizontally, equivalent to a slope of 0.06. ADA-compliant wheelchair ramps require a maximum slope of 1:12 (8.33%), and most building codes specify roof pitches as a ratio of rise to run over 12 inches.
In data analysis, slope represents the rate of change in a relationship between two variables. A regression line with slope 2.5 relating study hours to exam scores means each additional hour of study is associated with a 2.5-point increase in exam score. Financial analysts use slope to identify trends — a stock price with a positive slope over 200 trading days is in an uptrend. Scientists use slope to determine reaction rates, growth rates, cooling rates, and dozens of other rate-based measurements.
The concept of slope extends naturally into calculus through the derivative, which measures the instantaneous rate of change at a single point on a curve. While slope between two points gives the average rate of change over an interval, the derivative gives the slope of the tangent line at a specific point — the rate of change at that exact instant. For the function f(x) = x², the slope between x = 2 and x = 4 is (16 − 4)/(4 − 2) = 6, but the derivative f'(x) = 2x gives the instantaneous slope: f'(2) = 4 at x = 2 and f'(4) = 8 at x = 4. This transition from discrete slope to continuous derivative is the foundational concept that connects algebra to calculus.
When reading graphs, slope provides immediate insight into the relationship between variables. A steeper line indicates a stronger relationship — more change in y per unit change in x. A positive slope means the variables increase together (positive correlation), while a negative slope means one increases as the other decreases (negative correlation). A slope of zero indicates no linear relationship. In scatter plots with a line of best fit, the slope tells you the predicted change in the dependent variable for each unit increase in the independent variable, making it the single most informative number in any linear regression analysis.
Enter two points or a slope and one point to instantly calculate the slope, equation of the line, y-intercept, angle, and distance between the points. The results update in real-time as you adjust inputs, making it easy to explore how changing coordinates affects the line's properties. Use the results for homework verification, engineering calculations, or any application requiring precise linear relationships between two variables.
→ Rise over run. Always divide vertical change by horizontal change.
→ Watch sign conventions. Negative slope means the line goes downward left to right.
→ Vertical lines have undefined slope. Division by zero when x1 = x2.[1]
→ Use for rate problems. Slope = speed, cost per unit, growth rate, or any rate of change.
See also: Distance · Pythagorean Theorem · Triangle · Percentage Change