To find the slope of a line, divide the vertical change (rise) by the horizontal change (run) between two points: m = (y₂ − y₁) / (x₂ − x₁). The result is positive if the line climbs left to right, negative if it falls, zero if it's flat, and undefined if it's vertical. Every method below is the same division wearing different clothes — the work is in reading the information your problem gives you. Say the points are (1, 2) and (4, 10): rise = 8, run = 3, slope = 8/3.

Reading Slope From a Graph: Pick Two Lattice Points, Not Just Any Two

Graph-reading is where most mistakes happen, because any two points work but clean points work better. Choose spots where the line crosses a grid intersection, count up and over, and confirm the count from a second pair before writing anything down.

Slope is a ratio, not a distance, so the size of your step doesn't matter as long as you land on exact intersections. Walking from (0, 1) to (2, 5) gives a rise of 4 and a run of 2, which reduces to 2. Walking from (0, 1) to (1, 3) gives 2/1, the same value. If your two counts disagree, you misread a point — that's the built-in check.

Line direction Rise Run Slope
Climbs left to right positive positive positive
Falls left to right negative positive negative
Horizontal 0 any nonzero 0
Vertical any nonzero 0 undefined

A common failure: counting run on the vertical axis because the labels sit along the bottom. Vertical distance uses y-values, full stop. If your "slope" is 1/3 when the line looks steep, you swapped axes.

One edge case deserves a sentence of its own. A vertical line like x = 5 has zero run, and division by zero is undefined — not zero. Texas Instruments' graphing calculator manuals and every standard algebra text treat vertical slope as undefined, and that distinction shows up on tests constantly. Horizontal lines get slope 0 because the rise is 0.

The Two-Point Formula in Order: Label, Subtract, Divide, Check Sign

The formula works only if you subtract in the same order on both axes. Label the points first, then substitute, then simplify — and check the sign against the picture in your head before moving on.

1: Label one point (x₁, y₁) and the other (x₂, y₂). The order you choose doesn't matter as long as it's consistent. 2: Subtract the y-values: y₂ − y₁. 3: Subtract the x-values in the same order: x₂ − x₁. 4: Divide the rise by the run. 5: Reduce the fraction to lowest terms. 6: Sanity-check the sign: does the line go up or down between those points?

Worked example: points (3, 7) and (8, 22). Rise = 22 − 7 = 15. Run = 8 − 3 = 5. Slope = 15/5 = 3. Flip the labeling and both differences negate: (−15)/(−5) = 3. Same answer, which is exactly why consistent order saves you.

Failure handling: if you get a result wildly different from your estimate, re-subtract. Khan Academy's algebra practice sets flag the single most common error here — mixing orders, computing y₂ − y₁ over x₁ − x₂. That flips the sign silently. And if the run comes out 0, don't panic: the slope is undefined because the line is vertical.

Slope-Intercept Form: When the Equation Is Already Solved for y

If the equation reads y = mx + b, the slope is the number multiplying x. No calculation needed — but only if y stands alone with a coefficient of 1 on the left side.

Take y = −4x + 9. The slope is −4 and the y-intercept is 9. Now take 3y = 6x − 12. Divide everything by 3 first: y = 2x − 4, so the slope is 2. Skipping that division is a genuine trap; the coefficient 6 is not the slope.

"Its slope is 2" outranks any shortcut when the equation is standard form, Ax + By = C. You can convert to slope-intercept, or use the standard-form rule m = −A/B. For 4x + 2y = 10, m = −4/2 = −2, which matches the converted version y = −2x + 5.

Watch for the special shapes. The equation y = 5 is a horizontal line with slope 0. The equation x = 5 has undefined slope. Students frequently write "5" for the first and "0" for the second, which is precisely backwards.

Parallel and Perpendicular Slopes: The Negative Reciprocal Rule

Parallel lines share the same slope. Perpendicular lines have slopes that multiply to −1. Both facts let you answer questions without ever graphing.

If a line has slope 3/4, a parallel line through (0, −2) also has slope 3/4. A perpendicular line has slope −4/3. To build the negative reciprocal: flip the fraction and change the sign. Slope 2 becomes −1/2. Slope −5 becomes 1/5.

The trap is the horizontal-vertical pair. A horizontal line (slope 0) is perpendicular to a vertical line (undefined slope), and 0 × anything is never −1. The rule breaks down there because undefined slopes don't multiply. Learn the pair as an exception; don't try to force the arithmetic.

One more useful fact: if you're given a perpendicular slope with two points, the product test is a fast check on any answer. Multiply your two slopes. If they don't give −1, at least one is wrong.

Slope vs. Rate of Change: Same Division, Different Labels

Slope and average rate of change are the same calculation with different vocabulary. Slope describes a line's steepness; average rate of change describes how an output shifts per unit of input between two points, even on a curve.

On a real-world graph, the units tell the story. Suppose a plant's height in centimeters is plotted against days. Points (2, 3.5) and (10, 13.5) give a slope of (13.5 − 3.5)/(10 − 2) = 10/8 = 1.25, and that 1.25 carries units: centimeters per day. Slope without units is a number; rate of change with units is an answer.

For curved relationships, slope between two points is only average. From x = 1 to x = 4 on a curve, you're computing the slope of the secant line — the straight line through both points — not the steepness at any single moment. Confusing the two is the most common error in introductory calculus.

High school syllabi differ here in emphasis rather than substance. Whether you're on Common Core-style standards or a national curriculum, the formula is identical; only the required interpretation varies. Check your course's formula sheet before an exam.

