Slope Calculator — Slope from Two Points & Line Forms
Find the slope of any line from two points, from slope-intercept form, or from point-slope form — plus parallel and perpendicular slopes with the full working. For the points (2,3) and (6,11): rise = 8, run = 4, slope = 2, line y = 2x − 1. Beware the classic trap — slope is rise ÷ run, not run ÷ rise.
Slope Calculator: Two Points, Line Forms & Perpendicular Slopes
Pick the mode that matches what you know. Calculations run in your browser.
What Is a Slope Calculator?
A slope calculator finds how steep a straight line is — the slope m, defined as rise over run: how far the line climbs (rise) for each unit it moves sideways (run). This free tool works four ways: slope from two points, from slope-intercept form y = mx + b, from point-slope form y − y₀ = m(x − x₀), and parallel and perpendicular slopes for any line — even one written as ax + by = c. Every answer comes as an exact fraction with the full step-by-step working.
How to Use the Slope Calculator
The tool has four modes so you can start with whatever information you already have.
- Choose a mode that matches what you know about the line.
- Enter your values (or tap a preset to load a worked example).
- Select Calculate to generate the result cards.
- Read the note under the cards for the step-by-step working and a check you can verify by hand.
The built-in check substitutes the second point (or x = x₀ + 4) back into the finished equation — if the y-value matches, the slope is right.
What Is Slope?
Slope is a number that measures a line's steepness and direction. It is defined as rise over run — the vertical change divided by the horizontal change between any two points on the line.
The sign of the slope tells you which way the line tilts; its size tells you how steep it is. The table below covers all four cases.
| Slope | What the Line Looks Like | Example |
|---|---|---|
| Positive | Climbs left to right | m = 2: through (2,3) and (6,11), line y = 2x − 1 |
| Negative | Falls left to right | m = −3/4: the line 3x + 4y = 12, i.e. y = −3/4x + 3 |
| Zero | Perfectly flat (horizontal) | Through (2,5) and (6,5): m = 0/4 = 0, line y = 5 |
| Undefined | Straight up and down (vertical) | Through (3,2) and (3,8): run = 0, so the slope is undefined — the line is x = 3 |
Slope Calculator Worked Examples
Every row below is computed exactly, so you can verify each one by hand.
| Points | Rise | Run | Slope m | Line |
|---|---|---|---|---|
| (2,3) and (6,11) | 11 − 3 = 8 | 6 − 2 = 4 | 8/4 = 2 | y = 2x − 1 |
| (1,2) and (4,8) | 8 − 2 = 6 | 4 − 1 = 3 | 6/3 = 2 | y = 2x |
| (2,5) and (6,5) | 5 − 5 = 0 | 6 − 2 = 4 | 0/4 = 0 | y = 5 (horizontal) |
| (3,2) and (3,8) | 8 − 2 = 6 | 3 − 3 = 0 | 6/0 = undefined | x = 3 (vertical) |
The Rise/Run Flip Trap
The most-tested slope trap works like this: for (2,3) and (6,11), students divide the wrong way — run ÷ rise = 4/8 = 1/2 instead of rise ÷ run = 8/4 = 2. The fix is a one-word mantra: rise first. Set the calculator to Two Points, load the (2,3)–(6,11) preset, and watch the steps compute rise = 8 before run = 4 every time.
Parallel and Perpendicular Examples
Two lines are parallel when they share the same slope, and perpendicular when their slopes multiply to −1 — i.e. m⊥ = −1/m, the negative reciprocal.
| Given | Slope m | Parallel Slope | Perpendicular Slope |
|---|---|---|---|
| Points (2,3), (6,11) | 2 | 2 | −1/2 (check: 2 × (−1/2) = −1) |
| y = 3x + 5 | 3 | 3 | −1/3 |
| 3x + 4y = 12 (→ y = −3/4x + 3) | −3/4 | −3/4 | 4/3 (check: (−3/4) × (4/3) = −1) |
| Horizontal line y = 5 | 0 | 0 | undefined (a vertical line) |
How to Find Slope Step by Step
Follow this recipe for the classic exam question — the slope through (2,3) and (6,11).
- Label the points: (x₁,y₁) = (2,3), (x₂,y₂) = (6,11).
- Find the rise: y₂ − y₁ = 11 − 3 = 8. (Rise first — never the other way.)
- Find the run: x₂ − x₁ = 6 − 2 = 4.
- Divide: m = 8/4 = 2.
- Find the y-intercept b: plug (2,3) and m = 2 into y = mx + b → 3 = 2(2) + b → b = 3 − 4 = −1.
- Write the equation: y = 2x − 1.
- Check: at x = 6, y = 2(6) − 1 = 11 — the second point. ✓
Common Mistakes With Slope
1. Flipping rise and run
The classic. Slope is rise ÷ run = (y₂ − y₁)/(x₂ − x₁). For (2,3)–(6,11) the answer is 8/4 = 2, not 4/8 = 1/2. "Rise first" — always compute the vertical change before the horizontal one.
2. Sign errors in the subtractions
Writing y₁ − y₂ instead of y₂ − y₁ flips the sign of the whole answer: 3 − 11 = −8 gives m = −8/4 = −2. Keep the point order identical in both the rise and the run — whichever point is "2" on top must be "2" on the bottom too.
3. Saying a vertical line has slope 0
Zero slope is flat (horizontal, y = 5). A vertical line like x = 3 has run = 0, so slope = 6/0 — undefined, not zero. The two words describe opposite lines.
4. Confusing parallel and perpendicular rules
Parallel keeps the slope (m = 2 → 2); perpendicular takes the negative reciprocal (m = 2 → −1/2). Mixing them up — or "negating" without flipping (−2) — breaks the m₁ × m₂ = −1 check. Always verify the product.
5. Forgetting to solve for b in y = mx + b
The slope through (2,3) is 2, but the line is NOT y = 2x — that line passes through (0,0) and (2,4), missing the point entirely. Use b = y − mx = 3 − 2(2) = −1 to get the true line y = 2x − 1.
6. Reading slope from ax + by = c without rewriting
In 3x + 4y = 12 the slope is not 3, not 4, and not 3/4. Divide everything by 4 and isolate y: y = −3/4x + 3, so m = −3/4. The common slip is forgetting to divide the constant: y = −3/4x + 12 is wrong.
Benefits and Limitations
Benefits
- Checks homework instantly: enter two points and verify slope, intercept and equation.
- Exact fraction answers avoid the rounding drift of long decimals.
- The rise-first step ordering teaches the anti-flip habit, not just the answer.
- The built-in point-substitution check catches bad input immediately.
- ax + by = c conversion is shown with every division step, killing mistake #6.
- Responsive on phones, tablets and desktops.
Limitations
- Straight lines only — it does not compute secant or tangent slopes of curves.
- Decimal answers are shown to four places internally; fractions are exact where the input is exact.
- Very large coordinates (above ~10^15) can lose precision in browser floating point.
Quick Definitions
| Question | Direct Answer |
|---|---|
| What is slope? | A number measuring a line's steepness and direction: m = rise/run = (y₂ − y₁)/(x₂ − x₁). |
| What is rise over run? | The definition of slope: how far a line climbs (rise) for each unit it moves sideways (run). For (2,3)–(6,11), rise = 8 and run = 4, so m = 2. |
| What is the y-intercept? | Where the line crosses the y-axis (x = 0); the b in y = mx + b. For y = 2x − 1, the intercept is (0,−1). |
| What is slope-intercept form? | y = mx + b, where m is the slope and b is the y-intercept. Example: y = 3x + 5 has slope 3 and passes through (0,5). |
| What is point-slope form? | y − y₀ = m(x − x₀), the equation built directly from a point and a slope. For (2,3) with m = 2: y − 3 = 2(x − 2), which simplifies to y = 2x − 1. |
| When are two lines parallel? | When their slopes are equal: m₁ = m₂. A line parallel to y = 2x − 1 also has slope 2. |
| When are two lines perpendicular? | When their slopes multiply to −1: m⊥ = −1/m. The perpendicular slope of 2 is −1/2; of −3/4 it is 4/3. |
| What is undefined slope? | The slope of a vertical line, where the run is zero (division by zero). A line through (3,2) and (3,8) is x = 3 — no finite slope exists. |
Frequently Asked Questions
What is the slope of the line through (2,3) and (6,11)?
m = (11 − 3)/(6 − 2) = 8/4 = 2. The y-intercept is 3 − 2×2 = −1, so the line is y = 2x − 1 (check: at x = 6, 2×6 − 1 = 11 ✓).
What is the slope of a vertical line?
Undefined. The run is zero, so rise ÷ run divides by zero. A vertical line through x = 3 is written x = 3 — it cannot be expressed as y = mx + b.
How do you find the slope from y = mx + b?
The slope m is the coefficient of x. For y = 3x + 5: m = 3, the y-intercept is (0,5), and another point on the line is (1, 8).
What is the slope perpendicular to 2?
−1/2. Perpendicular slopes multiply to −1, so m⊥ = −1/2 (check: 2 × (−1/2) = −1 ✓).
What is the slope of 3x + 4y = 12?
Rewrite it as y = −3/4x + 3 (divide everything by 4), so the slope is −3/4. The perpendicular slope is the negative reciprocal: 4/3.
Is a slope of 0 the same as undefined?
No. A slope of 0 is a perfectly flat horizontal line (e.g. y = 5); undefined slope is a vertical line (e.g. x = 3), where the run is zero and no finite slope exists.
Related Math Tools
Slope Calculator Methodology
This calculator derives every answer from the four standard slope relations, using exact decimal arithmetic and converting slopes to fractions where they are exact.
A zero run is detected before any division and reported as an undefined slope with the equation x = x₁. Fractions are produced by continued-fraction approximation with a 10⁻⁹ tolerance and denominators up to 1000. The page is intended as an educational calculator and verification tool.
Mathematical References
Find Your Slope
Enter two points, a line form, or a slope above — and get the exact slope, the equation, and parallel/perpendicular slopes with the full step-by-step working.
Use Slope Calculator