Guide

THE TOOLBOX / GEOMETRY & ALGEBRA

Slope Calculator
with live graph, y = mx + b, distance & midpoint.

Find the exact slope (m), slope-intercept equation (y = mx + b), distance, midpoint, inclination angle, and percent grade from any two coordinates—complete with a live rise-over-run graph and step-by-step algebra.

Coordinate Geometry & Line Equation Studio
Examples:
Slope (m)
1.5
Exact fraction: 3/2
Line Equation
y = 1.5x + 0.5
Positive (Rising left → right)
Distance (d)
7.2111
√(52) · Δx = 4, Δy = 6
Midpoint (M)
(3, 5)
Angle: 56.31° · Grade: 150%
Point-Slope Form: y − 2 = 1.5(x − 1)
Standard Form: 6x − 4y = -2
Intercepts: y-intercept = (0, 0.5) · x-intercept = (-0.333, 0)
Step-by-Step Calculation
1. Rise & Run: Δy = 8 − (2) = 6, Δx = 5 − (1) = 4
2. Slope: m = Δy / Δx = 6 / 4 = 1.5
3. Distance: d = √((4)² + (6)²) = 7.2111
4. Midpoint: M = ((1+5)/2, (2+8)/2) = (3, 5)
xyScale: ±10 · P1(1,2) → P2(5,8)
--- Run (Δx = 4)--- Rise (Δy = 6)● Midpoint

ALGEBRA & GEOMETRY FORMULAS

Slope types, line equations, and worked formulas

1. Slope Formula (Rise Over Run)

m = (y₂ − y₁) / (x₂ − x₁). For example, points (1, 2) and (5, 8) give Δy = 6 and Δx = 4, simplifying to m = 3/2 = 1.5.

2. Slope-Intercept & Point-Slope Forms

Use y = mx + b when plotting intercepts, or y − y₁ = m(x − x₁) when working directly from a known point and rate of change.

3. Distance & Midpoint

Distance is d = √(Δx² + Δy²) (the hypotenuse of the rise/run triangle), and midpoint is ((x₁ + x₂)/2, (y₁ + y₂)/2).

4. Road Grade & Ramp Slope (%)

Civil engineering and construction express slope as grade = m × 100%. A standard 1:12 ADA ramp equals 8.33% grade (4.76°).

Related Math & Geometry Calculators

Solving more geometry problems? Open our Pythagorean Theorem Calculator, 3D Volume & Surface Area Calculator, or Ratio & Proportion Calculator.

Frequently Asked Questions

What is the slope formula between two points?

The slope m between two points (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁) / (x₂ − x₁), often remembered as 'rise over run'. Our slope calculator displays both the exact reduced fraction and decimal value.

What is the difference between zero slope and undefined slope?

A horizontal line (where y₁ = y₂ and Δy = 0) has a slope of 0 (equation y = c). A vertical line (where x₁ = x₂ and Δx = 0) has an undefined slope because dividing by zero is undefined (equation x = c).

How do I convert slope into percent grade or angle in degrees?

Percent grade equals slope × 100% (for example, an ADA wheelchair ramp with 1 unit rise over 12 units run has slope 1/12 ≈ 0.0833, or 8.33% grade). The angle of inclination in degrees is arctan(m) × (180 / π).

How do I find the y-intercept (b) for y = mx + b?

Once you calculate the slope m, substitute either point (x₁, y₁) into b = y₁ − m·x₁. The calculator outputs Slope-Intercept Form (y = mx + b), Point-Slope Form, and Standard Form (Ax + By = C) automatically.

How are distance and midpoint calculated from the same two points?

Distance uses the Pythagorean theorem: d = √((x₂ − x₁)² + (y₂ − y₁)²). Midpoint averages each coordinate: M = ((x₁ + x₂)/2, (y₁ + y₂)/2).