Skip to content
D DocNectar

Free Slope Calculator

Calculate the slope, distance, midpoint, and line equation between two points, step by step.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

Given any two points on a coordinate plane, the slope tells you how steep the line between them is, and how to describe that line with a full equation.

This calculator finds the slope, the straight-line distance between the points, the midpoint, and the full line equation (y = mx + b) all at once.

How it works

Enter the coordinates of two points, (x₁, y₁) and (x₂, y₂). The calculator finds the slope as the change in y divided by the change in x, then uses that to build the full line equation.

  1. Enter x₁.
  2. Enter y₁.
  3. Enter x₂.
  4. Enter y₂.
  5. Click Calculate to see your results.

Examples

Finding the slope between two points

The points (1, 2) and (4, 8) give a slope of 2, meaning y increases by 2 for every 1 unit increase in x.

Who should use it

  • Algebra and geometry homework involving coordinate points.
  • Finding the equation of a line through two known points.

Industry applications

  • Mathematics education
  • Engineering, surveying, and computer graphics

Advantages

  • Calculates slope, distance, midpoint, and the full line equation in one step.
  • Correctly handles the undefined-slope (vertical line) case.

Common mistakes to avoid

  • Swapping the order of subtraction between the two points inconsistently (mixing up which point is "1" and which is "2" between the numerator and denominator).
  • Forgetting that a slope of zero (horizontal line) is different from an undefined slope (vertical line) — they are opposite cases.

Best practices

  • Keep point 1 and point 2 consistent throughout the calculation — always subtract in the same order for both x and y.

Tips

  • The sign of the slope alone tells you the line's direction: positive slopes rise left to right, negative slopes fall left to right, and zero means perfectly flat.

Frequently asked questions

Yes, with no signup and no limit on how many calculations you run.
A negative slope means the line goes downward from left to right — as x increases, y decreases.
When two points share the same x-coordinate, the line between them is perfectly vertical, and its slope is undefined (since the slope formula would require dividing by zero).
This is slope-intercept form: m is the slope, and b is the y-intercept (where the line crosses the y-axis). Once you know the slope and one point, you can find b and write the full equation.

Get new calculators and guides in your inbox

No spam — just new tools like Slope Calculator and practical guides.

Favorites