📈 Slope Calculator
Find slope, angle, distance, and midpoint between two points on the coordinate plane.
Line Slope From Two Points — Rise Over Run
BrainyCalculators editorial insight — unique to this tool
Slope m = (y₂−y₁)/(x₂−x₁) — wheelchair ramp ADA max ~1:12 (8.33% grade). Roof pitch 6:12 means 6 inch rise per foot run. Parallel lines share slope; perpendicular slopes multiply to −1.
When to use this calculator
Use for line steepness and equation from points. For best-fit line through many points, use Regression.
Fitting a line to many data points?
This page uses two points only. For least-squares regression on a dataset, use the Regression Calculator →
Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
What is a Slope Calculator?
A slope calculator computes rise over run between two (x, y) points, the line angle, and related distance and midpoint values. It answers geometry-of-a-line questions for exactly two points.
Use this page for homework-style “find the slope through (x₁,y₁) and (x₂,y₂).” For many data pairs and a best-fit line, use Linear Regression instead.
Correlation measures strength of association across a full dataset; slope here is between two specified points only.
Slope Formulas
Worked Example — Points (1, 2) and (4, 8)
How the Slope Calculator Works
Formula, assumptions, and calculation steps for this math tool.
Methodology
Math calculators apply the relevant arithmetic, algebraic, geometric, or numeric rule to the values entered and simplify the result where possible.
Calculation Steps
- Read the values and operation selected.
- Normalize signs, decimals, fractions, or units if needed.
- Apply the mathematical rule or formula.
- Format the answer and any intermediate values for checking.
Assumptions and Limits
- Inputs must be within the supported domain of the operation.
- Decimal answers may be rounded for readability.
- Symbolic simplification is limited to the calculator scope.
Frequently Asked Questions
Slope (m) measures how steep a line is — the ratio of vertical change (rise) to horizontal change (run) between any two points on the line. A larger absolute value means a steeper line.
Use the formula m = (y₂ − y₁) / (x₂ − x₁). Subtract the y-coordinates and divide by the difference in x-coordinates. For example, points (2, 3) and (6, 11): m = (11−3)/(6−2) = 8/4 = 2.
The y-intercept (b) is the point where the line crosses the y-axis (where x = 0). Once you have the slope, calculate it as b = y₁ − m × x₁ using either of the two given points.
Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept. It makes it easy to graph a line — start at (0, b) on the y-axis, then move right 1 unit and up m units.
Real-World Applications
Common Mistakes
Slope Format Conversion Quick Reference
| Rise:Run Ratio | % Grade | Angle (°) | Context |
|---|---|---|---|
| 1:40 | 2.5% | 1.43° | Minimum drain fall |
| 1:12 | 8.33% | 4.76° | ADA max ramp slope |
| 1:10 | 10% | 5.71° | Steep residential driveway |
| 1:4 | 25% | 14.04° | Steep footpath / ski blue run |
| 1:1 | 100% | 45° | Maximum practical grade |
References
- Stewart, J. Calculus: Early Transcendentals. Cengage, 2016.
- US Access Board. ADA Standards for Accessible Design. access-board.gov, 2010.
- AASHTO. A Policy on Geometric Design of Highways and Streets (Green Book). AASHTO, 2018.
- Montgomery, D.C. and Runger, G.C. Applied Statistics and Probability for Engineers. Wiley, 2018.
- ICC. International Plumbing Code — Chapter 7: Sanitary Drainage. ICC, 2021.
Related Calculators
Browse all Math calculators →Distance Calculator
Calculate the distance between two points using the distance formula.
Algebra Calculator
Solve algebraic expressions and evaluate equations step by step.
Geometry Calculator
Calculate area, perimeter, volume and other properties of geometric shapes.