In short
Pick any two points on a straight line. Drop a horizontal segment ("run") and a vertical segment ("rise") to make a right triangle. The number \frac{\text{rise}}{\text{run}} is the slope of the line. Now do it again with two different points — bigger triangle, smaller triangle, anywhere on the line — and the ratio comes out exactly the same. That constant ratio is what "the line has slope m" really means. The reason it works is similar triangles: every rise/run triangle on the same line has the same shape, so its proportions don't change.
You have probably seen the formula
written on a board. Two points, subtract, divide, done. But why does the answer not depend on which two points you pick? On a line of "infinitely many points", that feels like it shouldn't be a coincidence. It isn't — it's geometry. And once you see it as a triangle that you can slide and stretch along the line without the ratio ever changing, the formula stops being a recipe and starts being obvious.
The triangle you draw without thinking
Take the line y = 2x + 1. Two easy points on it: (0, 1) and (1, 3). Mark them. Now draw a horizontal segment from (0, 1) to (1, 1) — that is the run, length 1. Then a vertical segment from (1, 1) up to (1, 3) — that is the rise, length 2. The two segments and the slanted piece of the line between (0,1) and (1,3) form a right-angled triangle.
The ratio \frac{\text{rise}}{\text{run}} = \frac{2}{1} = 2. That is the slope.
Now pick two different points on the same line: (2, 5) and (5, 11). Draw the run from (2, 5) to (5, 5) — length 3. Draw the rise from (5, 5) to (5, 11) — length 6. The new triangle is bigger, sitting further up and to the right. Its ratio? \frac{6}{3} = 2. Same number.
This is the whole game. Move the triangle, resize the triangle — as long as its hypotenuse lies along the same straight line, the ratio rise/run does not change.
See it: drag the triangle anywhere
The widget below has the line y = 2x + 1 fixed in place. There are three rise/run triangles drawn on it — different sizes, at different points along the line. Press Move triangle to reshuffle one of them to a new spot. Watch the rise and run numbers change. Watch the ratio not change.
The line never moves. The triangles do. The ratio never moves either. That last fact is what gives slope its identity — it is a property of the line, not of the triangle you happened to draw.
Worked examples
Two points near the origin
Take the line y = 2x + 1 and pick the points (0, 1) and (3, 7).
- Run (horizontal change): 3 - 0 = 3.
- Rise (vertical change): 7 - 1 = 6.
- Slope: \dfrac{\text{rise}}{\text{run}} = \dfrac{6}{3} = 2. ✓
The number 2 matches the coefficient of x in y = 2x + 1, which is exactly what slope-intercept form promises.
Two points far away — same line
Same line y = 2x + 1. Now pick (-2, -3) and (1, 3). (Check: 2(-2)+1 = -3 ✓ and 2(1)+1 = 3 ✓.)
- Run: 1 - (-2) = 3.
- Rise: 3 - (-3) = 6.
- Slope: \dfrac{6}{3} = 2. ✓ — the same answer.
You moved the triangle to a totally different region of the plane, swapped negative coordinates in for positive ones, and the ratio held. That is not luck.
Why it always works — similar triangles
Take any two rise/run triangles on the same straight line. Call them \triangle ABC and \triangle DEF, where AB and DE are the horizontal runs, BC and EF are the vertical rises, and the hypotenuses AC and DF both lie along the line.
- \angle B = \angle E = 90° (both are right angles by construction). Why: the run is horizontal and the rise is vertical, so they meet at 90° in every such triangle.
- \angle A = \angle D (both are the angle the line makes with the horizontal — but it is the same line, so the angle is the same). Why: a straight line has one direction; the angle it makes with the x-axis at one point equals the angle it makes anywhere else.
- By AA similarity, \triangle ABC \sim \triangle DEF. Why: two pairs of equal angles is enough to force similarity in triangles.
- Similar triangles have proportional sides, so \dfrac{BC}{AB} = \dfrac{EF}{DE} — that is, \dfrac{\text{rise}_1}{\text{run}_1} = \dfrac{\text{rise}_2}{\text{run}_2}. ✓
So the ratio is forced to be the same, no matter which two points you started from. Slope is a property of the line itself.
A static picture: nested triangles, one ratio
Here is the whole idea in one frame — three rise/run triangles of different sizes, all on the same line, all giving the same ratio.
What this buys you
Once you trust that the ratio doesn't depend on which two points you pick, the slope formula stops looking arbitrary:
is just "rise divided by run" with the rise written as y_2 - y_1 and the run as x_2 - x_1. You're allowed to pick any two distinct points on the line — the easiest two, the prettiest two, whichever you like — and the answer comes out the same. That is why textbooks pick the x- and y-intercepts so often: they are the two points where one of the coordinates is zero, which makes the subtraction painless.
A quick bridge to trigonometry
Look at the right triangle once more. The line makes some angle \theta with the x-axis. In that triangle, the rise is the side opposite the angle \theta, and the run is the side adjacent. From basic trigonometry,
So slope is literally the tangent of the line's angle of inclination. A line at 45° has slope \tan 45° = 1. A line at 60° has slope \tan 60° = \sqrt{3} \approx 1.73. A horizontal line has slope \tan 0° = 0. A vertical line has slope \tan 90°, which is undefined — exactly why we say a vertical line has "no slope" or "infinite slope". The slope/triangle picture and the trig picture are the same picture, just two languages describing it.
This connection becomes a workhorse later — in coordinate geometry, in calculus when you talk about the slope of a tangent line to a curve, and in physics when a ramp's angle decides how fast a block slides down.
Common mistakes to dodge
- Forgetting to keep the order consistent. If you write y_2 - y_1 on top, you must write x_2 - x_1 on the bottom — same point first in both. Swapping one but not the other flips the sign of the slope.
- Mixing up rise and run. Rise is vertical (parallel to the y-axis). Run is horizontal (parallel to the x-axis). Always.
- Drawing the triangle on the wrong line. The triangle's hypotenuse must lie on the line you're measuring. If you accidentally use a different line, the ratio you get is that other line's slope.
- Two points on a vertical line. The run is 0, and division by zero is undefined — that's the formal way of saying a vertical line has no defined slope.