Slope Calculator

Slope, equation, distance and midpoint between two points.

Result

Slope (m)2
Equationy = 2x + 0
Distance8.944272
Midpoint(2, 4)

How it's calculated

  1. 1

    Rise = y₂ − y₁ = 8 − 0 = 8

  2. 2

    Run = x₂ − x₁ = 4 − 0 = 4

  3. 3

    Slope m = rise ÷ run = 8 ÷ 4 = 2

  4. 4

    y-intercept c = y₁ − m·x₁ = 0 − 2 × 0 = 0

  5. 5

    Equation: y = 2x + 0

  6. 6

    Distance = √(run² + rise²) = √(4² + 8²) = 8.944272

  7. 7

    Angle = arctan(m) = 63.43° · Grade = 200%

Slope Calculator — FAQs

Slope formula?

m = (y₂ − y₁) / (x₂ − x₁). From (0,0) to (4,8): m = 8/4 = 2.

Need a Custom Tool Built?

We build calculators, estimators and internal tools for businesses in the UK and North America.

Get a Quote

Embed this Slope Calculator on your site

Free to use — paste this snippet into any webpage. It auto-resizes and includes a small attribution link. Add ?theme=dark to the iframe URL for dark mode.

Need help? See the embed guide for WordPress, Webflow, Squarespace & more.