Easy CalculatorsOnline
A little less guesswork.

Geometry · EVERYDAY CLARITY

Slope from two points calculator

Calculate rise over run and recognize vertical lines.

Units & number format

Number formatting changes the display; the interface and guides are in English. Dates use calendar controls; numeric lists use decimal points and comma or space separators.

01 · CALCULATE

Work out your numbers

Your inputs stay in this browser.

Example result · using the values shown

Line slope
2
Rise Δy8
Run Δx4
See visual ↓

Slope is Δy/Δx. A vertical line has undefined slope.

02 · SEE THE RESULT

Your numbers, pictured

Example visualization

Change in vertical coordinate over horizontal change

8÷4
Calculated result2

Positive slope rises left to right; negative slope falls.

03 · UNDERSTAND THE METHOD

How the slope from two points calculator works

Slope measures how much a planar line rises for each unit of horizontal movement. Two distinct points determine a line, but a vertical line cannot be represented by a finite rise-over-run ratio. This calculator takes the measurements named in the form and reports the derived geometric quantity. Before entering a value, distinguish linear dimensions from squared areas and cubic volumes. Record all lengths in one consistent unit and identify which radius, height, axis, or coordinate the field actually describes.

The formula and its variables

m = (y₂ − y₁)/(x₂ − x₁)
x1
First x coordinate. Use the unit or angle convention stated in the input label.
y1
First y coordinate. Use the unit or angle convention stated in the input label.
x2
Second x coordinate. Use the unit or angle convention stated in the input label.
y2
Second y coordinate. Use the unit or angle convention stated in the input label.

The calculation, step by step

  1. Identify the geometric configuration in the field labels and confirm that your measurements describe the same object or coordinate system. Check the shape restrictions stated below the form before calculating.
  2. Subtract the coordinates in the same point order to find rise and run. Divide rise by run when the run is nonzero, otherwise report a vertical line.
  3. Keep intermediate products and trigonometric values unrounded. Read the main output with its units, then use the accompanying dimensions or comparison visual to check the relationship with your original inputs.

A worked example

For the example values first x coordinate = 1; first y coordinate = 2; second x coordinate = 5; second y coordinate = 10, the calculated line slope is 2. Substitute these values into the displayed expression in the same order. This example provides a reproducible check of the unit convention; changing a radius, side, angle, or coordinate should lead to a new result using that same method.

Example inputs and calculated output
First x coordinate1
First y coordinate2
Second x coordinate5
Second y coordinate10
Line slope2

How to read the result and visual

A positive slope rises from left to right; a negative slope falls. Zero means horizontal, while a vertical line has undefined slope rather than a slope of zero. The visual represents the entered example or your most recent valid calculation. Numerical comparisons within it use the stated units; a schematic outline helps identify dimensions but should not be treated as a measured drawing.

Assumptions, rounding, and limitations

Coordinate axes must use consistent scales when interpreting a geometric angle. Identical points are rejected because they cannot uniquely determine a line. Browser arithmetic uses finite floating-point precision, and displayed decimals are rounded for readability. Extra decimal places do not increase the accuracy of the original measurements. For physical projects, apply tolerances and material requirements separately rather than treating an ideal geometric result as a finished design.

Frequently asked questions

What happens to slope when both x coordinates are equal?

Two distinct points with equal x coordinates determine a vertical line, whose finite slope is undefined. Identical points cannot determine a unique line.

How do coordinate scales affect the slope angle?

The geometric angle assumes consistent axis scales. Different physical units or display scaling can change how the same numerical slope appears.

Reference sources

How we check calculations and what verification covers