How to Calculate Slope Intercept Form (y = mx + b)
Quick answer: slope m = (y2 - y1) ÷ (x2 - x1), then b = y1 - m × x1. Points (0, 1) and (2, 5) give m = 2, b = 1, so y = 2x + 1.
Advertisement
Steps to calculate slope intercept
- Pick two points on the line.
- Subtract the y values, subtract the x values, divide to get m.
- Put one point into y = mx + b and solve for b.
- Write the equation y = mx + b.
Roman Urdu: Pehle slope m nikalein, phir ek point se b dhoondein.
Calculate Slope Intercept table
Quick reference values you can check your own numbers against.
| Two points | Slope m | Intercept b | Equation |
|---|---|---|---|
| (0, 1) and (2, 5) | 2 | 1 | y = 2x + 1 |
| (1, 2) and (3, 8) | 3 | -1 | y = 3x - 1 |
| (2, 3) and (6, 11) | 2 | -1 | y = 2x - 1 |
| (0, 4) and (4, 0) | -1 | 4 | y = -1x + 4 |
| (1, 1) and (5, 3) | 0.5 | 0.5 | y = 0.5x + 0.5 |
| (3, 2) and (5, 10) | 4 | -10 | y = 4x - 10 |
b is where the line crosses the y axis (x = 0).
Advertisement
Slope of a ramp
For a ramp, slope = rise ÷ run. A 1 ft rise over 12 ft run is 8.33% (1:12), the usual limit for wheelchair ramps. Use the Slope Calculator or the Slope Gradient Percent Calculator. More tools: calculators hub.
Official sources
Questions people ask
How do I calculate slope intercept form?
Find m from two points, then solve b = y - mx and write y = mx + b.
What does b mean in y = mx + b?
The y value where the line crosses the y axis.
How do I calculate the slope of a ramp?
Divide the rise by the run and multiply by 100 for percent.
What is the slope of a 1:12 ramp?
1/12 = 0.0833 or 8.33%.
What is the slope of a vertical line?
It is undefined because the run is zero.
Advertisement