Find the slope (m), line equation (y = mx + b), angle of inclination, and distance between two points.
Runs on your device. Nothing you add is uploaded.
Slope (m)
2
Rise 8 / Run 4
Slope-intercept form
y = 2x + 0
y-intercept (b)
0
Angle / Grade
63.43°
200% grade
Formula: m = (y₂ − y₁) / (x₂ − x₁) = (10 − 2) / (5 − 1) = 2. Distance = 8.944272.
How to use Slope calculator
- Enter the (x₁, y₁) and (x₂, y₂) coordinates of two distinct points.
- Use distinct points to define a line.
- Read the slope m, y-intercept b, full equation y = mx + b, and inclination angle.
Questions
The line is vertical, so rise/run divides by zero and the slope is undefined (x = x₁).
Percent grade is simply slope multiplied by 100 (for example, a 0.06 slope is a 6% road grade).
How this works
Computes linear slope, intercepts, and angles locally.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. What you typed and your settings are kept in this browser so the tool opens the way you left it, except passwords, keys and tokens, which are never saved. Privacy
Related tools
More in CalculatorsDistance formula calculatorCompute Euclidean, Manhattan, and 3D straight-line distance between two points.Midpoint calculatorFind the exact midpoint halfway between two 2D or 3D points.Graphing calculatorPlot up to three functions of x on an interactive coordinate canvas with zoom controls, cursor inspection, and a value table.Age CalculatorFind your exact age in years, months, and days, plus total days lived and your next birthday countdown.BMI CalculatorCalculate your Body Mass Index (BMI) in metric or imperial units with WHO weight categories.Mortgage CalculatorEstimate your monthly mortgage payment, total interest, optional housing costs, and yearly amortization schedule.