📐

Slope Calculator (Two-Point Formula)

Find slope (m), y-intercept (b), line equation, distance, and angle between two points using m = (y₂ − y₁) / (x₂ − x₁).

MATH

Find the slope (m), y-intercept (b), line equation in y = mx + b form, distance between points, and angle of inclination using the two-point formula.

Vertical lines (where x₂ = x₁) have undefined slope — Δx = 0 makes the ratio undefined. Horizontal lines have slope 0. Positive slope rises left-to-right; negative falls. The angle of inclination is arctan(slope) and ranges from −90° to +90°.

Disclaimer: For 3D vectors or higher dimensions, use a vector calculator. For best-fit slope through multiple points, use linear regression.

Slope Calculator

Find the slope (m), y-intercept (b), line equation, distance, and angle between two points using m = (y₂ − y₁) / (x₂ − x₁).

Point 1 (x₁, y₁)

Point 2 (x₂, y₂)

Slope (m)
2.0000
Δy = y₂ − y₁8
Δx = x₂ − x₁4
y-intercept (b)-1.0000
Line equationy = 2.0000x 1.0000
Distance between points8.9443
Angle of inclination63.43°

Algebra-1 staple. For 3D vectors or higher dimensions, use a vector calculator. For best-fit slope through multiple points, use linear regression.

Frequently Asked Questions

What is the Slope Calculator (Two-Point Formula) for?
Find the slope (m), y-intercept (b), line equation in y = mx + b form, distance between points, and angle of inclination using the two-point formula.
How do I use the Slope Calculator (Two-Point Formula)?
Vertical lines (where x₂ = x₁) have undefined slope — Δx = 0 makes the ratio undefined. Horizontal lines have slope 0. Positive slope rises left-to-right; negative falls. The angle of inclination is arctan(slope) and ranges from −90° to +90°.
How accurate are my slope (two-point formula) results?
For 3D vectors or higher dimensions, use a vector calculator. For best-fit slope through multiple points, use linear regression.
Is the Slope Calculator (Two-Point Formula) free to use?
Yes - every calculator on WhichCalc is completely free with no signup, no usage limits, and no tracking on the calculation itself. Results display instantly in your browser and your inputs are never sent to a server. Bookmark the page if you use this calculator regularly.