CalculationTime

Slope Calculator

Calculate the slope between two coordinate points, show the rise-over-run formula, flag vertical lines and print a clean classroom or drawing worksheet.

Live math canvas

Your numbers, formula and explanation together

Slope Calculator: 2 slope. Rise = 15 - 3 = 12; run = 8 - 2 = 6; slope = rise ÷ run = 2.

Formula applied

The exact method behind this answer

CalculationTime keeps the method visible so the number can be checked instead of blindly trusted.

Slope m = (y₂ − y₁) ÷ (x₂ − x₁). Rise = y₂ − y₁. Run = x₂ − x₁. A zero run makes the slope undefined because division by zero is not valid.
  1. Apply the formulaSlope m = (y₂ − y₁) ÷ (x₂ − x₁). Rise = y₂ − y₁. Run = x₂ − x₁. A zero run makes the slope undefined because division by zero is not valid.2 slopeRise = 15 - 3 = 12; run = 8 - 2 = 6; slope = rise ÷ run = 2.

Your live breakdown

Current inputs in the calculation

These values come from the controls above and update when the calculator changes.

Point 1 x-coordinate
2
First point horizontal coordinate.
Point 1 y-coordinate
3
First point vertical coordinate.
Point 2 x-coordinate
8
Second point horizontal coordinate.
Point 2 y-coordinate
15
Second point vertical coordinate.

Resulting answer

2 slope

Rise = 15 - 3 = 12; run = 8 - 2 = 6; slope = rise ÷ run = 2.

Answer
2 slope
Live support
Rise = 15 - 3 = 12; run = 8 - 2 = 6; slope = rise ÷ run = 2.

Assumptions used

What this answer assumes

Best for two-point line slope checks. Use a statistics or regression tool when many measured points need a best-fit line.

  • Coordinates use the same linear units on both axes unless your graph or drawing states a different scale.
  • The result is the slope of the straight line through the two points, not a curve fit through many points.
  • If x₂ equals x₁, the line is vertical and the slope is undefined rather than zero.
  • If y₂ equals y₁ and the run is not zero, the line is horizontal and the slope is zero.
  • Rounding is only for display; keep the exact rise and run when copying to homework, CAD notes or engineering checks.

Master’s Tip

How to use the result well

Master’s Tip: write the two points, rise and run beside the final slope. That catches the common mistake of reversing only one subtraction and changing the sign by accident.

Printable record

What belongs in the saved calculation

Save the inputs, result, formula, assumptions, page URL and date together so the calculation can be reviewed later.

Point 1 x-coordinate
2
First point horizontal coordinate.
Point 1 y-coordinate
3
First point vertical coordinate.
Point 2 x-coordinate
8
Second point horizontal coordinate.
Point 2 y-coordinate
15
Second point vertical coordinate.

What-if check

Rise-over-run worksheet

The calculation preserves both coordinate points, rise and run so the final slope can be checked instead of copied blindly.

CheckValueNote
point 1(2, 3)start point
point 2(8, 15)end point
rise12y2 - y1
run6x2 - x1
current output2 sloperise divided by run

Visual proof

Result path

InputMethodAnswer2 slope

Rise = 15 - 3 = 12; run = 8 - 2 = 6; slope = rise ÷ run = 2.

Embeddable calculator

Embed this calculator

Copy a clean iframe version with the required CalculationTime attribution link built in.

Formula

Slope m = (y₂ − y₁) ÷ (x₂ − x₁). Rise = y₂ − y₁. Run = x₂ − x₁. A zero run makes the slope undefined because division by zero is not valid.

Worked example

For points (2, 3) and (8, 15), rise = 15 − 3 = 12 and run = 8 − 2 = 6. Slope = 12 ÷ 6 = 2, meaning the line rises 2 units for every 1 unit of horizontal run.

Professional note

Master’s Tip: write the two points, rise and run beside the final slope. That catches the common mistake of reversing only one subtraction and changing the sign by accident.

Regional and unit assumptions

Standard or basis: Cartesian coordinate geometry and the common school algebra definition of slope as change in y divided by change in x. No surveying, drainage-code or structural design standard is claimed.

Assumptions and limitations

Methodology & Accuracy

How this calculator is checked

CalculationTime pages are built around visible arithmetic: the formula, assumptions, worked example and practical limitations are shown so the result can be checked rather than simply trusted.

Formula used

Slope m = (y₂ − y₁) ÷ (x₂ − x₁). Rise = y₂ − y₁. Run = x₂ − x₁. A zero run makes the slope undefined because division by zero is not valid.

Standard or basis

Standard or basis: Cartesian coordinate geometry and the common school algebra definition of slope as change in y divided by change in x. No surveying, drainage-code or structural design standard is claimed.

Where a calculator follows a named legal, trade or industry standard, that standard is cited visibly. Otherwise the page uses transparent general arithmetic and states its limits.

Master's Tip

Master’s Tip: write the two points, rise and run beside the final slope. That catches the common mistake of reversing only one subtraction and changing the sign by accident.

Questions

How do you calculate slope from two points?

Subtract the first y-value from the second y-value to get rise, subtract the first x-value from the second x-value to get run, then divide rise by run.

What does an undefined slope mean?

An undefined slope means the run is zero because the two x-values are the same. The line is vertical, so the formula would require division by zero.

Is a horizontal line slope zero?

Yes. If the y-values are the same and the x-values are different, the rise is zero and the slope is 0.

Can slope be negative?

Yes. A negative slope means the line falls as x increases, or rises as x decreases, depending on the direction you read the line.

What should the printable slope report include?

A useful slope worksheet should show both points, rise, run, final slope, formula, date and notes so homework, drawings or site sketches can be checked later.

Calculation note

Slope is a compact way to describe steepness and direction. In school algebra it connects coordinate points to line equations; in practical work the same rise-over-run idea appears in ramps, roofs, drainage falls, graph reading and measurement sketches.

Rise over run keeps the change visible

The value is not magic: it is the vertical change divided by the horizontal change. Showing rise and run beside the decimal slope makes the direction, sign and units easier to check.

Vertical and horizontal lines are different edge cases

A horizontal line has zero rise and a valid nonzero run, so its slope is 0. A vertical line has zero run, so the division is undefined. Keeping that distinction visible prevents one of the most common slope mistakes.

The printout is a worksheet record

A useful slope report is more than the final decimal. It should preserve the two points, formula, rise, run, result, date and notes area so a teacher, student, drafter or reviewer can trace the line calculation later.