Slope and Y-Intercept Calculator

Slope and Y-Intercept Calculator

The slope and y-intercept calculator takes a linear equation and allows you to calculate the slope and y-intercept for the equation. The equation can be in any form as long as its linear and and you can find the slope and y-intercept.

See an example

How to use this calculator

Step 1:

Enter the linear equation you want to find the slope and y-intercept for into the editor.

The slope and y-intercept calculator takes a linear equation and allows you to calculate the slope and y-intercept for the equation. The equation can be in any form as long as its linear and and you can find the slope and y-intercept.

Step 2:

Click the arrow to submit and see the result!

Your math problem

Worked example

Here is how this calculator solves a typical problem.

Problem Find the slope and y-intercept of 4x − 2y = 8

  1. Solve the equation for y. Subtract 4x from both sides: −2y = −4x + 8.
  2. Divide every term by −2: y = 2x − 4.
  3. Compare with y = mx + b. The slope is m = 2.
  4. The y-intercept is b = −4, which is the point (0, −4).

Answer Slope 2, y-intercept −4 (y = 2x − 4)

Slope-intercept form

y = mx + b, m = (y₂ − y₁) / (x₂ − x₁)

In slope-intercept form the coefficient of x is the slope m and the constant b is the y-intercept, the point where the line crosses the y-axis. To find them from any linear equation, solve for y.

From two points, compute the slope as rise over run: for (1, 2) and (3, 8), m = (8 − 2)/(3 − 1) = 3. Then substitute one point into y = mx + b to find b: 2 = 3(1) + b gives b = −1, so y = 3x − 1.

The x-intercept is found by setting y = 0: for y = 2x − 4, 0 = 2x − 4 gives x = 2.

How It Works

1
Enter your problem
Type it into the calculator above, or use the on-screen math keyboard for fractions, exponents, radicals, and more.
2
Choose what to solve
Pick the topic that matches what you want done from the list Mathway suggests for your problem.
3
Get the answer with steps
See the result instantly, then follow the step-by-step explanation of how it was solved.

Why use Mathway?

Step-by-step solutions
See how your answer is calculated.
Supports all types of problems
From basic math through calculus and beyond.
Accurate mathematical results
Get exact answers you can trust.
Trusted by students
A reliable tool for homework and learning.

Frequently asked questions

How do I find the slope from two points?

Divide the change in y by the change in x: m = (y₂ − y₁)/(x₂ − x₁). For the points (1, 2) and (3, 8), m = (8 − 2)/(3 − 1) = 6/2 = 3.

What is the y-intercept?

The y-intercept is the point where the line crosses the y-axis, where x = 0. In y = mx + b it is the constant b. For y = 2x − 4 the y-intercept is −4, or the point (0, −4).

What is the slope of a vertical or horizontal line?

A horizontal line such as y = 3 has slope 0. A vertical line such as x = 2 has an undefined slope because the run is zero, and it cannot be written in slope-intercept form.

How do I find the x-intercept?

Set y = 0 and solve for x. For y = 2x − 4, 0 = 2x − 4 gives x = 2, so the line crosses the x-axis at (2, 0).

Ready to try it yourself?
Enter a problem in the calculator above to get the answer with step-by-step solutions.
Mathway requires javascript and a modern browser.