Geometry studio

Slope Calculator

World-class tool inspired by calculator.net. Solve slope from two points, or use a single point and any combination of distance, slope, and angle. Includes diagram, instant summaries, and carefully written reference notes.

Mode 01

If two points are known

Triangle diagram

ΔxΔyd(x₁, y₁)(x₂, y₂)θ

Blue edge represents run, green edge is rise, and red is the hypotenuse (distance).

The diagram auto-scales to keep the triangle visible regardless of resulting slope.

Mode 02

If one point & slope/angle are known

Provide slope or angle (or both). Distance is optional—if omitted the calculator assumes unit length along the line.

Reference notes

Definition and formula

Slope (m) describes how steep a line is. It equals the ratio of vertical change (rise) to horizontal change (run).

Given two points (x₁, y₁) and (x₂, y₂) the formula is m = (y₂ − y₁) / (x₂ − x₁). A vertical line has undefined slope because run = 0.

Rise, run, distance, angle

Rise² + run² = distance² (Pythagorean theorem). The angle of incline θ relates to slope via tan(θ) = m.

Grade (%) often used in engineering equals slope × 100. A 10% grade means the line rises 10 units for every 100 horizontal units.

Worked example

Points (3,4) and (8,9): rise = 5, run = 5 → slope = 1, distance = √(5² + 5²) ≈ 7.07, θ = tan⁻¹(1) = 45°.

Given slope = 3/4 and distance = 5 from point (1,1): run = 4, rise = 3 so the second point is (5,4).