—
—
°
1.107149
rad
6
3
—
—
—
°
1.107149
rad
6
3
—
The Slope Calculator computes the slope (gradient) of a line passing through two points, along with the angle of inclination, rise, run, and distance. Slope is one of the most fundamental concepts in coordinate geometry and calculus, describing how steep a line is and in which direction it tilts.
The slope of a line through two points \((x_1, y_1)\) and \((x_2, y_2)\) is defined as the ratio of the vertical change to the horizontal change: $$m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\Delta y}{\Delta x} = \frac{\text{rise}}{\text{run}}$$
A positive slope means the line rises from left to right. A negative slope means it falls from left to right. A slope of zero indicates a horizontal line, while an undefined slope (division by zero when \(\Delta x = 0\)) indicates a vertical line.
The angle of inclination \(\theta\) is the angle the line makes with the positive x-axis, computed as: $$\theta = \arctan(m)$$
Slope is ubiquitous in mathematics and its applications. In calculus, the derivative of a function at a point is the slope of the tangent line, making slope the foundation of differential calculus. In physics, slope represents rate of change—velocity is the slope of a position-time graph, and acceleration is the slope of a velocity-time graph.
In civil engineering and construction, slope (often expressed as a percentage or ratio) determines road grades, roof pitches, drainage angles, and wheelchair ramp specifications. A 6% grade means the road rises 6 feet for every 100 feet of horizontal distance. In economics, slope represents marginal rates—marginal cost, marginal revenue, and elasticity are all slope-based concepts.
This calculator provides the slope as a decimal, the angle in both degrees and radians, the rise and run components, and the distance between the two points. Together, these values give a complete picture of the line's orientation and the spatial relationship between the points.
Understanding slope is also essential for writing equations of lines in various forms: slope-intercept (\(y = mx + b\)), point-slope (\(y - y_1 = m(x - x_1)\)), and standard form (\(Ax + By = C\)).
The slope formula computes the rate of change between two points:
$$m = \frac{y_2 - y_1}{x_2 - x_1}$$
Step 1: Calculate the rise (vertical change): $$\text{rise} = \Delta y = y_2 - y_1$$
Step 2: Calculate the run (horizontal change): $$\text{run} = \Delta x = x_2 - x_1$$
Step 3: Divide rise by run to get the slope: $$m = \frac{\text{rise}}{\text{run}}$$
Step 4: Compute the angle of inclination: $$\theta = \arctan(m)$$
If \(\Delta x = 0\), the line is vertical and the slope is undefined.
The Slope (m) tells you how much y changes per unit change in x. A slope of 2 means y increases by 2 for every 1 unit increase in x. The Angle of Inclination shows the tilt relative to the horizontal axis. Rise and Run are the raw vertical and horizontal differences. The Distance gives the straight-line length between the two points.
Inputs
Results
Rise = 6, Run = 3, so m = 6/3 = 2. The line rises steeply at about 63.4°.
Inputs
Results
Rise = -4, Run = 8, so m = -4/8 = -0.5. Negative slope means the line falls from left to right.
A slope of zero means the line is perfectly horizontal. The y-values are the same for both points, so there is no vertical change regardless of horizontal movement.
An undefined slope occurs when \(\Delta x = 0\), meaning both points have the same x-coordinate. The line is vertical, and division by zero makes the slope undefined.
No. Swapping the points changes the sign of both the numerator and denominator, so the ratio stays the same: \(\frac{y_1-y_2}{x_1-x_2} = \frac{y_2-y_1}{x_2-x_1}\).
Multiply the slope by 100. A slope of 0.06 equals a 6% grade. This is commonly used in road engineering and construction.
The slope is the tangent of the angle of inclination: \(m = \tan(\theta)\). Conversely, \(\theta = \arctan(m)\). A 45° angle corresponds to a slope of 1.
In calculus, the derivative \(f'(x)\) gives the instantaneous slope of a curve at a point. The slope formula between two points gives the average rate of change, which approaches the derivative as the points get closer together.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Distance Calculator (2D)
Coordinate Geometry Calculators
Distance Calculator (3D)
Coordinate Geometry Calculators
Midpoint Calculator
Coordinate Geometry Calculators
Endpoint Calculator
Coordinate Geometry Calculators
Slope Intercept Form Calculator
Coordinate Geometry Calculators
Point Slope Form Calculator
Coordinate Geometry Calculators