Ajax Calculator

Slope Calculator

📐 Slope Calculator

Enter any two points (x₁, y₁), (x₂, y₂). You can also enter slope m, angle, or percent grade to solve the missing coordinate.

Inputs

📍 x₁
📍 y₁
📍 x₂
📍 y₂
Slope m
📐 Angle
🧭 Angle unit i
📈 Percent grade (%)
📏 Distance unit i

Results (auto-updating)

🧮 Line equation (if not vertical)
🎯 y-intercept b
📏 Distance between points
🚫 Vertical line?

Step-by-step algebraic derivation

Enter values to see the derivation…

Reference & formulas

Quantity Formula
Slope (m) m = (y₂ − y₁) / (x₂ − x₁)
Angle θ = arctan(m)
Percent grade % = 100 × m
Distance d = √[(x₂ − x₁)² + (y₂ − y₁)²]