Point-Slope Form: Building the Equation Once You Have a Slope

With one point and a slope, point-slope form gives you the equation in a single step: y − y₁ = m(x − x₁). Rearranging afterward is optional unless someone asks for slope-intercept form.

Say the slope is −2 and the line passes through (4, 1). The equation is y − 1 = −2(x − 4). Expand: y − 1 = −2x + 8, so y = −2x + 9. Check by plugging the point: −2(4) + 9 = 1, which matches.

The failure mode is sign errors in the parentheses. The form subtracts x₁, so a point at (4, 1) produces (x − 4), and a point at (−3, 5) produces (x − (−3)) = (x + 3). Dropping that double negative flips the line's position without changing its slope.

Building an equation from two points follows the same two-step logic: find the slope first, then plug either point into point-slope form. If the slope comes out undefined, the answer is a vertical line written as x = the shared x-value, not y = mx + b.

Horizontal and Vertical Lines: Zero Is a Slope, Undefined Is Not

A horizontal line has slope 0; a vertical line has undefined slope. These are different answers, not shades of the same one, and mixing them up costs points on nearly every slope quiz.

Why the difference? Slope is rise divided by run. A horizontal line has rise 0 and run of any nonzero value — 0 divided by anything is 0. A vertical line has run 0 with a nonzero rise, and a fraction with 0 in the denominator has no defined value. The common wrong answer is "0" for a vertical line, usually written by someone who noticed one difference was zero and assumed the slope inherited it.

State-specific algebra standards treat this as a required vocabulary distinction. A horizontal line through (2, 7) is y = 7. A vertical line through the same point is x = 2. Swap those and the line rotates 90 degrees.

One practical count: on a full coordinate grid from −10 to 10, there are 41 horizontal grid lines and 41 vertical ones. If a graph's line passes through a column of lattice points with the same x, that x is constant and the slope is undefined — a quick visual test before any arithmetic.

Checking Your Answer Three Ways Before Moving On

Slope errors hide well, so verify with a second method. A minute of checking beats a redo of the whole problem.

First, rough the sign and size. A steep climb should give a magnitude above 1; a shallow one below 1. A negative answer on a rising line means a subtraction went wrong. Second, reverse the points and recompute — the answer must be identical when both differences flip sign together. Third, substitute and multiply: for a line with slope 3 through (2, 1), moving 1 unit right should move 3 units up, so (3, 4) must also satisfy the equation.

If you have two candidate answers, the multiplication test on perpendicular slopes is decisive: m₁ × m₂ should be −1. If it isn't, one of the two is wrong.

For a third-party check, graphing calculators from Texas Instruments accept two points and return the slope via the line-through-points routine; any algebra textbook appendix lists the same formula. Confirm on the maker's site for your calculator model if you want the exact keystrokes.

FAQ

Is slope always rise over run?

Yes — every slope formula in standard algebra traces to rise divided by run, including the two-point formula and the coefficient m in y = mx + b. The only variation is what information a problem hands you: points, an equation, or a graph. Once you have any two points, it's the same subtraction and division every time.

What's the slope of a vertical line?

Undefined, not zero. A vertical line has no horizontal change, and division by zero produces no defined value, which is why textbooks write "undefined" rather than a number. The nearest exception to remember is that a vertical line's equation takes the form x = a constant.

Why do my two slope calculations on the same line disagree?

You almost certainly subtracted in mismatched order — y₂ − y₁ over x₁ − x₂ — which negates the answer. Re-label both points in the same sequence and recompute; the sign should flip to match the picture. Reversing both points legitimately should leave the answer unchanged, which is a free cross-check.

How does a 3% grade compare to a slope of 3?

They're different by a factor of 100. A 3% grade is the same road rise-over-run ratio expressed as a decimal of 0.03, while a slope of 3 rises 3 units per 1 unit of run. If a word problem quotes a grade, convert percent to decimal before treating it as slope: 100% grade equals slope 1.

Can slope be a fraction like 2/3?

Yes, and leaving it unreduced or reduced is fine — both are correct. Slope 2/3 means 2 units up per 3 units right, which is harder to count graphically than an integer but otherwise identical. Avoid converting to a decimal unless the problem asks; 0.666… loses precision.

What does a negative slope tell you about the line?

The line falls as you move left to right. A slope of −1/2 drops half a unit per unit right. Negative slopes appear in problems involving decreasing trends, such as temperature falling over a day, and the sign is a required part of the answer — writing 1/2 instead of −1/2 is a common partial-credit loss.

How do parallel and perpendicular slopes relate?

Parallel lines share the same slope exactly, while perpendicular slopes are negative reciprocals that multiply to −1. The horizontal-vertical pair breaks the multiplication rule because an undefined slope isn't a number. Both facts let you find an unknown slope from one known line without graphing.

Does the two-point formula work if the points have decimals?

It works exactly the same way, though decimal points demand careful alignment. For (0.5, 1.2) and (2.5, 4.2), the rise is 3.0 and the run is 2.0, giving slope 1.5. If the subtraction gets messy, convert decimals to fractions first; 3.0/2.0 becomes 3/2 and reduces cleanly.

What if I only know one point and the slope?

Use point-slope form, y − y₁ = m(x − x₁), and substitute directly. One point plus a slope fully determines a line, so no second point is needed. Rearranging to slope-intercept form afterward is optional unless the question specifies a format.