Mathematics, Statistics & Geometry

Slope Calculator

Calculate the exact slope (rate of change), Y-intercept, and standard linear equation of any straight line given two distinct Cartesian coordinates.

Slope (m)
2
Y-Intercept (b)-1
Line Equationy = 2x - 1
Calculation StepsPoint 1: (2, 3) Point 2: (5, 9) 1. Calculate Change in Y (Rise): ΔY = y₂ - y₁ = 9 - 3 = 6 2. Calculate Change in X (Run): ΔX = x₂ - x₁ = 5 - 2 = 3 3. Calculate Slope (m): m = Rise / Run = 6 / 3 = 2.0000 4. Find Y-Intercept (b) using y = mx + b: 3 = (2.0000)(2) + b 3 = 4.0000 + b b = -1.0000 Equation of Line: y = 2x - 1

Calculated locally in your browser. Fast, secure, and private.

Measuring Linear Rates of Change

The Slope Calculator translates visual geometric coordinates into pure algebraic formulas. By calculating the difference quotient between two points, it outputs the exact slope, y-intercept, and standard y=mx+by = mx + b line equation.

m=y2y1x2x1\begin{aligned} m = \frac{y_2 - y_1}{x_2 - x_1} \end{aligned}

Where:
m=
The steepness and direction of the linear line
(x1,y1)(x_1, y_1)=
The starting Cartesian coordinate
(x2,y2)(x_2, y_2)=
The ending Cartesian coordinate

The Foundation of Calculus

The concept of calculating slope between two points is the bedrock of differential calculus. In algebra, you calculate the slope of a straight line. In calculus, you bring the two points infinitely close together (taking the limit as the distance approaches zero) to calculate the slope of a curved line at a single, exact instant.

Real-World Applications

  • Construction & Architecture: Calculating the exact pitch of a roof. A '6/12 pitch' roof has a slope of 0.5 (it rises 6 inches for every 12 inches of horizontal run).
  • Economics: Determining the 'Marginal Cost' of production. If producing 100 units costs £500, and producing 200 units costs £900, the linear slope (£4/unit) is the marginal cost.
  • Civil Engineering: Designing road grades. Highways are built with specific maximum slopes (e.g., a 6% grade) to ensure heavily loaded semi-trucks can safely climb them.

Frequently Asked Questions

Slope is the exact measurement of a line's steepness. It tells you exactly how much the line goes UP (or down) for every one unit it moves to the RIGHT.

It is the easiest way to remember the formula. 'Rise' is the change in the Y-axis (vertical). 'Run' is the change in the X-axis (horizontal). You divide the Rise by the Run.

A positive slope goes uphill from left to right. A negative slope goes downhill from left to right.

A slope of 0 means the line is perfectly horizontal. It has no 'rise' at all. The equation of the line simply becomes y = b.

A perfectly vertical line has an undefined slope. Because the X-coordinates are identical, the 'Run' is 0. In mathematics, dividing by zero is impossible.