Slope Calculator: Find Slope from Two Points | Calcrio
Home › Calculators › Slope Calculator
Free • Browser-Based • No Sign-In

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.

Method: Standard slope relations (m = rise/run, y = mx + b, y − y₀ = m(x − x₀), m⊥ = −1/m). Results depend only on the values you enter.
Math Tool

Slope Calculator: Two Points, Line Forms & Perpendicular Slopes

Pick the mode that matches what you know. Calculations run in your browser.

The x-coordinate of the first point.
The y-coordinate of the first point.
The x-coordinate of the second point.
The y-coordinate of the second point.
Tap a preset to load an example.
The coefficient of x in y = mx + b.
Where the line crosses the y-axis.
Tap a preset to load an example.
The x-coordinate of the known point.
The y-coordinate of the known point.
The slope of the line.
Tap a preset to load an example.
A slope — get its parallel and perpendicular slopes.
Tap a preset to load an example.
Coefficient of x.
Coefficient of y.
The constant term.
Or type your own a, b, c — the slope is −a/b.
—
—
—
—
—
—
—
—
—
—
—
—
Enter values and press Calculate.
AI Citation Quick Answer

What Is a Slope Calculator?

Quick Answer: A slope calculator finds a line's steepness as rise over run: m = (y₂−y₁)/(x₂−x₁). For (2,3) and (6,11), rise = 8 and run = 4, so m = 8/4 = 2 and the line is y = 2x − 1. Parallel lines share a slope; perpendicular slopes multiply to −1 (for m = 2, the perpendicular slope is −1/2).

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.

Two PointsEnter (x₁,y₁) and (x₂,y₂) — e.g. (2,3) and (6,11) → slope 2, line y = 2x − 1.
Slope-InterceptEnter m and b for y = mx + b — e.g. m = 3, b = 5 → y = 3x + 5.
Point-SlopeEnter a point and a slope — e.g. (2,3), m = 2 → y − 3 = 2(x − 2) → y = 2x − 1.
Parallel & Perp.Enter a slope — e.g. m = 2 → parallel 2, perpendicular −1/2. Or enter ax + by = c (e.g. 3x + 4y = 12 → slope −3/4, perpendicular 4/3).
  1. Choose a mode that matches what you know about the line.
  2. Enter your values (or tap a preset to load a worked example).
  3. Select Calculate to generate the result cards.
  4. 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.

m = rise / run = (y₂ − y₁) / (x₂ − x₁)

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.

SlopeWhat the Line Looks LikeExample
PositiveClimbs left to rightm = 2: through (2,3) and (6,11), line y = 2x − 1
NegativeFalls left to rightm = −3/4: the line 3x + 4y = 12, i.e. y = −3/4x + 3
ZeroPerfectly flat (horizontal)Through (2,5) and (6,5): m = 0/4 = 0, line y = 5
UndefinedStraight up and down (vertical)Through (3,2) and (3,8): run = 0, so the slope is undefined — the line is x = 3
Key idea: Slope is a rate — "2" means the y-value climbs 2 units for every 1 unit the x-value moves right. That is why m = 2 through (2,3) reaches (6,11): moving right 4 units adds 2 × 4 = 8 to y, and 3 + 8 = 11.

Slope Calculator Worked Examples

Every row below is computed exactly, so you can verify each one by hand.

PointsRiseRunSlope mLine
(2,3) and (6,11)11 − 3 = 86 − 2 = 48/4 = 2y = 2x − 1
(1,2) and (4,8)8 − 2 = 64 − 1 = 36/3 = 2y = 2x
(2,5) and (6,5)5 − 5 = 06 − 2 = 40/4 = 0y = 5 (horizontal)
(3,2) and (3,8)8 − 2 = 63 − 3 = 06/0 = undefinedx = 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.

Why the flip is always wrong: slope answers "how far up per step sideways" — rise is the result, run is the unit. Putting run on top answers the reciprocal question ("how far sideways per step up"), which is 1/m. So if you ever see 1/2 where the rise/run check gives 2, you flipped it.

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.

GivenSlope mParallel SlopePerpendicular Slope
Points (2,3), (6,11)22−1/2 (check: 2 × (−1/2) = −1)
y = 3x + 533−1/3
3x + 4y = 12 (→ y = −3/4x + 3)−3/4−3/44/3 (check: (−3/4) × (4/3) = −1)
Horizontal line y = 500undefined (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).

m = (y₂ − y₁) / (x₂ − x₁)
  1. Label the points: (x₁,y₁) = (2,3), (x₂,y₂) = (6,11).
  2. Find the rise: y₂ − y₁ = 11 − 3 = 8. (Rise first — never the other way.)
  3. Find the run: x₂ − x₁ = 6 − 2 = 4.
  4. Divide: m = 8/4 = 2.
  5. Find the y-intercept b: plug (2,3) and m = 2 into y = mx + b → 3 = 2(2) + b → b = 3 − 4 = −1.
  6. Write the equation: y = 2x − 1.
  7. Check: at x = 6, y = 2(6) − 1 = 11 — the second point. ✓
From standard form: for ax + by = c, solve for y: y = (−a/b)x + c/b. So 3x + 4y = 12 becomes y = −3/4x + 3 — the slope is −3/4 and the y-intercept is 3. Remember to divide the constant too, not just the x-term.

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

Four ways inTwo points, slope-intercept, point-slope, or parallel/perpendicular — one tool covers them all.
Exact fractionsAnswers shown as 2 or −3/4, not just rounded decimals — the form teachers require.
Vertical-line safeZero run is caught and explained as undefined slope instead of crashing or showing 0.

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.
AI Search & Featured Snippet Section

Quick Definitions

QuestionDirect 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.
FAQ

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.

Internal Linking

Related Math Tools

Circle CalculatorA circle's tangent at any point is perpendicular to the radius through it — perpendicular slopes in action.
Pythagorean Theorem CalculatorRise and run are the legs of a right triangle — slope and the hypotenuse formula share the same geometry.
Quadratic Equation CalculatorThe slope between two points on a parabola is a secant line — the stepping stone to derivatives.
Exponent CalculatorSlope-intercept lines become power curves when the exponent changes — compare linear and exponential growth.
Square Root CalculatorThe distance formula pairs slope with distance: rise/run tells direction, √(rise² + run²) tells length.
Methodology

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.

m = rise / run = (y₂ − y₁) / (x₂ − x₁)
y = mx + b    b = y₁ − mx₁
y − y₀ = m(x − x₀)
parallel: m₂ = m₁    perpendicular: m₂ = −1/m₁
ax + by = c  →  y = (−a/b)x + c/b   (slope = −a/b, when b ≠ 0)

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.

Trust note: Every two-point answer carries a substitution check (the second point, or a shifted x, plugged back into the finished equation), and the rise/run flip trap is taught explicitly as rise-first ordering so the common 1/2-for-2 error is never presented as valid.
References

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
Scroll to Top