Skip to main content
OmneTools
๐Ÿงฎ

Slope Calculator

WhatsApp

Enter the two points Pโ‚ (xโ‚, yโ‚) and Pโ‚‚ (xโ‚‚, yโ‚‚). The calculator finds the slope with m = (yโ‚‚ โˆ’ yโ‚) / (xโ‚‚ โˆ’ xโ‚), plus the angle, grade %, distance, midpoint, the equation of the line and a graph. Accepts decimals, negatives and fractions (3/4, 1 1/2).

More in Calculators

Tools you may need

Trending now
View all

How to use: enter the x and y coordinates of two points on the line, then press Calculate to get the slope (m = (y2 โˆ’ y1) / (x2 โˆ’ x1)), the line's angle in degrees and a step-by-step breakdown. Example: points (1, 3) and (4, 12) give m = (12 โˆ’ 3) / (4 โˆ’ 1) = 3, an angle of about 71.93 degrees. Key features: fraction-exact results with decimal display, angle conversion, horizontal and vertical line handling, and a clear worked solution. Frequently asked questions: What is slope? It measures how steep a line is โ€” how much y changes for each unit change in x. What does a vertical line mean? Its x-values are equal, so division by zero makes the slope undefined, and the tool reports that instead of a number. Limitations: coordinates must be real numbers, results are as exact as your input precision, and the slope describes a straight line only โ€” curves need calculus.

What does Slope Calculator do?

Calculate the slope of a line from two coordinate points and review the gradient, direction and angle where the tool provides them.

How it works / Formula

Slope m = (yโ‚‚ โˆ’ yโ‚) รท (xโ‚‚ โˆ’ xโ‚). If the x-coordinates are equal, the line is vertical and its slope is undefined.

Worked example

Between (2, 3) and (6, 11), slope = (11 โˆ’ 3) รท (6 โˆ’ 2) = 2.

Practical tips and limitations

Tips for better results

Keep the coordinate order consistent and use enough decimal places for measured points.

Important limitations

A vertical line has undefined slope; rounded coordinates can slightly change the calculated gradient.

Method and reference: Coordinate geometry: slope between two points. Review the output against the source data and your intended use.

How to use the Slope Calculator

1

Prepare the input

Enter the x and y coordinates of the first point.

2

Run the tool

Enter the coordinates of the second point.

3

Review the result

Calculate and review the slope and any angle or equation details shown.

Key features

  • Two-point slope calculation
  • Gradient and direction
  • Angle or equation details where available

Frequently asked questions

What is the slope formula?

m = (yโ‚‚ โˆ’ yโ‚) รท (xโ‚‚ โˆ’ xโ‚).

What happens when both x-values are equal?

The line is vertical and its slope is undefined because the denominator is zero.