Skip to main content

Slope Calculator

Calculate the slope and equation of a line from two points. Also computes the y-intercept and distance between points.

Enter Coordinates

Point 1
Point 2

Results

Line Equation
y = 0.75x
Slope
0.75
= 3 / 4
Y-Intercept
0
Distance Between Points
5
Midpoint
(2, 1.5)

Graph

Point 1
Point 2
Midpoint

Formulas

Slope Formula
m = (y2 - y1) / (x2 - x1)
Intercept Formula
b = y1 - m * x1
Distance Formula
d = sqrt((x2-x1)^2 + (y2-y1)^2)
Midpoint Formula
((x1+x2)/2, (y1+y2)/2)
Share this tool
📖

How to Use

Step 1

Enter Coordinates

Enter Coordinates

Enter coordinates (x1,y1) and (x2,y2)

Step 2

Calculate

Calculate

Slope and equation are calculated

Step 3

View Result

View Result

Check slope, intercept, and equation

Features

Slope & Equation

Show y=mx+b equation from slope (m) and y-intercept (b)

Angle Display

Also show slope angle in degrees

Graph Display

Visually display two points and line on a graph

FAQ

A value representing line steepness: change in y ÷ change in x.