Slope Calculator

Calculate slope, y-intercept, line equation, distance, and midpoint from two points.

Slope (m)

1.3333

Equation

y = 1.3333x + 0.6667

Details

Y-Intercept (b)0.6667
Distance5.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

The Slope Calculator determines the steepness and direction of a line connecting two points on a coordinate plane. This is fundamental in algebra, geometry, and calculus, helping to understand rates of change, trends in data, and geometric properties of figures.

It uses the formula for slope, often denoted as 'm': m = (y2 - y1) / (x2 - x1). This represents the 'rise' (change in y-coordinates) divided by the 'run' (change in x-coordinates) between any two distinct points (x1, y1) and (x2, y2).

Ensure you consistently label your points (x1, y1) and (x2, y2) to avoid sign errors, especially with negative coordinates. Remember that a vertical line has an undefined slope (division by zero), and a horizontal line has a slope of zero.

Example: Calculating the slope of a hill for a $25,000 architectural project.

  1. 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. 2 Using the slope formula: m = (20 - 50) / (70 - 10) = -30 / 60 = -0.5.
  3. 3 The slope of the line connecting these two points is -0.5.
  4. 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?
Slope (m) equals (y2-y1)/(x2-x1), or rise over run. For points (2,3) and (6,11), slope = (11-3)/(6-2) = 8/4 = 2.
What does a slope of 0 mean?
A slope of 0 means the line is perfectly horizontal. There is no rise between any two points. An undefined slope (division by zero) means the line is perfectly vertical.
How do you write a line equation from slope and a point?
Use point-slope form: y - y1 = m(x - x1). With slope m=3 and point (2,5): y - 5 = 3(x - 2), which simplifies to y = 3x - 1 in slope-intercept form.