esc
Calculators

Slope calculator:
from two points, with the equation

Type the coordinates of two points. You get the slope (rise over run), the equation of the line in three forms, its intercepts, its angle and the distance between the points.

Slope through (-1, 2) and (3, 8)3/2 = 1.5rising from left to right
Slope-intercept form
y = (3/2)x + 7/2
Decimal form
y = 1.5x + 3.5
Point-slope form
y − 2 = (3/2)(x + 1)
Standard form
3x − 2y = -7
y-intercept
(0, 7/2)
x-intercept
(-7/3, 0)
Angle with the x-axis
56.3099°
Grade
150%
Perpendicular slope
-2/3
Rise ÷ run
(8 − 2) ÷ (3 − (-1)) = 6 ÷ 4
Distance between points
7.211102551
Midpoint
(1, 5)

How to use Slope calculator

  1. 01Type the first pointx₁ and y₁.
  2. 02Type the second pointx₂ and y₂.
  3. 03Read the slopeAnd the line’s equation.
File character arranging marked pages

Rise over run.

Slope m = (y₂ − y₁) ÷ (x₂ − x₁): how far the line goes up for each step to the right. The line through (−1, 2) and (3, 8) rises 6 over a run of 4, so m = 3/2. The y-intercept is b = y₁ − m × x₁, giving y = (3/2)x + 7/2, or 3x − 2y = −7 in standard form. The angle is arctan(m). Equal x values make a vertical line with no defined slope.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

What is the slope between (1, 2) and (3, 6)?

(6 − 2) ÷ (3 − 1) = 4 ÷ 2 = 2, and the line is y = 2x.

What does a negative slope mean?

The line goes down from left to right. A slope of −1/2 drops 1 unit for every 2 units to the right.

How do I turn a slope into an angle or a grade?

The angle is arctan(slope): a slope of 1 is 45°. The grade is slope × 100%, so a slope of 0.08 is an 8% grade, about 4.57°.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.