BUILDING & PLANNING · FIELD TOOL

Slope Intercept Form Calculator

Slope-intercept form is y = mx + b: m is the slope and b is where the line crosses the y axis. Through (1, 5) and (4, 11) the slope is 6 ÷ 3 = 2, and b = 5 − 2 × 1 = 3, so y = 2x + 3. From standard form, y = −A ÷ B × x + C ÷ B: 2x + 3y = 12 gives y = −2/3x + 4.

Inputs

Results update as you type.

Line
Graph of the liney = 2x + 3(1, 5)(4, 11)myconstructioncalculator.com
Diagram updates as you type.

Results

Check the working before you order.

Slope-intercept form
y = 2x + 3
Point-slope formy − 5 = 2(x − 1)
Standard form2x − y = −3
Slope m2
y-intercept b(0, 3)
x-intercept(−3/2, 0)
Angle to the x axis63.43 °
Price This optional: add your own prices

Your prices are remembered on this device only.

Send Order WhatsApp, SMS or email to your supplier
Include
Working
  1. Slope m = (y₂ − y₁) ÷ (x₂ − x₁) = (11 − 5) ÷ (4 − 1) = 2
  2. b = y₁ − m × x₁ = 5 − 2 × 1 = 3
  3. Slope-intercept form y = mx + b: y = 2x + 3

Results are estimates for planning and material ordering only. They are not a substitute for structural design or approval by a qualified engineer. Read the full disclaimer.

Formula

y = mx + b
m = (y₂ − y₁) ÷ (x₂ − x₁)
b = y₁ − m × x₁
From Ax + By = C:  m = −A ÷ B,  b = C ÷ B
x-intercept = −b ÷ m

Worked Example

Line through (1, 5) and (4, 11):

  1. m = (11 − 5) ÷ (4 − 1) = 6 ÷ 3 = 2
  2. b = 5 − 2 × 1 = 3
  3. y = 2x + 3; it crosses the x axis at (−1.5, 0)

Slope and Steepness

Slope m Angle Rise per 10 along
0.1 5.71° 1
0.25 14.04° 2.5
0.5 26.57° 5
1 45° 10
2 63.43° 20

Frequently Asked Questions

What do m and b mean in y = mx + b?

m is the slope: how much y goes up for each 1 along x. b is the y-intercept: the value of y where the line crosses the y axis, at x = 0.

How do I find the slope-intercept form from two points?

Slope m = (y₂ − y₁) ÷ (x₂ − x₁), then b = y₁ − m × x₁. Through (1, 5) and (4, 11): m = 2, b = 3, so y = 2x + 3.

How do I convert standard form to slope-intercept form?

Solve for y. 2x + 3y = 12 → 3y = −2x + 12 → y = −2/3x + 4.

How do I find the x-intercept?

Set y = 0 and solve: x = −b ÷ m. For y = 2x + 3 the line crosses the x axis at x = −1.5.

Why does a vertical line have no slope-intercept form?

Its x never changes, so the slope would be a rise divided by zero. It is written x = a number, such as x = 3.

Embed This Calculator on Your Website

Free for any website: contractors, suppliers, blogs and schools. Paste this code where you want the calculator to appear. It works in WordPress (Custom HTML block), Wix, Squarespace and plain HTML.

Preview
All Building & Planning Calculators