Slope Calculator
Calculate slope, y-intercept, line equation, distance, and midpoint from two points.
By Konstantin Iakovlev · Updated April 2026 · Source: Khan Academy
Slope (m)
1.3333
Equation
y = 1.3333x + 0.6667
Details
| Y-Intercept (b) | 0.6667 |
| Distance | 5.0000 |
| Midpoint | (2.50, 4.00) |
Use the Slope Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.
Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.
How It Works
Slope captures both how steep a line is and which way it tilts as it runs between two points on a coordinate plane. It threads through algebra, geometry, and calculus alike, giving you a handle on rates of change, the direction of a data trend, and the geometric behavior of figures.
The value, written as 'm', comes from m = (y2 - y1) / (x2 - x1): the 'rise', or change in y-coordinates, divided by the 'run', the change in x-coordinates, measured between two distinct points (x1, y1) and (x2, y2).
Label your points the same way every time, (x1, y1) and (x2, y2), so signs stay consistent when coordinates go negative. Two special cases are worth recognizing on sight: a vertical line divides by zero and so has an undefined slope, while a horizontal line has a slope of exactly zero.
Example: Calculating the slope of a hill for a $25,000 architectural project.
- 1 Imagine an architectural firm is designing a house on a sloped lot. They identify two key points on the terrain map: Point A (10, 50) and Point B (70, 20).
- 2 Using the slope formula: m = (20 - 50) / (70 - 10) = -30 / 60 = -0.5.
- 3 The slope of the line connecting these two points is -0.5.
- 4 A negative slope indicates a downward trend from left to right. This means for every 1 unit moved horizontally to the right, the elevation decreases by 0.5 units, which is crucial information for grading and foundation design in the $25,000 project.
Source: Khan Academy · Last updated: April 2026
Frequently Asked Questions
How do you calculate slope from two points?
What does a slope of 0 mean?
How do you write a line equation from slope and a point?
You might also need
Percentage Calculator
Calculate percentages three ways: what is X% of Y, X is what % of Y, and percentage change from X to Y.
Fraction Calculator
Add, subtract, multiply, and divide fractions. Results shown as fraction, mixed number, and decimal.
Standard Deviation Calculator
Calculate mean, variance, and standard deviation (population and sample) from a data set.