How to use this tool
- Enter first point: x, first point: y, second point: x, second point: y.
- Select Calculate to view the result.
- Check the method and assumptions below before using the result.
Input reference and sample values
Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.
| Input | Format and units | Sample |
|---|---|---|
| First point: x | Numeric value. | 0 |
| First point: y | Numeric value. | 0 |
| Second point: x | Numeric value. | 3 |
| Second point: y | Numeric value. | 4 |
Result for these sample inputs
1.33333333
- Rise
- 4
- Run
- 3
- Y intercept
- 0
Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.
The method, explained
Slope = (y₂ − y₁) ÷ (x₂ − x₁). For a nonvertical line, y-intercept = y₁ − slope × x₁.
From (0, 0) to (3, 4), rise is 4, run is 3, slope is 4/3 and the y-intercept is 0.
What to keep in mind
A vertical line has undefined slope; identical points do not determine a unique line. Coordinates are numerical values on a Cartesian plane, not geographic bearings.
Common questions
Does reversing the points change the slope?
No. Both rise and run change sign, leaving their ratio unchanged.
What is the slope of a horizontal line?
Zero, provided the points have different x coordinates.
Methodology maintained by ClarityKit. How these tools are built and checked.