Understanding Rise and Run
Rise and run are the two components of slope. Rise measures vertical movement—how far up or down you travel between two points. Run measures horizontal movement—how far left or right. A line climbing steeply has large rise relative to its run. A nearly flat line has small rise. When both are zero (the same point twice), slope is undefined.
Slope appears throughout mathematics, physics, economics, and engineering. It tells you the rate at which something changes: the pitch of a roof, the grade of a hiking trail, the growth rate of an investment, or the speed of a moving object on a distance-time graph.
The Rise Over Run Formula
To find slope between two points, subtract the first point's coordinates from the second, then divide vertical change by horizontal change:
m = Δy / Δx = (y₂ − y₁) / (x₂ − x₁)
θ = arctan(m)
d = √[(x₂ − x₁)² + (y₂ − y₁)²]
b = y₁ − m(x₁)
y₂, y₁— y-coordinates of the second and first pointsx₂, x₁— x-coordinates of the second and first pointsm— Slope (rise divided by run)θ— Angle in degrees or radians that the line makes with the horizontal axisd— Straight-line distance between the two pointsb— Y-intercept, where the line crosses the vertical axis
Interpreting Your Results
The calculator returns several values from two input points:
- Slope: The ratio m = Δy/Δx. Positive slope means the line rises left to right. Negative slope means it falls. A slope of zero is horizontal; undefined slope (division by zero) is vertical.
- Percentage grade: Slope expressed as a percentage. Useful for roads and ramps; a 10% grade means 10 m of rise per 100 m of horizontal distance.
- Angle: The inclination θ, measured from the horizontal. Calculated as the inverse tangent of slope.
- Y-intercept: The y-coordinate where the line crosses the vertical axis (where x = 0).
- Distance: The Euclidean distance between the two points.
Common Pitfalls and Practical Notes
Slope calculations are straightforward, but a few situations trip up even experienced users.
- Watch out for division by zero — If both points have the same x-coordinate (vertical line), the denominator becomes zero and slope is undefined. The calculator will flag this. Vertical lines have no finite slope.
- Order of points doesn't affect slope magnitude — Whether you calculate (y₂ − y₁)/(x₂ − x₁) or (y₁ − y₂)/(x₁ − x₂), you get the same result. The sign may flip, but mathematically they describe the same line steepness.
- Negative slopes are not wrong — A line falling from left to right has negative slope. This is perfectly valid and common in real-world data: temperature dropping with altitude, value declining over time. Negative does not mean an error.
- Percentage grade assumes horizontal units — Grade is useful for roads and ramps because it directly tells you elevation gained per unit horizontal distance. It's not the true angle; use the angle output if you need the geometric inclination from horizontal.
Practical Applications
Construction and surveying: Stair builders use rise-over-run ratios to ensure comfort and code compliance. A 7 in. riser with an 11 in. tread gives a slope of roughly 0.64, which is within safe limits. Roof pitch (rise in inches per 12 inches of run) follows the same principle.
Civil engineering: Road grades are expressed as percentages. A 6% grade climb means 6 m of elevation per 100 m of road length, which helps estimate fuel consumption and safe speeds for trucks.
Data analysis: In linear regression, slope quantifies the relationship between variables. A slope of 2.5 in a price-versus-quantity graph means each additional unit increases price by 2.5 currency units.