Slope Between Two Points Calculator
Enter x₁, y₁, x₂, y₂ to find slope. Slope = (y₂-y₁) ÷ (x₂-x₁).
How the result changes
Only x₁ changes; all other inputs stay at your current values. The line illustrates the formula across the shown range. This is not a forecast of real-world outcomes.
About this calculation
Slope compares vertical change with horizontal change between two points on the same coordinate plane. Use this slope between two points calculator to find slope from x₁, y₁, x₂, y₂.
Formula
Slope = (y₂-y₁) ÷ (x₂-x₁)
Worked example
With x₁: 1, y₁: 2, x₂: 4, y₂: 8, slope is 2.
How to calculate slope
The rule is Slope = (y₂-y₁) ÷ (x₂-x₁).
Slope is vertical change divided by horizontal change. If the x-coordinates are equal, the line is vertical and its slope is undefined.
In the slope between two points example, x₁ 1 produces slope 2. Entering 2 instead produces 3.
Reading slope
A positive slope rises to the right, a negative slope falls, and zero is horizontal. A vertical line has no finite slope. With x₁ 1, y₁ 2, x₂ 4, y₂ 8, the calculator returns slope 2.
Practical use
Describe the direction and steepness of a straight line through measured or plotted points. Describe the change in a measured outcome per unit change along a straight horizontal axis.
Limits and common mistakes
Both points need a common axis scale. Equal x coordinates make the denominator zero and do not produce an ordinary numerical slope. Verify x₁ before interpreting slope.
Why the relationship works
Subtract the endpoint y coordinates to find vertical change and divide by the corresponding horizontal change. The quotient describes the straight line through both points. Reversing both subtraction orders keeps the slope unchanged. The slope between two points rule uses x₁, y₁, x₂, y₂ in Slope = (y₂-y₁) ÷ (x₂-x₁); read each symbol as the field named on this page.
Interpreting another set of values
The entered x₁, y₁, x₂, y₂ locate two points. The rule Slope = (y₂-y₁) ÷ (x₂-x₁) returns slope as vertical change per horizontal change. State the axis scales before treating it as a physical grade.
For a second slope between two points check, keep the other default inputs fixed and change x₁ from 1 to 3. Slope changes from 2 to 6. Changing one coordinate alters the rise or run; inspect the signed differences before interpreting the new steepness.
Checks and limits
Equal x coordinates make horizontal change zero and slope undefined. A horizontal line gives zero slope; a negative quotient falls as x increases. The worked 2 is a signed rise-per-run ratio. Its practical unit depends on how the two axes were measured.
Inputs
- x₁
- y₁
- x₂
- y₂