No Login Data Private Local Save

Slope Calculator – Rise Over Run & Two Points Formula

25
0
0
0
units
Positive = upward, Negative = downward
Please enter a valid number
units
Must not be zero (zero = vertical line, undefined slope)
Please enter a valid non-zero number
Quick:
Enter values and calculate

Your slope visualization and results will appear here

Frequently Asked Questions
What is slope in mathematics?
Slope is a measure of the steepness or incline of a line. Mathematically, it represents the rate of change between two variables—specifically, how much the y-coordinate changes for each unit change in the x-coordinate. Slope is denoted by m and is calculated as m = Δy / Δx (rise over run). A positive slope means the line goes upward from left to right; a negative slope means it goes downward. Slope is fundamental in algebra, calculus, physics, engineering, and many real-world applications like road design, roof construction, and data analysis.
How do you calculate slope using Rise Over Run?
The Rise Over Run method is the simplest way to calculate slope. Rise (Δy) is the vertical change—how far up or down the line goes. Run (Δx) is the horizontal change—how far left or right the line goes. The formula is m = Rise ÷ Run. For example, if a line rises 3 units for every 4 units it runs horizontally, the slope is 3/4 = 0.75. This corresponds to a 75% grade and an angle of approximately 36.87°. If the run is zero, the slope is undefined (vertical line).
What is the two-point formula for slope?
When you know two points on a line—(x₁, y₁) and (x₂, y₂)—the slope is calculated using the formula: m = (y₂ − y₁) / (x₂ − x₁). This is essentially the same as rise over run: the numerator (y₂ − y₁) is the rise, and the denominator (x₂ − x₁) is the run. For instance, given points (1, 2) and (5, 10), the slope is (10 − 2) / (5 − 1) = 8 / 4 = 2. The order of subtraction matters—always use the same point order for both coordinates. If x₁ = x₂, the line is vertical and slope is undefined.
What does a negative slope indicate?
A negative slope means that as the x-value increases, the y-value decreases—the line goes downward from left to right. This indicates an inverse relationship between the two variables. For example, a slope of −2 means that for every 1 unit you move right, the line drops 2 units. In real-world contexts, negative slopes appear in situations like depreciation (value decreasing over time), cooling rates, or downhill roads. The angle of a negative slope is also negative when measured from the horizontal axis (e.g., slope −1 = −45°).
What is an undefined slope?
An undefined slope occurs when the run (Δx) equals zero—meaning the line is perfectly vertical. Since division by zero is mathematically undefined, the slope cannot be expressed as a real number. In the two-point formula, this happens when x₁ = x₂. A vertical line has the equation x = constant. While the slope is undefined, the angle of a vertical line is 90° (or π/2 radians). In road grade terms, a vertical wall would have an infinite grade percentage.
How is slope used in real life?
Slope has countless real-world applications: Road design uses grade percentages (a 6% grade means the road rises 6 feet per 100 feet horizontally). Roof pitch is expressed as rise over run (e.g., a 4:12 pitch rises 4 inches per 12 inches of run). Accessibility ramps must follow ADA guidelines with a maximum slope of 1:12 (about 8.33%). Ski slopes are rated by steepness. In data science, the slope of a regression line shows the relationship between variables. Drainage systems require minimum slopes for proper water flow. Architects and engineers use slope daily for structural design and safety calculations.
How to convert slope to an angle?
To convert slope (m) to an angle (θ) in degrees, use the arctangent function: θ = arctan(m) × 180 / π. For example, a slope of 1 equals arctan(1) = 45°; a slope of 0.5 equals approximately 26.57°. Most scientific calculators have a tan⁻¹ or arctan function. In JavaScript, use Math.atan(m) * 180 / Math.PI. This conversion is essential for carpentry, construction, and any field where angular measurements are preferred over ratios. Note that for undefined slopes (vertical lines), the angle is exactly 90°.
What is the difference between slope and grade?
Slope is the general mathematical term for the ratio of vertical change to horizontal change (m = Δy/Δx). Grade is typically expressed as a percentage and is widely used in civil engineering and road construction. Grade = slope × 100%. For example, a slope of 0.08 equals an 8% grade. In some contexts (especially railways), grade may be expressed in per mille (‰). A 100% grade equals a 45° angle. Highway grades rarely exceed 6–8% for safety reasons, while mountain roads may reach 12–15% in extreme cases.
Can slope be greater than 1?
Yes, absolutely! A slope greater than 1 means the line rises faster than it runs—the vertical change exceeds the horizontal change. For instance, a slope of 3 means the line rises 3 units for every 1 unit of horizontal distance. The corresponding angle would be arctan(3) ≈ 71.57°, which is quite steep. There is no upper limit to slope values; as the line approaches vertical, the slope approaches infinity. In practical terms, slopes greater than 1 are common in steep staircases (often around 1.5–2), rock climbing routes, and some roller coaster drops.