Slope Calculator

Use this free slope calculator to enter two coordinate points and find rise, run, slope, y-intercept, and a line equation with clear steps.

Illustration for Slope Calculator showing find slope, rise, run, and a line equation from two points.
Slope Calculator artwork matches the live tool workflow: find slope, rise, run, and a line equation from two points. Use it with the calculator, examples, and result notes.View in the smoke-kawaii gallery
Unit-aware inputsFormula noteExample numbersTab-only history
Slope2
Rise
8
Run
4
Line
y = 2x

Steps

  1. Find rise: 10 - 2 = 8.
  2. Find run: 5 - 1 = 4.
  3. Divide rise by run: 8 / 4 = 2.
  4. The line can be written as y = 2x.

Recent answers

Recent slope answers will appear here.

Privacy note

Geometry answers and history stay in this browser tab while you work.

Copy answer only writes the current result to your clipboard when you press it.

How to use the Slope Calculator

  1. Enter the first point as x1 and y1.
  2. Enter the second point as x2 and y2.
  3. Press Calculate slope to see rise, run, slope, and the line equation.
  4. If both x-values match, the line is vertical and the slope is undefined.
  5. Use examples, recent answers, or copy the result while checking coordinate problems.

What people use it for

Find slope from two coordinate points.

Check rise over run for graphing and algebra homework.

Identify vertical lines with undefined slope.

Write a simple line equation from calculated slope and intercept.

Compare positive, negative, horizontal, and vertical line behavior.

Copy the slope steps into notes after checking decimal or negative coordinates.

Quick examples

Positive slope

(1, 2) to (5, 10)

m = 2

Negative slope

(-2, 7) to (4, 1)

m = -1

Vertical line

(3, 2) to (3, 8)

Undefined slope

Horizontal line

(0, 4) to (8, 4)

m = 0

Decimal points

(1.5, -2) to (5.5, 6)

m = 2

Fraction result

(-3, 1) to (9, 5)

m = 1/3, or 0.333333...

Downward line

(2, -1) to (8, -10)

m = -1.5

Need the guide or a nearby tool?

Need a slower walkthrough, a related calculator, or the full library? These links keep you close to the task you started.

Frequently asked questions

Quick answers about formulas, units, valid measurements, examples, copying, and private in-browser history.

What formula does the Slope Calculator use?

It uses slope = (y2 - y1) / (x2 - x1), often described as rise over run.

What is an undefined slope?

A vertical line has a run of zero because both points have the same x-value. Division by zero is undefined, so the slope is undefined.

What do the main Slope Calculator inputs mean?

The main inputs are the numbers, operation, mode, or known values the calculator needs. Keep units consistent, enter percentages the way the page label shows, and use the examples as a quick check before trusting the answer.

How should I read the Slope Calculator answer?

Read the headline answer, then check the supporting lines and examples to understand how the calculator got there. If one input changes, rerun the tool and compare the new answer instead of guessing.

What should I double-check before trusting the Slope Calculator?

Check units, signs, rounding, and the selected mode before copying the answer. If the number feels weird, rerun one of the examples first, then put your own values back in slowly.

Can the two points be the same?

No. The two points must be different, or there is no single line direction to calculate.

What does rise over run mean?

Rise is y2 - y1, the vertical change between the points. Run is x2 - x1, the horizontal change. Slope divides rise by run.

What does a negative slope mean?

A negative slope means the line goes down as x increases. For example, a slope of -1 drops 1 unit for every 1 unit you move right.

What is a horizontal line slope?

A horizontal line has a rise of zero, so its slope is 0. The line equation is y = a constant.

Does this calculator show the line equation?

Yes. For non-vertical lines it shows y = mx + b. For vertical lines it shows x = constant.

Can I use decimals or negative coordinates?

Yes. Decimal and negative coordinates work as long as each value is a valid number and the two points are not identical.

Does point order change the slope?

No. Swapping the first and second point changes both rise and run signs, so the final slope stays the same.

Is slope the same as distance?

No. Slope measures steepness as rise divided by run. Distance measures how far apart the two points are along the segment.

Should I use the Distance Calculator instead?

Use Slope Calculator for line steepness and equations. Use Distance Calculator for the straight-line length between two points.

Is my slope history private?

Yes. Recent slope answers stay only in the current browser tab while you use the page. They are not sent to a server.

Related tools

Distance CalculatorStraight-line distance between two 2D points, plus distance squared, deltas, midpoint, and formula steps.
Right Triangle CalculatorSolve a right triangle from two sides, including the missing side, area, perimeter, and acute angles.
Triangle CalculatorCheck three triangle sides, find a possible third-side range, or calculate SSS area, perimeter, angles, and type.
Scientific CalculatorA free scientific calculator for trig, inverse trig, logs, roots, powers, constants, and DEG/RAD mode.