Slope Calculator

Compute slope (rise over run), angle of inclination, distance, midpoint, and linear equation from two coordinate pairs.

Point 1

Point 2

Slope (m)

2

Distance

6.708204

Midpoint

(2.5, 5)

Angle (degrees)

63.434949°

y = 2x + 0

How to Use the Slope Calculator

  1. Enter the coordinates of Point 1 (x₁, y₁).
  2. Enter the coordinates of Point 2 (x₂, y₂).
  3. View the slope m, angle in degrees, Euclidean distance, midpoint, and the slope-intercept equation y = mx + b.

Formulas & Principles

Slope: m = (y₂ - y₁) / (x₂ - x₁) = Δy / Δx

Slope-Intercept Form: y = mx + b, where b = y₁ - m(x₁)

Angle of Inclination: θ = arctan(m) × (180 / π)

Distance: d = √((x₂ - x₁)² + (y₂ - y₁)²)

Frequently Asked Questions

What is the formula for slope?

Slope (m) = (y₂ - y₁) / (x₂ - x₁) = Δy / Δx (Rise over Run).

What does an undefined slope mean?

When x₁ = x₂, the denominator is zero (Δx = 0), representing a perfectly vertical line with undefined (infinite) slope.

How do you find the angle of inclination from slope?

Angle θ = arctan(m) × (180 / π), converting the arctangent from radians to degrees.

Why this calculator matters

This calculator helps solve mathematical problems faster and with fewer manual arithmetic mistakes. It is useful for studying, research verification, technical engineering checks, and everyday problem-solving.

When to use it

Use it when you need a fast answer, a cross-check for manual calculations, or a clear step-by-step verification of your result.

Quick tips

Double-check your inputs, keep units consistent across all fields, and verify boundary conditions.