Skip to main content
Calctrove Calctrove

Slope Calculator

Slope calculator

Find slope from points, rise/run, point-slope, or standard form.

Slope

m = 2

Rise Δy = 8 and run Δx = 4; m = Δy / Δx.

Live

y = mx + b

Positive: rises left to right

InputsTwo points4 fields • Positive: rises left to rightLive

Inputs accept integers, decimals, fractions such as -3/4, and mixed numbers such as 1 1/2.

Live line graph

Points and rise/run update as you type.

y = 2x
P1P2x: -1 to 6y: -3.68 to 13.68

Direction

Positive: rises left to right

Angle

63.43494882°

Slope fraction

2

x-intercept

0

y-intercept

0

Line equation

y = 2x

y - 2 = 2(x - 1)

Advanced reviewequations, slope forms, and intercept notes

Primary form: y = 2x

Equivalent form: y - 2 = 2(x - 1)

Slope fraction m = 2 and angle 63.43494882°.

Formula
m = (y2 - y1) / (x2 - x1)

Symbol legend

Symbol Meaning Unit Copy
m Slope of the line unit y per unit x
x_1, y_1 First point coordinates (x, y)
x_2, y_2 Second point coordinates (x, y)
  • Subtract y-values to get rise.
  • Subtract x-values to get run.
  • Divide rise by run to get slope m; a zero run identifies a vertical line with undefined slope.
Example

Worked example: points (1, 2) and (5, 10)

  1. 1 Rise = 10 - 2 = 8
  2. 2 Run = 5 - 1 = 4
  3. 3 m = 8 / 4 = 2

The slope is 2.

How
  1. Choose Two points, Rise/run, Point + slope, or Standard form.
  2. Enter the known coordinates or coefficients; integers, decimals, fractions, mixed numbers, and negative values are supported.
  3. Read the slope, fraction, angle, intercepts, equation, and live graph, then copy the result if needed.
Avoid
  • Reversing point order in only one subtraction, which changes sign incorrectly.
  • Treating a zero run as zero slope; it actually represents an undefined vertical slope.
  • Mixing units between x and y without interpretation.
FAQ
What does a negative slope mean?

A negative slope means the line decreases as x increases.

Why is slope undefined when x1 equals x2?

The denominator becomes zero, which represents a vertical line. The calculator reports its x = constant equation instead of inventing a finite slope.

Can I use decimal coordinates?

Yes. Decimal, negative, fraction, and mixed-number inputs are supported.

Can I calculate slope from standard or point-slope form?

Yes. The visible mode selector supports two points, rise/run, point-slope, and Ax + By + C = 0.

Switch
Switch12