math
Slope Calculator
Find the slope, y-intercept, and equation of the line through two points.
Slope (m)
2
Line equation: y = 2x + 0
How it works
- 1Enter the coordinates of two points.
- 2The slope is the rise over the run: (y₂ − y₁) ÷ (x₂ − x₁).
- 3Read the slope, y-intercept, and the line equation y = mx + b.
Use cases
- Find the slope of a line for geometry or graphing.
- Derive the equation of a line from two points.
- Check whether a line is steep, flat, or vertical.
Frequently asked questions
How do you find the slope between two points?
Divide the change in y by the change in x: m = (y₂ − y₁) ÷ (x₂ − x₁).
What is the y-intercept?
Where the line crosses the y-axis, found from b = y − mx. The tool shows the full equation y = mx + b.
Why is the slope undefined?
When both points share the same x-value the line is vertical, so the run is zero and the slope is undefined.
Related tools
See all →Rectangle Calculator
Calculate the area and perimeter of a rectangle from its width and height, with a labeled diagram.
Circle Calculator
Calculate the area and circumference of a circle from its radius, with a labeled diagram.
Triangle Calculator
Calculate the area (Heron’s formula) and perimeter of a triangle from its three sides.
Trapezoid Calculator
Calculate the area and perimeter of a trapezoid from its two parallel sides, height, and legs.