🧮
Free global education tool · Reviewed 2026-10-05

Slope Calculator

Find rise over run, line angle and Cartesian distance between two points, with explicit vertical-line and identical-point handling.

Reviewed by Mohammad QasimMethod and limitations disclosed
Interactive calculatorYour values stay on this device
Ready to calculate

Your result

Click Calculate

Enter your values, then click Calculate result.
Result uses last calculated inputs

How this calculator helps

Find rise over run, line angle and Cartesian distance between two points, with explicit vertical-line and identical-point handling. Enter x and y separately for each point. They must describe the same Cartesian coordinate system and scale. The first point supplies x₁,y₁ and the second x₂,y₂; combining x from one record with y from another changes the line. Signed and fractional coordinates are allowed within ±10¹². Units are not inferred from the numbers, so document whether the coordinates describe metres, graph units or another compatible basis.

How to use it

  1. 1

    Select the correct input roles for slope calculator and enter the values described below. The demonstration defaults illustrate the method; they are not independently verified personal measurements or live market data.

  2. 2

    Review rise over run and the original source record. Match units, signs and the chosen mode before submitting, rather than relying on a familiar-looking default number.

  3. 3

    Click Calculate result to submit the current fields. Editing an input preserves the prior submitted output until you calculate again; the pending-change message distinguishes that saved output from the new values.

  4. 4

    Check the labeled output against the worked example and independent verification steps. Review interpretation boundaries before using the result in another document, and keep the complete input basis with a copied answer.

ƒ

Formula and methodology

m = (y₂−y₁)/(x₂−x₁). Rise = y₂−y₁; run = x₂−x₁. A zero run with nonzero rise defines a vertical line.

The calculator applies the displayed arithmetic to the values entered on this device. It does not silently load a local tax rate, currency conversion or commercial assumption.

Worked calculation example

The points (2,3) and (6,11) give rise 8 and run 4, so slope is 2. The line angle modulo 180 degrees is about 63.434948823 degrees and the distance is √80, about 8.944271910 units. Reversing the points changes both rise and run signs, preserving the same slope and undirected line angle.

How to interpret your result

When run is zero and rise is nonzero, the line is vertical and ordinary slope is undefined. The calculator reports that condition explicitly instead of substituting zero or infinity. If both differences are zero, the points coincide and do not determine one unique line; the calculation is rejected. These are different cases even though both would encounter a zero denominator in the slope expression.

For different inputs or formulas, use Midpoint Calculator; Right Triangle Calculator; Trigonometric Functions Calculator.

Related questions this calculator covers

  • rise over run calculator
  • how to calculate slope
  • how do i calculate the slope
  • how do you calculate slope

Scenario comparison

ScenarioWhat it shows
Horizontal(0,4) to (3,4) gives slope zero.
Vertical(2,1) to (2,5) gives undefined slope and a 90-degree line angle.
Reversalswapping the two complete points preserves slope and distance.

Common mistakes to avoid

  • Dividing run by rise.
  • Changing point order for only one subtraction.
  • Reading graph-display angle as a physical angle with unequal axes.
How to verify this result

Multiply the displayed slope by run and compare with rise for a nonvertical line. Verify distance with the Pythagorean theorem. Reverse the complete points and confirm that slope, distance and modulo-180 angle remain consistent. Check the horizontal, vertical and coincident cases separately because each represents a different geometry.

Authoritative reference. Method and scope reviewed on 5 October 2026. SolvePilot provides the original worked example and bounded browser implementation. Editorial and arithmetic review by Mohammad Qasim does not certify user measurements, a real contract or an individual professional decision. The reference supplies method, unit or source-record context; it does not approve this implementation or its inputs.

What can affect the result?

Coordinate pairs

Enter x and y separately for each point. They must describe the same Cartesian coordinate system and scale. The first point supplies x₁,y₁ and the second x₂,y₂; combining x from one record with y from another changes the line. Signed and fractional coordinates are allowed within ±10¹². Units are not inferred from the numbers, so document whether the coordinates describe metres, graph units or another compatible basis.

Rise over run

Subtract the first y from the second y for rise, and the first x from the second x for run. Divide in that order. A positive slope rises as x increases, a negative slope falls, and a horizontal line has slope zero. Reversing both points negates both differences and preserves the ratio. Swapping only one coordinate reverses or distorts the problem rather than checking it.

Vertical and identical points

When run is zero and rise is nonzero, the line is vertical and ordinary slope is undefined. The calculator reports that condition explicitly instead of substituting zero or infinity. If both differences are zero, the points coincide and do not determine one unique line; the calculation is rejected. These are different cases even though both would encounter a zero denominator in the slope expression.

Angle and distance

The line angle is expressed modulo 180 degrees, making opposite point order describe the same undirected line. A negative slope can therefore appear with an obtuse angle rather than a negative acute angle. The distance uses the two-dimensional Euclidean norm of rise and run. It is a straight segment length, not a driving distance, surface route or geographical great-circle distance.

Interpretation boundaries

A graph with different physical x and y units produces a slope measured in y units per x unit. A plotted visual angle depends on the display scale; the angle here treats both numerical axes with equal scale. This page does not fit a trend to multiple observations, differentiate a curve or approve a construction gradient. Browser precision and the quality of the original coordinates determine meaningful digits.

Privacy and browser processing

Values entered on this page are processed in the current browser session. SolvePilot does not require an account and does not receive the values entered into the calculator. Refreshing or closing the page clears the working values unless the browser itself restores a previous session. Avoid entering identifying or account information because the calculation needs summary values only.

Accuracy and verification

Accuracy depends first on input quality. Confirm definitions, scales, dates and source information before entering a value. Keep an independent record of any result used for planning because this page does not create an official statement or retain a calculation history.

Limits of this estimate

A graph with different physical x and y units produces a slope measured in y units per x unit. A plotted visual angle depends on the display scale; the angle here treats both numerical axes with equal scale. This page does not fit a trend to multiple observations, differentiate a curve or approve a construction gradient. Browser precision and the quality of the original coordinates determine meaningful digits.

Important: Treat the result as a planning estimate. Confirm official requirements and consequential decisions with the relevant institution, authority or qualified professional.

Sources and review information

This tool uses a disclosed calculation and user-entered values; it does not embed private institutional data or guarantee an outcome.Read our editorial and calculation policy →About the author and reviewer →

Frequently asked questions

How do I calculate slope?+

Subtract the two y coordinates in one point order, subtract the x coordinates in the same order, and divide rise by run when run is nonzero.

Is a vertical slope zero?+

No. A vertical line has zero run and undefined slope; zero slope belongs to a horizontal line with nonzero run.

Why does a negative slope show an obtuse angle?+

The output uses an undirected line angle from zero up to but not including 180 degrees. Equivalent directed angles can differ by 180 degrees.

Can both points be identical?+

They cannot identify a unique line. The tool returns a clear input error rather than guessing an orientation.

Can coordinates use different units?+

The slope can represent y units per x unit, but distance and angle require compatible equally scaled Cartesian coordinates for a physical interpretation.