Mathematics calculator

Slope Calculator

Calculate rise, run, slope, and inclination angle from two points on a coordinate plane.

Calculator inputs

Enter your values

Coordinate geometry
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

1

What is Slope Calculator?

This slope calculator finds the rate of change between two points on a coordinate plane. It compares the vertical change in y with the horizontal change in x, showing how much y rises or falls for each one-unit movement to the right.

Slope is used for straight-line equations, graphs, rates, calibration relationships, and trends. The two x-coordinates must differ. If they are equal, the line is vertical and its slope is undefined rather than an ordinary number.

2

How to Use This Calculator

  1. Enter the first point as x₁ and y₁.
  2. Enter the second point as x₂ and y₂.
  3. Select Calculate. The page subtracts coordinates in the same point order and divides the y difference by the x difference.
  4. Use the sign and size to describe the line, then check by reversing both subtraction orders.

Coordinates may be positive, negative, or decimal. Use compatible units on each axis and state them with the answer when the points represent measurements.

3

Formula Used

m = (y₂ − y₁) ÷ (x₂ − x₁)

The denominator cannot be zero. Reversing both differences gives (y₁ − y₂)/(x₁ − x₂), which is equivalent. Reversing only one difference changes the sign incorrectly.

4

Variables Explained

Symbol or resultMeaning
(x₁, y₁)The first coordinate pair.
(x₂, y₂)The second coordinate pair.
ΔxHorizontal change x₂ − x₁; it must be nonzero.
ΔyVertical change y₂ − y₁.
mSlope, or vertical units per horizontal unit, displayed to two decimals.
5

Worked Example

For points (2, 3) and (8, 15), Δy = 15 − 3 = 12 and Δx = 8 − 2 = 6. The slope is 12 ÷ 6 = 2.00.

This means y increases by two units for every one-unit increase in x along the line. Checking in reverse gives (3 − 15)/(2 − 8) = −12/−6 = 2.

6

Why Use This Calculator?

A positive slope rises from left to right; a negative slope falls. Zero describes a horizontal line. Larger absolute values indicate more vertical change per horizontal unit, but comparisons make sense only with compatible axis scales.

Slope between two observations is a secant rate of change. It does not prove the relationship is linear between or beyond them. For measured data, uncertainty and rounding affect the result, especially when x values are close. A fitted regression slope uses all selected observations and is a different calculation.

The line through two points can be written in point-slope form as y − y₁ = m(x − x₁). Once m is known, substituting either point gives an equation for the same line. In slope-intercept form y = mx + b, calculate b as y₁ − mx₁. Substituting the second point is a useful independent check.

When slope represents a rate, direction matters. A result of −3 dollars per item means the modeled y value falls by three dollars for each additional item; it is not merely a steepness of three. A reciprocal slope answers a different question and is valid only when the original numerator is nonzero.

Close x-coordinates make the denominator small, which magnifies coordinate error. Record enough significant digits and consider an uncertainty analysis for measured points. In a graph, axis scaling can make the same numeric slope appear visually steep or flat, so read the labels rather than judging from appearance.

Parallel nonvertical lines share the same slope. Perpendicular nonvertical lines have slopes whose product is −1, provided neither is horizontal or vertical; the perpendicular slope is the negative reciprocal. These rules offer useful checks in geometry but still require attention to exceptional lines. Plotting both points provides another quick check of direction and sign.

Keep the original inputs beside the result for a clear, reproducible record.

7

Common Mistakes

  • Mixing point order between numerator and denominator.
  • Dividing by zero for a vertical line.
  • Using y change over x change with incompatible or unstated units.
  • Rounding coordinates before calculating.
  • Calling a two-point slope proof of a continuing linear trend.
  • Confusing slope with the y-intercept.
8

Frequently Asked Questions

Why must the x-coordinates differ?

Equal x values make the horizontal change zero, so the formula divides by zero. That vertical line has undefined slope.

What does a negative slope mean?

It means y decreases as x increases along the line. The units state how much decrease occurs per horizontal unit.

Can a slope equal zero?

Yes. Equal y-coordinates produce zero vertical change and a horizontal line, provided the x values differ.

Does swapping the two points change slope?

No, if both numerator and denominator orders are reversed. Both differences change sign, leaving their quotient unchanged.

Why is the answer shown with two decimals?

The page formats the result to two places. Preserve the fraction or calculate separately when greater precision is required.

Is slope unitless?

Only when both axes measure the same unit. Otherwise it has units such as metres per second or dollars per item.

Is a two-point slope the same as regression slope?

No. Two-point slope uses exactly two coordinates; regression estimates a relationship from a collection of observations.

9

Sources & References