Free 100% In-Browser Tool

Slope Calculator

Find the slope (m = Δy / Δx), angle, distance, and equation of a line passing through two coordinates.

Initializing tool...

Privacy First: 100% Client-Side Processing

Processed in your browser. Files are never uploaded.

How to Use the Slope Calculator

  1. 1Enter the coordinates for Point 1 (x₁, y₁).
  2. 2Enter the coordinates for Point 2 (x₂, y₂).
  3. 3Review the calculated slope (m), delta y (rise), and delta x (run).
  4. 4Copy the line equation (y = mx + b) and distance.

Formula & How It Works

Slope Equation

m = (y₂ - y₁) / (x₂ - x₁)

Slope represents the steepness of a line, calculated as the change in the vertical coordinate divided by the change in the horizontal coordinate.

Worked Examples

Standard Line Slope

Input: (2, 3) and (6, 11)

Explanation: m = (11 - 3) / (6 - 2) = 8 / 4 = 2. y-intercept b = 3 - 2(2) = -1.

Result: Slope m = 2, Equation: y = 2x - 1

Horizontal Line

Input: (1, 5) and (4, 5)

Explanation: Rise is 5 - 5 = 0, so slope is zero (horizontal line).

Result: Slope m = 0, Equation: y = 5

Frequently Asked Questions

What happens if x₁ equals x₂?▼

When x₁ = x₂, the line is vertical and the denominator is zero, resulting in an undefined slope.

What does a negative slope mean?▼

A negative slope indicates that the line falls from left to right.

Does this calculate the distance between the two points?▼

Yes, the Euclidean distance d = √[(x₂ - x₁)² + (y₂ - y₁)²] is automatically computed.

Can I enter decimal coordinates?▼

Yes, coordinates can be positive or negative integers or decimal numbers.

Last reviewed & updated: 2026-03-28
Free & Open Access
Related Utilities

Explore complementary calculators and converters with instant client-side execution

More in Math

Explore Other Tool Categories

Browse our full collection of 50 free web utilities

View All 8 Categories