Skip to content · 跳到主要内容

Slope Calculator

Find slope, distance, angle and line equation from two points or a point and direction

Slope
--
--
Distance
--
Angle of incline
--
Y-intercept
--
Line equation

Slope from two points or a point and direction

Enter two points to calculate slope, straight-line distance, angle of incline, intercept and line equation. The second mode starts from one point and uses a distance with either a slope or an angle to find another point.

m = (y₂ − y₁) ÷ (x₂ − x₁)
d = √((x₂ − x₁)² + (y₂ − y₁)²)
θ = arctan(m)

Frequently Asked Questions

What is the slope of a vertical line?

It is undefined because the horizontal change is zero. The calculator identifies the line as vertical and shows its equation as x = a constant.

How is distance calculated?

The straight-line distance is the square root of the sum of the squared horizontal and vertical changes.

Can I enter an angle instead of a slope?

Yes. In the one-point mode, choose angle input and enter an angle from −90° to 90°.

Last reviewed: October 5, 2026 · How we calculate · Sources: Published formula reference; verify domain-specific assumptions before making a decision