You find the slope of a graphed line by picking two points, subtracting their y-values to get the rise, subtracting their x-values in the same order to get the run, and dividing: slope = rise ÷ run. A rising line gives a positive slope, a falling line gives a negative slope, a horizontal line gives 0, and a vertical line has no defined slope at all. The method works the same on paper, in Excel, or on the TI-84, though each tool has its own failure mode.
Pick Two Lattice Points the Grid Actually Labels
The whole method rests on coordinates you can read off the axes without guessing. A point counts as reliable only when the line crosses a gridline intersection that is labeled or evenly spaced from a label. On a typical classroom graph with axes labeled every 1 unit and ten subdivisions per unit, that means integer coordinates like (2, 3) and (5, 9) — not an eyeballed spot near (2.3, 4.1).
Choose points as far apart as the graphed segment allows. The College Board's AP Calculus course materials and most state algebra standards treat slope as a ratio of differences, and longer separations shrink the relative damage of a half-unit misread. Two points four units apart turn a 0.25-unit reading error into roughly a 6 percent slope error; points one unit apart turn the same error into about 25 percent.
Prefer points where the line visibly crosses a corner of the grid. If the line only grazes a gridline, that touch is almost never exact, and it's the most common source of wrong answers on homework. Mark each chosen point with a dot and write its coordinates beside it before doing any arithmetic.
If the graph shows no labeled intersections at all, you can still work, but pick the two crossings that sit nearest a labeled tick so you can count subdivisions. Note what each grid square is worth: some worksheets scale axes by 2s or 5s, and a square worth 2 units changes every subtraction. Confirm the scale before you trust any coordinate.
Subtract in the Same Order for Rise and Run
Slope is the change in y divided by the change in x between the same two points, taken in the same direction. Label one point (x₁, y₁) and the other (x₂, y₂), then compute y₂ − y₁ on top and x₂ − x₁ on the bottom. Writing m = (y₂ − y₁) ÷ (x₂ − x₁) keeps the order fixed so the sign comes out right.
Order matters only for consistency, not for which point you call first. Swap both points and both differences change sign, so the ratio stays identical. The error students actually make is mixing them: y₂ − y₁ over x₁ − x₂. That flips the sign of an otherwise correct answer.
Do the subtractions separately, then divide. Going straight to the division invites sign slips, and a negative divided by a negative is positive — easy to lose track of mentally. Write both differences down first.
Keep fractions as fractions. If the rise is 3 and the run is 4, the slope is 3/4, and converting to 0.75 is fine for checking but loses exactness when the graph's answers are expected as fractions. Many textbooks and online homework systems accept either, but some auto-graders want the reduced fraction, so know which one your course uses. Check the course syllabus or ask the instructor.
Count Rise and Run Directly Off the Grid
Counting squares is the fastest route when both chosen points land on clean intersections, because you never write a coordinate pair. Start at the left point, count the vertical squares up (or down) to the level of the second point, then count horizontal squares across to it. Rise over run falls straight out of the two counts.
Treat up and right as positive; down and left as negative for the purpose of building the ratio. A line that climbs 4 squares while moving 6 squares right has slope 4/6 = 2/3. A line that drops 5 squares over 2 squares right is −5/2, because the vertical count goes down.
When the graph has no gridlines, use the axis labels to measure. Khan Academy's algebra materials and most state standards present slope the same way: vertical change over horizontal change between two clear points. Measure with a ruler against the printed axis scale if the grid is faint.
Counting fails in one specific case: when the line passes through no two labeled intersections, such as a graph with oblique labels or a hand-drawn sketch. Then count subdivisions and accept an approximate answer, or convert to coordinates and subtract. An approximate slope from a sketch should be reported as approximate.
Read the Sign and Steepness Before You Calculate
The direction of the line tells you the sign of the slope before any arithmetic, which is a free check on your work. A line going up from left to right has a positive slope. A line going down from left to right has a negative slope. This holds regardless of where the line sits on the graph.
Steepness maps to magnitude. A slope of 3 is three times steeper than a slope of 1, and a slope of 1/3 is gentle. Comparing two lines by eye and then by number is a quick sanity check: the steeper line should have the larger absolute slope value. Two lines with slopes 2 and −2 are equally steep but lean opposite ways.
A slope of exactly 1 rises one unit for every one unit right — a 45-degree angle on a graph with equal axis scales. A slope of 0 is flat. There is no slope value that corresponds to vertical, which is why textbooks say vertical lines have undefined slope rather than "infinite slope."
Watch unequal axis scales. If the x-axis is labeled every 1 unit but the y-axis every 10, a line that looks like slope 1 on the printed page may have a true slope of 10. Always read the tick labels; the visual steepness is a scale illusion otherwise.
Handle Horizontal and Vertical Lines Without Guessing
Horizontal and vertical lines break the formula in different ways, and both get asked on tests. A horizontal line has the same y-value everywhere, so y₂ − y₁ = 0 and the slope is 0. A vertical line has the same x-value everywhere, so x₂ − x₁ = 0 and the division is undefined.
| Line type | Example points | Rise (y₂ − y₁) | Run (x₂ − x₁) | Slope |
|---|---|---|---|---|
| Rising | (1, 2) to (4, 8) | 6 | 3 | 2 |
| Falling | (−1, 5) to (2, −1) | −6 | 3 | −2 |
| Horizontal | (1, 3) to (5, 3) | 0 | 4 | 0 |
| Vertical | (4, 1) to (4, 6) | 5 | 0 | Undefined |
Zero slope and undefined slope are not the same answer. A slope of 0 means the line is flat and the equation is y = a constant. Undefined slope means the line is vertical and the equation is x = a constant. On a multiple-choice test, choosing "0" for a vertical line is a guaranteed miss.
Check whether the graphed line is truly vertical or only looks it. If the x-values differ by even one subdivision — say the points are (4, 1) and (4.1, 6) — the slope exists and is very steep, roughly 50. Only exact equality in x makes it undefined.
Run a Second Point Pair as a Self-Check
Slope is constant along a straight line, so any two points on the line must give the same ratio. Recompute with a different pair and compare. If the first pair gives 3/4 and a second, far-apart pair gives 6/8, the answer holds. If the second gives 2/3, at least one point was misread.
This check catches the two common errors: a misread coordinate and a subtraction in the wrong order. A misread point usually pushes the new ratio noticeably off. An order slip flips the sign only, so compare magnitudes and signs separately.
Choose the second pair from a different part of the graphed segment, ideally spanning a region you haven't used. Redoing the check with the same pair proves nothing. If the line is short, the two pairs will be close together, and the check is weaker — say so in your work if precision matters.
When the two ratios genuinely disagree and the points look correct, the line probably isn't straight. A curve has a different slope at every point, and a single value only describes a tangent at one location. In that case, identify whether the question wants the slope between two specific points (a secant slope) or the slope at one point (a tangent slope).
Use Slope-Intercept Form to Confirm on a Calculator
Graphing calculators and apps find slope through linear regression, which returns a slope and intercept rather than a ratio. On the TI-84 Plus family, enter the points in the STAT editor under lists L1 and L2, then run STAT → CALC → LinReg(ax+b). The output labeled "a" is the slope, and "b" is the y-intercept.
This route is worth knowing because it handles decimals and many points at once, and it matches the equation form students see as y = mx + b. It also reveals when the data isn't linear: a low correlation coefficient (r) means the points don't fit a line, so a single slope misrepresents them. The TI-84 reports r only when diagnostics are turned on in the catalog.
Do not round the calculator's slope before comparing it with a hand count. A calculator slope of 0.74999 against a counted 3/4 is agreement, not a discrepancy. Regressions estimate from noisy data; a graph read off exact intersections should match to the last decimal the calculator shows.
Online tools such as Desmos will draw the line through two entered points and display its equation, so the slope appears as the coefficient of x. Treat any third-party site's output as a cross-check, not a substitute for showing the subtraction; homework that asks for work still needs the rise and run written out.
Work a Full Example With a Non-Integer Slope
Take a line crossing (−2, 1) and (2, 4). Rise = 4 − 1 = 3. Run = 2 − (−2) = 4. Slope = 3/4. The line rises three units for every four it moves right, and it crosses the y-axis at 2.5, which you can verify by extending the pattern: from (−2, 1), moving 4 right and 3 up reaches (2, 4), and moving 2 more left and 1.5 down reaches (0, 2.5).
Now take a pair with negatives on both sides: (1, −2) and (5, −10). Rise = −10 − (−2) = −8. Run = 5 − 1 = 4. Slope = −8/4 = −2. A common slip here is adding instead of subtracting: writing −10 + 2 = −8 happens to give the right rise, but −10 − 2 = −12 does not. Subtracting a negative number means adding its absolute value.
Then a decimal example: (0.5, 2.0) and (2.5, 5.0). Rise = 3.0, run = 2.0, slope = 1.5. Converting to the fraction 3/2 is optional but often expected in a school answer. Reducing before dividing keeps decimals from creeping in.
Finally a near-vertical edge case: (1, 0) and (1.2, 10). Rise = 10, run = 0.2, slope = 50. This is a legitimate slope, not undefined — the x-values differ, so the denominator isn't zero. Students who round 1.2 to 1 turn a slope of 50 into an undefined vertical line, which is why precision on coordinates matters.
Where Slope Shows Up Outside the Classroom
Slope is the same number as a rate of change in most applied settings, which is why the graph-reading skill gets reused. On a distance–time graph, slope is speed. On a cost–quantity graph, slope is the unit price. On a velocity–time graph, slope is acceleration. The U.S. Bureau of Labor Statistics uses exactly this framing when it presents trends in employment and wages over time: the steepness of a long-run trend line corresponds to the average annual change.
That reuse means the graph-reading rules carry over. A flat stretch on a distance graph is a slope of 0 and therefore zero speed, not a stopped clock. A downward stretch on a cost graph has a negative slope, and the magnitude is the rate of decrease. Interpreting these correctly requires the same ordered subtractions.
The practical habit to build: whenever a graph is handed to you with two axes named in real units, ask what the vertical units per horizontal unit mean. That ratio is the slope's meaning, and stating it in words — dollars per item, miles per hour, degrees per minute — is often worth more credit than the fraction itself.
Frequently Asked Questions
Can slope be zero and negative at the same time?
No. Slope is a single number, and 0 is neither positive nor negative. A line with slope 0 is perfectly horizontal, so it has no upward or downward direction. If a problem asks for a negative slope and your answer is 0, the chosen points likely sit on a flat segment rather than the slanted part of the graph.
What if I pick the points in the opposite order?
You get the same slope. Reversing both the top and bottom subtractions flips both signs, and a negative divided by a negative is positive, so the ratio is unchanged. What breaks the answer is reversing only one of the two subtractions, which produces the correct magnitude with the wrong sign.
How do I find slope when the graph doesn't cross any grid corners?
Count subdivisions between two crossings that sit nearest labeled ticks, then convert the counts using the axis scale. Accuracy is limited by how well you can read a fraction of a grid square. Where possible, switch to a pair of labeled axis intercepts, which are usually exact.
Why does my calculator give a slope slightly different from my rise over run?
Linear regression fits the best line to all entered points, while rise over run uses exactly two. With noisy or decimal data the two differ, and neither is wrong — they answer different questions. For an exact graph with clean intersections, the values should match; a mismatch means a point was typed wrong.
Is a vertical line's slope infinite?
Textbooks and standardized tests say undefined, not infinite, because division by zero has no value in the real numbers. Saying "infinitely steep" is informal shorthand at best. Write "undefined" on any exam answer, and note the equation as x = a constant.
Does the number of grid squares between the points change the slope?
No, but it changes the precision of your reading. Two points one square apart magnify a small misread into a large slope error, while points farther apart average it down. This is the same reason a long baseline improves a survey measurement.
How is slope different from the y-intercept?
Slope measures tilt and intercept measures position: slope is the change per unit of x, and the y-intercept is where the line meets the vertical axis. A line's slope is unchanged if you slide it up or down, but its intercept moves. Graph-reading questions often ask for both, and confusing them costs points even when the arithmetic is right.
What's the difference between slope and the slope of a curve at a point?
For a straight line, the slope is one number everywhere. For a curve, the slope changes from point to point, and the "slope at a point" means the slope of the tangent line there. Computing it requires calculus or a very close local reading of the graph, not the two-far-apart-points method used for lines.