Slope-Intercept Form Calculator
Find a line's slope, y-intercept, and equation y = mx + b from any two points.
About slope-intercept form
Slope-intercept form examples
| Two points | Equation | Explanation |
|---|---|---|
| (1, 3) and (4, 9) | y = 2x + 1 | The rise is 6 and the run is 3, so the slope is 2. |
| (0, 5) and (2, 1) | y = -2x + 5 | The line falls two units for every one unit moved right. |
| (-2, 4) and (3, 4) | y = 4 | Equal y-coordinates create a horizontal line with zero slope. |
How to use the calculator
- Enter the x- and y-coordinates of the first point.
- Enter the coordinates of a different point on the same line.
- Select Calculate equation to find the slope and y-intercept.
- Substitute either original point into the displayed equation to check the result.
Slope-intercept form FAQ
What is slope-intercept form?
Slope-intercept form is y = mx + b, where m is slope and b is the y-intercept. It reveals a line's rate of change and starting value at a glance.
How is slope calculated from two points?
Subtract the first y-coordinate from the second, then divide by the difference between the x-coordinates. This rise-over-run ratio is constant everywhere on a straight line.
Why can I not enter two points with the same x-coordinate?
Those points define a vertical line, so the run is zero and its slope is undefined. A vertical line uses the form x = constant instead of slope-intercept form.
Can the slope or intercept be negative?
Yes, both values may be negative, positive, or zero. A negative slope means the line falls from left to right, while a negative intercept lies below the origin.
How can I check the equation?
Insert each known x-coordinate into the equation and calculate y. If both calculated values equal the original y-coordinates, the equation is correct.