Slope Calculator — Free Online Slope Tool
Calculate the slope, y-intercept, line equation, angle of inclination, and distance between two coordinate points instantly.
Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
Results
Slope (m)
2.0000Y-Intercept (b)
0.0000
Angle of Inclination
63.43°
Line Equation
y = 2x + 0Distance Between Points
8.9443 units
Formula
m = (y₂ − y₁) / (x₂ − x₁) = (10 − 2) / (5 − 1) = 2.0000Slope Reference Table
| Slope (m) | Angle (°) | Direction | Grade (%) | Common Example |
|---|---|---|---|---|
| 0 | 0° | Horizontal | 0% | Flat floor |
| 0.0833 | 4.76° | Gentle rise | 8.33% | ADA max ramp slope (1:12) |
| 0.25 | 14.04° | Moderate rise | 25% | 3:12 roof pitch |
| 0.5 | 26.57° | Moderate rise | 50% | 6:12 roof pitch |
| 1 | 45° | Steep rise | 100% | 12:12 roof pitch |
| 2 | 63.43° | Very steep rise | 200% | Steep stairway |
| -0.5 | -26.57° | Moderate descent | -50% | Downhill road |
| -1 | -45° | Steep descent | -100% | Ski slope |
| Undefined | 90° | Vertical | N/A | Wall, cliff face |
Related Calculators
Distance Calculator
Calculate the distance between two points in 2D or 3D coordinate space.
Pythagorean Theorem Calculator
Solve for any side of a right triangle using a² + b² = c².
Triangle Calculator
Solve any triangle from sides and angles with full results.
Area Calculator
Calculate the area of common 2D shapes with step-by-step solutions.
Percentage Calculator
Calculate percentages, percentage change, and more with five operation modes.
Standard Deviation Calculator
Calculate statistical measures including mean, variance, and standard deviation.
About this calculator
Slope Calculator Formulas
Slope Formula
m = (y₂ - y₁) / (x₂ - x₁) Slope-Intercept Form
y = mx + b Y-Intercept
b = y₁ - m × x₁ Angle of Inclination
θ = arctan(m) Distance Between Points
d = √((x₂ - x₁)² + (y₂ - y₁)²) Variables Explained
- m (slope): The rate of change of y with respect to x. Positive values indicate an upward-sloping line, negative values indicate a downward slope, zero means horizontal, and undefined means vertical.
- b (y-intercept): The y-coordinate where the line crosses the y-axis, occurring at the point (0, b). This value tells you the starting height of the line when x = 0.
- (x₁, y₁) and (x₂, y₂): Two distinct points on the line. The order does not matter since reversing the points produces the same slope value due to both numerator and denominator changing sign simultaneously.
- θ (angle of inclination): The angle in degrees between the positive x-axis and the line, measured counterclockwise. Ranges from -90 to 90 degrees.
- d (distance): The straight-line distance between the two points, derived from the Pythagorean theorem.
Step-by-Step Example
Find the slope and equation of the line through (2, 3) and (8, 15):
- Calculate the slope: m = (15 - 3) / (8 - 2) = 12 / 6 = 2
- Find the y-intercept: b = 3 - 2 × 2 = 3 - 4 = -1
- Write the equation: y = 2x - 1
- Find the angle: θ = arctan(2) ≈ 63.43°
- Calculate distance: d = √(6² + 12²) = √(180) ≈ 13.42 units
The line rises 2 units for every 1 unit to the right, crosses the y-axis at -1, and makes a 63.43-degree angle with the horizontal. The two points are approximately 13.42 units apart.
Sources
- Purplemath — The Slope of a Straight Line: purplemath.com
- Khan Academy — Analytic Geometry: khanacademy.org
- Math is Fun — Distance Between Two Points: mathsisfun.com
Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.
Last updated: November 3, 2026