Slope Calculator
This slope calculator solves for parameters of slope and distance of a line between two points, or a point and a slope.
Calculator
If 2 Points are Known
If 1 Point and the Slope are Known
Slope Summary
Line Properties
| Property | Value |
|---|---|
| Slope (decimal) | 1.3333 |
| Slope (fraction) | 4/3 |
| Distance | 5.0000 |
| Angle / Grade | 53.13° / 133.33% |
| Midpoint | (4.5000, 6.0000) |
Results
Slope (m)
1.3333 (4/3)
Rising left to right
5.0000
√(Δx² + Δy²) straight-line length
53.13°
arctan(m) in degrees
133.33%
Slope × 100 — road/railway convention
(4.5000, 6.0000)
Point halfway between the endpoints
Increasing
Sign of the slope
Results are exact for the coordinates given. Vertical lines report undefined slope with valid distance and angle; projection steps forward from the start point.
Visualizations
Rise, Run & Distance
Rise vs Run Share
Steepness vs 45° (m = 1)
Rise vs Run
Formula
Slope is the ratio of vertical change to horizontal change. Distance comes from Pythagoras, the angle from arctangent, and grade restates slope as a percentage.
Alternative Form
Variables
| Symbol | Name | Unit | Description |
|---|---|---|---|
| m | Slope | ratio | Rise divided by run |
| Δx | Run | units | x₂ − x₁ (zero → vertical) |
| Δy | Rise | units | y₂ − y₁ |
| d | Distance | units | Straight-line separation |
| θ | Angle of incline | ° | arctan(m) in degrees |
| g | Grade | % | m × 100 |
| M | Midpoint | point | Average of the endpoints |
Explanation
Slope, angle, and grade are three dialects for steepness: m for equations, θ for geometry, and % for roads and ramps.
Derivation
m = Δy/Δx. d = √(Δx²+Δy²) by Pythagoras. θ = arctan(m) since tan(θ) = opposite/adjacent = rise/run. grade = 100m. Projection: unit vector (1,m)/√(1+m²) scaled by d.
Step-by-Step Calculation
Follow each step to understand how the result is calculated from your inputs.
Compute the run (horizontal change).
Compute the rise (vertical change).
Divide rise by run for the slope.
Apply Pythagoras for the straight-line distance.
Take the arctangent for the angle of incline.
Express as grade and locate the midpoint.
Worked Examples
See how the calculator works with different scenarios.
Scenario
From (3,4) to (6,8).
Inputs
Calculation
Δx = 3, Δy = 4; m = 4/3 ≈ 1.333; d = √(9+16) = 5; θ ≈ 53.13°
Result
m = 4/3, d = 5, θ = 53.13° — a 3-4-5 triangle
Interpretation
The classic 3-4-5 right triangle hides inside: run 3, rise 4, hypotenuse 5.
Understanding Your Result
Your Result: Slope (m): 1.3333 (4/3)
Typical range: Ramps ≤ 8.33%, roads ≤ 6–10%, rail ≤ 2%, roofs m ≈ 0.33 (4/12 pitch); m = 1 is a steep 45° few roads ever touch.
What This Means
Slope tells how fast y changes per unit of x; distance gives the separation; angle and grade restate the same steepness for geometry and engineering.
Why It Matters
Roof pitch, ramp codes, road grades, trend lines, and derivatives all reduce to rise over run — one idea, dozens of trades.
Professional Interpretation
Report slope with grade and angle together: engineers spec grade, drafters draw angles, equations need m.
Recommendations
- •Sketch the rise/run triangle to catch sign errors
- •Use grade (%) when talking to builders
- •Use θ when drafting or surveying
- •Default to m in equations and code
- •Flag vertical lines instead of forcing a number
- •Verify with distance: 3-4-5 patterns recur
Educational Content
Introduction
Slope (gradient) measures a line's steepness as rise over run. This calculator returns slope, fraction form, distance, angle, grade, and midpoint from two points.
Concept Explanation
Between two points, divide the vertical gap by the horizontal gap. Positive tilts climb, negative tilts fall, zero is flat, and zero-run is vertical (undefined).
Applications
Benefits
- •Exact fraction form alongside decimals
- •Distance, angle, and grade in one pass
- •Point projector for layout work
- •Rise/run triangle builds geometric intuition
- •Vertical lines handled explicitly, not as errors
Limitations
- •Straight lines only — curves need derivatives
- •Two-dimensional points only
- •Angle wraps: steep descents read as negative θ
- •Projection follows the forward direction only
Best Practices
- •Label points before subtracting
- •Keep Δ-order consistent (₂ minus ₁)
- •Convert grade ↔ m by moving two decimals
- •Use arctan, not eyeballing, for angles
- •Check verticality before dividing
Common Misconceptions
Practical Tips
- •Remember: ₂ minus ₁, top and bottom
- •Say "rise over run" while writing the fraction
- •Convert m=1 to 45° as a sanity anchor
- •Use point-slope form to get the equation fast
- •Check perpendiculars with −1/m
- •Read roof pitch n/12 as m = n÷12
- •Use =SLOPE() in Excel for fitted lines
Common Mistakes
Assumptions
This calculator makes the following assumptions to provide estimates:
Limitations
Be aware of these limitations when using this calculator:
Frequently Asked Questions
Answers to common questions about this calculator.
What is the slope formula?
How do you calculate slope between two points?
What does a positive slope mean?
What does a negative slope mean?
What does a zero slope mean?
What is an undefined slope?
What is slope-intercept form?
What is point-slope form?
How do you convert slope to an angle?
What is grade in terms of slope?
How do you calculate the distance between two points?
What is the perpendicular slope?
How do you find the equation of a line given two points?
How is slope used in road design?
Related Calculators
Explore more calculators related to this topic.
Related Guides
Deepen your understanding with these educational resources.
Glossary
Technical terms used in mortgage calculations explained in plain language.
- Slope
- Rise over run: (y₂−y₁)/(x₂−x₁).
- Gradient
- Engineering synonym for slope, often as a percentage.
- Rise
- Vertical change Δy between two points.
- Run
- Horizontal change Δx between two points.
- Grade
- Slope × 100, in percent.
- Angle of incline
- arctan(m): the line's tilt in degrees.
- Slope-intercept form
- y = mx + b with slope m and intercept b.
- Point-slope form
- y − y₁ = m(x − x₁).
- Midpoint
- The point halfway between two endpoints.
- Perpendicular slope
- The negative reciprocal −1/m.
Authoritative References
Trusted sources and standards referenced by this calculator.
Applicable Standards
Was This Calculator Helpful?
Page Information
2026-08-07
2.0.0
Free to use for educational and professional purposes.