A line in the coordinate plane has one shape but three common equation forms — and each is the right choice for a specific question. Knowing which to reach for first will save time on every algebra and geometry problem you ever solve.
The three forms
- Slope-intercept: y = mx + b
- Point-slope: y − y₁ = m(x − x₁)
- Standard form: Ax + By = C (with A, B, C integers and A ≥ 0)
All three describe the same lines. The differences are in what's exposed in the equation.
First, what the slope means
Two of the three forms put the slope, m, front and center, so it pays to know what that number is telling you. Given two points (x₁, y₁) and (x₂, y₂):
m = (y₂ − y₁) / (x₂ − x₁) = Δy / Δx
"Rise over run" is correct, but the more useful reading is rate of change: when x increases by 1 unit, how much does y change?
- Slope of 2: every unit right, y goes up 2.
- Slope of −0.5: every unit right, y goes down 0.5.
- Slope of 0: y doesn't change at all (horizontal line).
The sign tells you how the two quantities move. A positive slope means they rise together (more hours studying, higher test score). A negative slope means they move in opposite directions (higher prices, lower demand). A zero slope means changes in x have no effect on y. This is the same idea as correlation in statistics: a linear relationship has positive, negative, or zero correlation depending on the slope of its best-fit line.
Every slope also carries units — rise units per run unit. A slope of 2 in "miles per hour" means something very different from a slope of 2 in "dollars per pound," so check both axis labels before interpreting a slope. A line that looks steep on a poorly scaled axis can be misleading.
Slope-intercept: best for graphing
y = mx + b shows the slope (m) and y-intercept (b) directly. This makes it the easiest form for sketching a graph: plot b on the y-axis, then use m as rise/run to find a second point.
Example: y = 2x + 3 has slope 2 (rise 2, run 1) and y-intercept 3. Plot (0, 3), then go up 2 right 1 to (1, 5). Connect.
When to use: graphing a line, identifying y-intercept, comparing slopes of multiple lines side by side.
Point-slope: best for writing an equation given a point
Point-slope form, y − y₁ = m(x − x₁), takes a slope m and any point (x₁, y₁) on the line. It's the natural form when you know one point and the slope, but not the y-intercept.
Example: line passes through (3, 7) with slope 4.
- Point-slope: y − 7 = 4(x − 3)
- Convert to slope-intercept: y = 4x − 12 + 7 = 4x − 5
When to use: answering "write the equation of a line through (a, b) with slope m" — point-slope is the form your teacher wants you to write down first.
Standard form: best for finding intercepts and integer arithmetic
Ax + By = C looks ugly but it's the form most teachers want answers simplified to on tests. It also makes intercepts easy:
- x-intercept: set y = 0, solve Ax = C → x = C/A
- y-intercept: set x = 0, solve By = C → y = C/B
Example: 2x + 3y = 12.
- x-intercept: x = 12/2 = 6, so (6, 0)
- y-intercept: y = 12/3 = 4, so (0, 4)
When to use: finding both intercepts quickly, fitting a "clean" textbook form, comparing two lines' coefficients.
Converting between forms
Point-slope → slope-intercept: distribute and solve for y. y − 7 = 4(x − 3) → y − 7 = 4x − 12 → y = 4x − 5.
Slope-intercept → standard form: move x to the left. y = 4x − 5 → −4x + y = −5 → 4x − y = 5 (multiply by −1 to make A positive).
Standard form → slope-intercept: solve for y. 4x − y = 5 → −y = −4x + 5 → y = 4x − 5.
The slope from standard form: m = −A / B. The y-intercept: b = C / B. Memorize these.
Worked example: from two points to all three forms
Line through (1, 2) and (4, 8).
- Slope: m = (8 − 2) / (4 − 1) = 6 / 3 = 2.
- Point-slope: using (1, 2), y − 2 = 2(x − 1).
- Slope-intercept: y − 2 = 2x − 2 → y = 2x. So slope 2, y-intercept 0.
- Standard form: 2x − y = 0 (or −2x + y = 0; convention is A ≥ 0, so 2x − y = 0).
Special cases
Horizontal line (slope 0): y = b. In standard form: 0x + y = b.
Vertical line (undefined slope): x = a. Cannot be written in slope-intercept form. In standard form: x + 0y = a.
If two points share the same x-coordinate, the line through them is vertical, so don't try to force it into slope-intercept form.
Common mistakes
- Forgetting to convert standard form to slope-intercept when you need the slope. m = −A/B, not just A.
- Mixing up the signs in point-slope: y − y₁ = m(x − x₁), with subtraction. y₁ = −3 means y + 3 in the formula.
- Leaving fractions in standard form. 2x − (3/4)y = 1 should be cleared: 8x − 3y = 4.
Slope in the real world
Once you can find m in any form, the next question is what it means outside the textbook. Slope shows up wherever one quantity changes with another.
Physical steepness
- Roof pitch: a "5/12 pitch" means 5 inches of rise per 12 inches of horizontal run — a slope of 5/12 ≈ 0.417, or about 23°.
- Road grade: a "6% grade" warning sign means a slope of 0.06, or 6 feet of rise per 100 feet of horizontal distance.
- Wheelchair ramps: ADA rules set a maximum slope of 1:12 (rise:run), meaning slope ≤ 0.083, or about 4.8°. In new construction, anything steeper is non-compliant. When existing buildings are altered and space is limited, the rules allow short ramps up to 1:10 (6-inch maximum rise) or 1:8 (3-inch maximum rise).
- Hiking trails: a 1,000-foot gain over 2 miles (10,560 feet) of horizontal distance is a slope of 1000/10560 ≈ 0.095, or about 5.4°.
Rates on graphs
When the x-axis is time, the slope is a rate — and in economics and science, the slope is often the quantity the graph exists to show.
| Graph (y vs x) | What the slope means |
|---|---|
| Distance vs time | Speed: driving 120 miles in 2 hours is a slope of 60 mph |
| Velocity vs time | Acceleration: 0 to 60 mph in 6 seconds is 10 mph per second |
| Account balance vs day | Spending rate; a negative slope means you're losing money over time |
| Price vs quantity demanded | Demand curve: negative slope (higher price, less demand) |
| Price vs quantity supplied | Supply curve: positive slope (higher price, more supply) |
| Total cost vs units made | Marginal cost: the extra cost of making one more unit |
| Tax owed vs income | Marginal tax rate; U.S. brackets make a piecewise-linear graph whose slope increases bracket by bracket |
| Voltage vs current | Resistance (Ohm's law) |
| Force vs displacement | Spring constant (Hooke's law) |
| Population vs time | Growth rate (a decline, if negative) |
| Bond yield vs maturity | The yield curve; a downward-sloping (inverted) curve has historically preceded recessions |
The next time you see a chart in a news article or a lab report, identify the slope and its units first — that's usually the actual point of the chart.
Compute the slope first
Whichever form you need, the slope is your first step. Our slope calculator takes any two points and returns slope, y-intercept, and the slope-intercept equation in one shot, along with the angle of inclination. Useful for verifying homework answers, generating practice equations from custom point pairs, or checking real-world rates from your own data points.