CALCULATORS / MATHE-E-A-T
🧮

Slope Calculator Online

Calculate line slope m, inclination angle, grade percentage, and equation y = mx + b.

⚡Live Result
m = 2(y = 2x - 1)
2y = 2x - 1-1
1

Input Parameters

Quick Presets
Or customize parameters below
0100
0100
0100
0100
2

Live Result

m = 2
(y = 2x - 1)
Comparative Metric Matrix
7 Metrics
Slope (m)
2
Equation (y = mx + b)
y = 2x - 1
Angle of Inclination
63.4349°
Percentage Grade
200%
Rise
8 / 4
Y-Intercept (b)
(0, -1)
Segment Distance (d)
8.9443
3

Details

10 metrics
Slope (Gradient m)
2
Line Equation
y = 2x - 1
Y Intercept
-1
Rise (Δy)
8
Run (Δx)
4
Incline Angle (Degrees)
63.4349
Incline Angle (Radians)
1.1071
Grade Percentage (%)
200%
Distance
8.9443
Line Characteristic
Increasing
Positive Slope
4

Steps

9 Steps
1

Coordinates: Point 1 = (2, 3), Point 2 = (6, 11)

2

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

3

Calculate Rise (Δy): 11 - (3) = 8

4

Calculate Run (Δx): 6 - (2) = 4

5

Compute Slope: m = 8 / 4 = 2

6

Y-Intercept (b = y₁ - m·x₁): 3 - (2 × 2) = -1

7

Slope-Intercept Equation: y = 2x - 1

8

Angle of Inclination: θ = arctan(2) = 63.4349°

9

Distance: d = √(Δx² + Δy²) = √(80) = 8.9443

⚡
Live Result
m = 2(y = 2x - 1)

Quick Answer & Understanding Your Result

Source: Wolfram MathWorld - Slope

A Slope Calculator determines the steepness, incline, and direction of a straight line connecting two points: m = (y₂ - y₁) / (x₂ - x₁) = Rise / Run. If the change in x is zero (Δx = 0), the line is vertical and the slope is mathematically Undefined.

Slope Types & Geometric Meanings

  • Positive Slope (m > 0): The line rises upwards from left to right.
  • Negative Slope (m < 0): The line falls downwards from left to right.
  • Zero Slope (m = 0): A perfectly horizontal line parallel to the x-axis (y = c).
  • Undefined Slope (Vertical): A vertical line parallel to the y-axis with angle θ = 90° (x = c).

Companion Line Representations

  • Slope-Intercept Form: y = mx + b, where b is the y-intercept.
  • Angle of Inclination: θ = arctan(m) measured in degrees or radians.
  • Grade Percentage: Grade % = m × 100% used in civil engineering and road grading.

Enter the coordinates of two points above to compute slope, angle, line equations, and distance instantly.

Formula & Calculation Logic

Mathematical Formula
Mathematical Formula
m
= (y₂ - y₁) / (x₂ - x₁)
y
= mx + b
θ
= arctan(m)
Grade %
= m × 100%

The slope is the ratio of vertical change (rise) to horizontal change (run). The y-intercept b is calculated as y₁ - m × x₁.

Step-by-Step Guide

1

Enter Coordinates

Input coordinates for Point 1 (x₁, y₁) and Point 2 (x₂, y₂).

2

Calculate Rise and Run

Find vertical difference Δy = y₂ - y₁ and horizontal difference Δx = x₂ - x₁.

3

Compute Slope

Divide rise by run: m = Δy / Δx (checking for vertical zero division).

4

Review Equations

View slope-intercept form y = mx + b, angle θ, and road grade percentage.

Worked Examples Table

ExampleInput ValuesCalculated ResultExplanation
Points (2, 3) and (6, 11)
X1: 2, Y1: 3, X2: 6, Y2: 11, Precision: 4
m = 2, y = 2x - 1
Rise = 11 - 3 = 8, Run = 6 - 2 = 4. Slope m = 8 / 4 = 2.
Horizontal Line: (1, 5) and (8, 5)
X1: 1, Y1: 5, X2: 8, Y2: 5, Precision: 4
m = 0, y = 5
Rise = 5 - 5 = 0. Slope m = 0 / 7 = 0.
Vertical Line: (4, -1) and (4, 9)
X1: 4, Y1: -1, X2: 4, Y2: 9, Precision: 4
m = Undefined, x = 4
Run = 4 - 4 = 0. Division by zero is undefined.

Frequently Asked Questions

Evidence-Based Methodology & Authoritative References

References & Methodology

Wolfram MathWorld - Slope

View Reference

NIST Digital Library of Mathematical Functions

View Reference
Calculation Standard & Formulation

Standard: ISO / W3C / IETF Authoritative Domain Standard

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

Last Reviewed: August 21, 2026

Authoritative Sources & Peer Review

Primary Source: Wolfram MathWorld - Slope

Reference Document: NIST Digital Library of Mathematical Functions

Computation Privacy: 100% client-side 0ms computation, zero data retention

Application Scope & Disclaimer

Calculated results are modeled based on standard scientific and mathematical formulas. Please verify with domain-specific technical documentation for specialized applications.

TOPIC CLUSTER & KNOWLEDGE MESH

Explore Related Tools, Methodologies & Guides

Interconnected domain knowledge, verified computational engines, and peer-reviewed research.

Explore All Calculators / Math Tools

Calculated results are modeled based on standard scientific and mathematical formulas. Please verify with domain-specific technical documentation for specialized applications.

Explore All Calculators / Math Tools