Slope calculator

Enter two points (x₁, y₁) and (x₂, y₂).

Your answer

Slope2
Equationy = 2x
Angle from horizontal63.435 °
Distance6.708204
Midpoint(2.5, 5)

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. Slope = rise ÷ run = (y₂ − y₁) ÷ (x₂ − x₁) = (8 − 2) ÷ (4 − 1).
  2. Intercept b = y₁ − m × x₁.

Method and assumptions

Slope is the change in y per unit change in x. The angle is the arctangent of the slope. Grade as a percentage is slope × 100.

Questions

What is the slope between (1, 2) and (4, 8)?

2. The line is y = 2x.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators