Skip to content
FiftyCalc Free calculators for all 50 states

Slope Intercept Form Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Give two points on a line, or one point and the slope, to get m and b in y = mx + b.

Result

Sample figures

Slope m—

y-intercept b —

  • x-intercept (where y = 0)—
  • y at the chosen x—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Slope Intercept Form Calculator

What you know

What you know: choose Two points or One point and the slope. Prefilled example: Two points.

x₁: enter a number. Prefilled example: 1.

y₁: enter a number. Prefilled example: 3.

x₂ (two points only): enter a number. Prefilled example: 3.

y₂ (two points only): enter a number. Prefilled example: 7.

Find y at this x: enter a number. Prefilled example: 5.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. What you know: choose Two points or One point and the slope.
  2. x₁: enter a number.
  3. y₁: enter a number.
  4. x₂ (two points only): enter a number.
  5. y₂ (two points only): enter a number.
  6. Slope m (point and slope only): enter a number.
  7. Find y at this x: enter a number.
  8. Read the result: Slope m; the panel also shows y-intercept b, x-intercept (where y = 0) and y at the chosen x.

How this calculator works

Slope-intercept form is y = mx + b, where m is the slope and b the y-value where the line crosses the y-axis.

From two points: m = (y₂ − y₁) ÷ (x₂ − x₁). From one point (x₁, y₁) and the slope: b = y₁ − m·x₁, which comes from the point-slope form y − y₁ = m(x − x₁).

The x-intercept is −b ÷ m. A vertical line (x₁ = x₂) has no slope-intercept form; it is written x = x₁.

The formula

  1. S={y2−y1x2−x1if m=1m2otherwise
Symbols used in the formula
SymbolMeaning
mWhat you know (1: Two points; 2: One point and the slope)
x1x₁
y1y₁
x2x₂ (two points only)
y2y₂ (two points only)
m2Slope m (point and slope only)
SSlope m

Worked example

What you knowTwo points
x₁1
y₁3
x₂ (two points only)3
y₂ (two points only)7
Find y at this x5
y-intercept b1
x-intercept (where y = 0)-0.5
y at the chosen x11
  1. S=7−33−1=2

Slope m 2

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How do you find b in y = mx + b?

Put a point of the line into the equation and solve: with m = 2 through (1, 3), 3 = 2 × 1 + b, so b = 1.

What is the point-slope form?

y − y₁ = m(x − x₁). Expanding it gives y = mx + (y₁ − m·x₁), the slope-intercept form.

Why does a horizontal line have no x-intercept?

With m = 0 the line y = b never meets the x-axis unless b = 0.

Related calculators