Skip to content
Math & Statistics

How to Find the Slope of a Line: 4 Easy Methods

Find the slope of a line from two points, a graph, an equation or a table. Includes the slope formula, positive and negative slopes, and real-world grades.

Umar Umar Content Writer Published 3 min read
How to Find the Slope of a Line – Tuff Search guide
Share
In this guide
  1. Method 1: from two points
  2. Method 2: from a graph
  3. Method 3: from an equation
  4. Method 4: from a table
  5. Reading the sign
  6. Slope in real life
  7. Parallel and perpendicular lines
  8. Worked example with negative numbers
  9. From slope to the equation of the line
  10. Slope of a curve
  11. Frequently asked questions
  12. Related calculators
  13. Related articles
  14. Sources

Slope measures how steep a line is: how much it goes up or down for each step to the right. However the line is given to you – two points, a graph, an equation or a table – the idea is the same: change in y divided by change in x.

Method 1: from two points

Use m = (y₂ − y₁) ÷ (x₂ − x₁). For (2, 3) and (6, 11): m = (11 − 3) ÷ (6 − 2) = 8 ÷ 4 = 2. Keep the points in the same order on top and bottom.

Method 2: from a graph

  1. Pick two points where the line crosses grid corners.
  2. Count the rise (up is positive, down is negative).
  3. Count the run to the right.
  4. Divide rise by run.
Slope: what the sign means: Positive – Rises left to right – m = 2; Negative – Falls left to right – m = −0.5; Zero – Horizontal – y = 5
Slope: what the sign means
Try it with your numbersSlope CalculatorFind the slope of a line from two points, plus the equation in slope-intercept form, angle, percent grade and…Open calculator

Method 3: from an equation

In slope-intercept form y = mx + b, the slope is the number in front of x: y = −3x + 7 has slope −3. If the equation is in standard form Ax + By = C, the slope is −A ÷ B: for 2x + 4y = 8, m = −2 ÷ 4 = −0.5.

Method 4: from a table

Pick any two rows and divide the change in y by the change in x. If the answer is the same for every pair of rows, the relationship is linear.

x y Change in y ÷ change in x
0 5 –
2 9 4 ÷ 2 = 2
4 13 4 ÷ 2 = 2
6 17 4 ÷ 2 = 2

Reading the sign

Slope What the line does
Positive Rises from left to right
Negative Falls from left to right
Zero Horizontal
Undefined Vertical

Slope in real life

A slope is a rate of change. A wheelchair ramp at 1:12 has a slope of 8.3%. A roof with a 6-in-12 pitch rises 6 inches per foot, an angle of about 26.6°. On a distance–time graph the slope is speed; on a cost graph it is the price per unit.

Parallel and perpendicular lines

Parallel lines have the same slope. Perpendicular lines have slopes that are negative reciprocals: if one is 2, the other is −1/2.

Worked example with negative numbers

Find the slope through (−3, 7) and (5, −1). Rise = −1 − 7 = −8. Run = 5 − (−3) = 8. Slope = −8 ÷ 8 = −1. The line falls one unit for every unit to the right. Writing the subtraction out in full, with brackets around negatives, prevents most sign errors.

From slope to the equation of the line

With the slope and one point you can write the whole line. Using m = −1 and the point (5, −1) in y − y₁ = m(x − x₁): y + 1 = −1(x − 5), so y = −x + 4. The y-intercept, 4, is where the line crosses the y-axis.

Slope of a curve

A curve does not have one slope – it changes from point to point. The average slope between two points on a curve is still rise over run, and it describes the average rate of change over that interval. Calculus refines this into the slope at a single point (the derivative).

Frequently asked questions

m = (y₂ − y₁) ÷ (x₂ − x₁).

0.

Undefined.

The slope is m, the coefficient of x.

Yes – 2/3 means up 2 for every 3 across.

Sources

Estimates, not adviceResults are estimates for information only, not tax, financial, medical or legal advice. Confirm important figures with a qualified professional. See our Disclaimer.

Share this guide

Related calculators

Umar

About the author

Umar

Content Writer · Tuff Search

Umar writes the guides on the Tuff Search blog. He explains how each calculation works in plain English, with worked examples, and checks every figure against official sources.

Keep reading

More math & statistics guides

View all guides