Slope Calculator
Input Coordinates
Results
| Slope (m) | — |
|---|---|
| Distance (d) | — |
| Midpoint | — |
| Angle of Inclination (θ) | — |
| Slope-Intercept Form | — |
| Point-Slope Form | — |
| Standard Form | — |
How to Use This Slope Calculator
Figuring out slope, distance, and the right line equation from two scattered coordinate pairs is the kind of scratchpad work that eats homework time fast. I built this page so you enter both points once and get slope, segment length, midpoint, angle of inclination, and three equation forms without re-running the arithmetic by hand.
- Enter Point 1 and Point 2. Type x₁, y₁ and x₂, y₂ in any order—the slope formula uses differences, so swapping labels does not change m.
- Press Calculate. The results table fills with slope, distance, midpoint, angle, slope-intercept form, point-slope form, and standard form.
- Read the step-by-step block. Each run shows midpoint first, then distance, then slope (or the vertical-line branch), then equation assembly.
- Cross-check related tools. For straight-line length only, try the Distance Calculator. For right-triangle side math, use the Pythagorean Theorem Calculator.
Slope Formulas and Practical Applications
Think of slope as a road grade: rise over run tells you how steeply a line climbs or drops as you move right along the x-axis. A roof pitch estimate, a linear regression check, or a quick verify on a graphing worksheet all start with the same fraction.
Slope from two points
m = (y₂ − y₁) / (x₂ − x₁)
Points (2, 3) and (6, 11) give m = (11 − 3) / (6 − 2) = 8 / 4 = 2—the line rises two units for every one unit right. When x₁ = x₂, the line is vertical and slope is undefined; the tool reports that case and writes x = constant instead.
Distance and midpoint on the same segment
d = √((x₂ − x₁)² + (y₂ − y₁)²)
Midpoint = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
Those two formulas reuse the same coordinate differences as slope. On a site layout, distance is the tape-measure span; midpoint is the center mark for a bracket or support.
Line equations the tool returns
y = mx + b (slope-intercept)
y − y₁ = m(x − x₁) (point-slope)
After finding m, the calculator solves b = y₁ − mx₁ for intercept form and formats standard form Ax + By = C. Angle of inclination θ = arctan(m) in degrees completes the picture for ramp and roof checks.
Where slope shows up in real work
- Checking whether a plotted data line is steeper than a 45° reference (slope 1).
- Writing the equation of a trend line through two survey stakes.
- Confirming parallel lines share the same m before a CAD import.
Standard Units and Conversion Tables
Coordinates carry whatever unit your graph uses—meters, feet, or abstract grid units. Slope itself is a ratio (rise per run), so it has no unit. Distance and midpoint inherit the input unit; angle is always reported in degrees.
| Output | Unit behavior |
|---|---|
| Slope (m) | Unitless ratio |
| Distance (d) | Same as coordinate unit (e.g. ft → ft) |
| Midpoint | Same as coordinate unit on each axis |
| Angle (θ) | Degrees (°) |
For 3D segment length, switch to the Distance Calculator with 3D mode. Browse all math calculators for geometry helpers.
Frequently Asked Questions
How do you find the slope of a line between two points?
Subtract y-values and divide by the change in x: m = (y₂ − y₁) / (x₂ − x₁). Enter both points above and press Calculate—the table and step block do the division for you.
What does undefined slope mean?
Matching x-coordinates make the denominator zero. The line is vertical—picture a column or a north-south wall on a grid—with equation x = constant and inclination 90°.
What is the difference between slope-intercept and point-slope form?
Slope-intercept y = mx + b highlights where the line crosses the y-axis. Point-slope y − y₁ = m(x − x₁) anchors the line at a known point—handy when the intercept is off the page.
Can the slope be negative?
Yes. Negative m means the line falls as x increases. Zero slope is horizontal; undefined slope is vertical.
Does this calculator also find distance and midpoint?
Yes—every run returns distance, midpoint, and angle along with the three equation forms. For distance-only work in 2D or 3D, the Distance Calculator adds a dedicated mode switch.
Disclaimer. RapidRatio is informational only—not academic, engineering, or surveying advice. Confirm every figure with your instructor or qualified professional.