How to Calculate Slope Intercept Form (y = mx + b)

Updated 5 Dec 2026 · By , HisaabHub · How we check

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

  1. Pick two points on the line.
  2. Subtract the y values, subtract the x values, divide to get m.
  3. Put one point into y = mx + b and solve for b.
  4. 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.

Calculate Slope Intercept table
Two pointsSlope mIntercept bEquation
(0, 1) and (2, 5)21y = 2x + 1
(1, 2) and (3, 8)3-1y = 3x - 1
(2, 3) and (6, 11)2-1y = 2x - 1
(0, 4) and (4, 0)-14y = -1x + 4
(1, 1) and (5, 3)0.50.5y = 0.5x + 0.5
(3, 2) and (5, 10)4-10y = 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