Slope formula (equation for slope) | Algebra (article) | Khan Academy (2024)

Learn how to write the slope formula from scratch and how to apply it to find the slope of a line from two points.

It's kind of annoying to have to draw a graph every time we want to find the slope of a line, isn't it?

We can avoid this by writing a general formula for slope. Before we start, let's remember how slope is defined:

Slope=Change in yChange in x

Let's draw a line through two general points (x1,y1) and (x2,y2).

A coordinate plane. The x-axis runs from horizontally and has 2 tick marks labeled x1 and x2. The y-axis runs vertically and has 2 tick marks labeled y1 and y2. A graph of a line intersects the points (x1, y1) and (x2, y2). Closed points are plotted at (x1, y1) and (x2, y2).

An expression for change in x is x2x1:

Most people have to stop and think about why this expression works. For example, think about if x1=3 and x2=7. Here is how we would find the change in x:

=x2x1=73=4

This makes sense because the distance from 3 to 7 is 4.

A coordinate plane. The x-axis runs from horizontally and has 2 tick marks labeled x1 and x2. The y-axis runs vertically and has 2 tick marks labeled y1 and y2. A graph of a line intersects the points (x1, y1) and (x2, y2). Closed points are plotted at (x1, y1) and (x2, y2). There is a horizontal segment that starts at (x1, y1) that is labeled x2 minus x1.

Similarly, an expression for change in y is y2y1:

A coordinate plane. The x-axis runs from horizontally and has 2 tick marks labeled x1 and x2. The y-axis runs vertically and has 2 tick marks labeled y1 and y2. A graph of a line intersects the points (x1, y1) and (x2, y2). Closed points are plotted at (x1, y1) and (x2, y2). There is a horizontal segment that starts at (x1, y1) that is labeled x2 minus x1. There is a vertical segment that starts at (x2, y2) that is labeled y2 minus y1.

Now we can write a general formula for slope:

Slope=Change in yChange in x=y2y1x2x1

That's it! We did it!

Using the slope formula

Let's use the slope formula to find the slope of the line that goes through the points (2,1) and (4,7).

Step 1: Identify the values of x1, x2, y1, and y2.

x1=2

y1=1

y2=7

It's easier to see if we line up the points we have

(2,1) and (4,7)

vertically with the general points

(x1,y1) and (x2,y2).

We can also think of it like this:

x1 is the x-coordinate of the 1st point.

y1 is the y-coordinate of the 1st point.

x2 is the x-coordinate of the 2nd point.

y2 is the y-coordinate of the 2nd point.

Step 2: Plug in these values to the slope formula to find the slope.

Slope=y2y1x2x1=7142=62=3

Step 3: Gut check. Make sure this slope makes sense by thinking about the points on the coordinate plane.

A coordinate plane. The x-axis runs from negative 2 to 10 and is scaled by 1. The y-axis runs from negative 4 to 10 and is scaled by 1. A graph of a line intersects the points (2, 1) and (4, 7). Closed points are plotted at (2, 1) and (4, 7).

Yup! This slope seems to make sense since the slope is positive, and the line is increasing.

Using the slope formula walkthrough

Let's use the slope formula to find the slope of the line that goes through the points (6,3) and (1,7).

Step 1: Identify the values of x1, x2, y1, and y2.

x1=

y1=

x2=

y2=

x1=6

y1=3

x2=1

y2=7

Step 2: Plug in these values to the slope formula to find the slope.

Slope=y2y1x2x1=

Slope=y2y1x2x1=7(3)16=105=2

Step 3: Gut check. Make sure this slope makes sense by thinking about the points on the coordinate plane.

A coordinate plane. The x-axis runs from negative 2 to 10 and is scaled by 1. The y-axis runs from negative 4 to 10 and is scaled by 1. A graph of a line intersects the points (1, 7) and (6, negative 3). Closed points are plotted at (1, 7) and (6, negative 3).

Does this slope make sense?

Choose 1 answer:

Choose 1 answer:

  • Yes

  • No

Let's practice!

1) Use the slope formula to find the slope of the line that goes through the points (2,5) and (6,8).

Slope=y2y1x2x1=8562=34

2) Use the slope formula to find the slope of the line that goes through the points (2,3) and (4,3).

Slope=y2y1x2x1=3(3)42=66=1

3) Use the slope formula to find the slope of the line that goes through the points (5,7) and (2,1).

Slope=y2y1x2x1=1(7)2(5)=63=2

Something to think about

What happens in the slope formula when x2=x1?

As a reminder, here is the slope formula:

Slope=y2y1x2x1

Feel free to discuss in the comments below!

Slope formula (equation for slope) | Algebra (article) | Khan Academy (2024)
Top Articles
Latest Posts
Article information

Author: Dong Thiel

Last Updated:

Views: 6081

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Dong Thiel

Birthday: 2001-07-14

Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

Phone: +3512198379449

Job: Design Planner

Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.