Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

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.0000

Y-Intercept (b)

0.0000

Angle of Inclination

63.43°

Line Equation

y = 2x + 0

Distance Between Points

8.9443 units

Formula

m = (y₂ − y₁) / (x₂ − x₁) = (10 − 2) / (5 − 1) = 2.0000

Slope 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

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):

  1. Calculate the slope: m = (15 - 3) / (8 - 2) = 12 / 6 = 2
  2. Find the y-intercept: b = 3 - 2 × 2 = 3 - 4 = -1
  3. Write the equation: y = 2x - 1
  4. Find the angle: θ = arctan(2) ≈ 63.43°
  5. 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

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026