Linear Equation Explorer (y = mx + b)
Change slope and intercept or drag two points to see the line, its equation and intercepts.
Slope-intercept form–
Point-slope form–
Standard form–
Slope m–
y-intercept–
x-intercept–
Angle with x-axis–
What you can learn
- Slope m is rise over run, and b is where the line crosses the y-axis.
- Two points are enough to define a line: m = (y₂ − y₁) / (x₂ − x₁).
- Parallel lines share a slope, and perpendicular slopes multiply to −1.
Frequently asked questions
How do I find the slope from two points?
Subtract the y-values and divide by the difference of the x-values: m = (y₂ − y₁) / (x₂ − x₁).
What does a negative slope mean?
The line goes down as you move right, so y decreases while x increases.