Calculate the slope, y-intercept, angle, and equation of a line through two points.
Slope Calculator Results
Slope (m)
3
Y-Intercept (b)
-1
Line Equation
y = 3x -1
Angle with x-axis
71.5651°
Rise (Δy)
6
Run (Δx)
2
Distance Between Points
6.324555
Midpoint
(2, 5)
Perpendicular Slope
-0.333333
How It Works & Formula
Mathematical Formula
m = (y₂ − y₁) / (x₂ − x₁) | y = mx + b | Angle = arctan(m)
The slope (m) is the rise over run between two points. The y-intercept (b) is where the line crosses the y-axis.
📐 Step-by-Step Calculation Breakdown
Substituted values from your current calculation inputs:
Point 1: x₁: 1
Point 1: y₁: 2
Point 2: x₂: 3
Point 2: y₂: 8
How to Use This Calculator
Enter the coordinates of two points (x₁, y₁) and (x₂, y₂).
Click Calculate.
Example Calculation
Points (1, 2) and (3, 8): slope = (8-2)/(3-1) = 3. Line: y = 3x − 1.
Understanding the Results
Positive slope = rises left to right. Negative slope = falls left to right. Zero slope = horizontal. Undefined slope = vertical.
Slope Calculator — Line Gradient (m), Angle of Inclination & Distance
The Slope Calculator calculates the steepness, direction, angle, and distance of a straight line connecting two coordinate points (x₁, y₁) and (x₂, y₂) in the Cartesian plane.
• Positive Slope (m > 0): Line rises from left to right. • Negative Slope (m < 0): Line falls from left to right. • Zero Slope (m = 0): Horizontal line parallel to the x-axis. • Undefined Slope (Δx = 0): Vertical line perpendicular to the x-axis.
Slope = rise / run. For every 1 unit increase in x, y changes by the slope value. A slope of 2 means y increases by 2 for each unit increase in x.
📐Algebra, Powers & Logarithms Cluster
Related Calculators & Recommended Tools
Quadratic equation roots, nth roots, exponents, logarithms, scientific notation, and matrix calculations. Use these interconnected tools to verify results and explore alternative calculation scenarios: