mMATH
Slope Calculator
Calculate slope from two points and identify horizontal or vertical lines.
Enter your values
Your inputs stay in this browser.ⓘ
Privacy-friendly: your inputs are processed locally in your browser.
Formula
Slope = (y₂ − y₁) ÷ (x₂ − x₁).
Slope = (y₂ − y₁) ÷ (x₂ − x₁).
How it works
1
Enter the first point.
2
Enter the second point.
3
Review the slope and line type.
Important notes
A vertical line has an undefined slope because x₂ − x₁ is zero.