Slope Intercept Form Calculator

Slope-intercept form, y = mx + b, is the most common way to write the equation of a straight line: m is the slope (how steep it is) and b is where it crosses the y-axis. Start from two points, from one point and the slope, or from the slope and y-intercept. You get the line in slope-intercept form, point-slope form and standard form, with exact fractions and the steps.

Fractions work: type a slope of −1/3 as -1/3.

Slope-intercept form
y = −(1/5)x − 8/5 Slope-intercept form

The line is y = −(1/5)x − 8/5: slope −1/5, crossing the y-axis at (0, −8/5).

Point-slope form y + 1 = −(1/5)(x + 3)
Standard form x + 5y = −8
Crosses the x-axis (−8, 0)

How to find the equation of a line

Find the slope m first. From two points it is the rise over the run: (y₂ − y₁) ÷ (x₂ − x₁). Then put one point into y = mx + b to find b. Here are your numbers:

m = (y₂ − y₁) ÷ (x₂ − x₁), then b = y₁ − m × x₁, so y = mx + b

Here it is with your numbers:

  1. Slope: m = (−2 − (−1)) ÷ (2 − (−3)), which is −1/5 (−0.2)
  2. y-intercept: b = y₁ − m × x₁: −1 − (−1/5) × (−3), which is −8/5 (−1.6)
  3. Slope-intercept form: y = −(1/5)x − 8/5
  4. Point-slope form, through (−3, −1): y + 1 = −(1/5)(x + 3)
  5. Standard form, with whole numbers: x + 5y = −8

It means for every 1 step right, the line goes down 1/5.

Source OpenStax Intermediate Algebra 2e · 3.3 Find the Equation of a Line: slope-intercept and point-slope form ↗

Slope-intercept, point-slope and standard form

  • Slope-intercept form, y = mx + b: shows the slope and where the line crosses the y-axis.
  • Point-slope form, y − y₁ = m(x − x₁): uses the slope and any one point on the line.
  • Standard form, Ax + By = C: usually written with whole numbers and A not negative, so y = −3x + 5 becomes 3x + y = 5.

A vertical line, like x = −3, has no slope, so it has no slope-intercept form. A horizontal line has slope 0: y = −6.

Source OpenStax Intermediate Algebra 2e · 3.1 Graph Linear Equations in Two Variables: standard form Ax + By = C ↗

FAQs

What is 2x + y = −2 in slope-intercept form?

Get y on its own: subtract 2x from both sides, so y = −2x − 2. The slope is −2 and the line crosses the y-axis at (0, −2).

Source OpenStax Intermediate Algebra 2e · 3.1 Graph Linear Equations in Two Variables: standard form Ax + By = C ↗

What is the slope of y = −6x + 3?

In y = mx + b the slope is the number in front of x, so the slope is −6, and the line crosses the y-axis at (0, 3).

Source OpenStax Intermediate Algebra 2e · 3.3 Find the Equation of a Line: slope-intercept and point-slope form ↗

Sources

Related calculators