Algebra

Build slope-intercept form from two points

Two distinct points with different x-coordinates determine one nonvertical line. Their vertical change divided by horizontal change gives the slope, and either point then reveals the intercept.

Author
VibeMath Editorial TeamOriginal AI-assisted lesson content edited for clarity, accessibility, and product-truth accuracy.
Math reviewer
VibeMath Math ReviewIndependent equation, example, substitution, units, scope, and accessibility checks; not a claim of individual human credentials.
Last reviewed

What you will learn

  • Compute slope as vertical change divided by horizontal change with a consistent point order.
  • Substitute a known point into y equals m x plus b to determine the intercept.
  • Verify a line equation by checking that both original points satisfy it.

Build the idea

A line records a constant rate of change. Moving from one known point to another creates a horizontal change and a vertical change, and their ratio is the same for every nonzero horizontal move along that line.

The order used for subtraction does not matter if it is consistent. Reversing both changes reverses both signs, so the quotient remains unchanged. Mixing the point order in only one subtraction creates an incorrect sign.

After the slope is known, the intercept is not guessed from a sketch. Substituting either point into slope-intercept form turns the unknown intercept into a one-step equation, and checking the second point tests the complete result.

A slope triangle between two coordinates

Plot the points two comma three and six comma eleven. A horizontal run of four units and a vertical rise of eight units form a right triangle, so the line rises two units for every one unit moved right.

Visual description: Coordinate plane with points at two comma three and six comma eleven connected by a line, plus a slope triangle showing run four and rise eight.
Read as: The slope equals the quantity eleven minus three divided by the quantity six minus two, which equals two.
Read as: y equals two x minus one.

Worked example

Problem

Find the equation of the line through the points two comma three and six comma eleven, then verify the equation using both coordinates.

Strategy

Calculate the slope from paired coordinate differences, substitute the first point to solve for b, and test the finished equation at both x-values.

  1. Step 1

    Subtract y-coordinates and x-coordinates in the same order. The rise is eight and the run is four, so the constant rate of change is two.

    Read as: m equals eight fourths, which equals two.
  2. Step 2

    Insert x equals two, y equals three, and m equals two into slope-intercept form. Solving three equals four plus b gives b equals negative one.

    Read as: Three equals two times two plus b, so b equals negative one.
  3. Step 3

    Combine the slope and intercept in one equation. The coefficient two describes the rise per unit run, while negative one is the y-value when x is zero.

    Read as: y equals two x minus one.

Answer and verification

The line through the two points is y equals two x minus one.

At x equals two the formula gives three, and at x equals six it gives eleven. Both original points satisfy the same equation, so the slope and intercept are consistent.

Common mistakes

  • Subtracting x-coordinates in one order and y-coordinates in the opposite order.

    Label the points first and use the same second-minus-first order in both numerator and denominator; otherwise the slope sign is reversed.

  • Treating the slope as the intercept and writing y equals two x plus two.

    Slope and intercept describe different features. Substitute a known point to calculate b instead of copying the slope into both positions.

Try it yourself

Find the slope-intercept equation through negative one comma four and three comma negative four, then check both points.

Show hint

The vertical change is negative eight while the horizontal change is four; use one point to determine b.

Show answer

The slope is negative two and the intercept is two, so the equation is y equals negative two x plus two.

Accessible lesson transcript

This reviewed reading order covers the lesson explanation, equations, example, and checks without claiming that a video exists.

  1. Part 1

    Lesson overview

    Two distinct points with different x-coordinates determine one nonvertical line. Their vertical change divided by horizontal change gives the slope, and either point then reveals the intercept. A line records a constant rate of change. Moving from one known point to another creates a horizontal change and a vertical change, and their ratio is the same for every nonzero horizontal move along that line. Compute slope as vertical change divided by horizontal change with a consistent point order.

  2. Part 2

    Visual model and equations

    The order used for subtraction does not matter if it is consistent. Reversing both changes reverses both signs, so the quotient remains unchanged. Mixing the point order in only one subtraction creates an incorrect sign. Plot the points two comma three and six comma eleven. A horizontal run of four units and a vertical rise of eight units form a right triangle, so the line rises two units for every one unit moved right. The slope equals the quantity eleven minus three divided by the quantity six minus two, which equals two. y equals two x minus one.

  3. Part 3

    Worked example

    Find the equation of the line through the points two comma three and six comma eleven, then verify the equation using both coordinates. Calculate the slope from paired coordinate differences, substitute the first point to solve for b, and test the finished equation at both x-values. Subtract y-coordinates and x-coordinates in the same order. The rise is eight and the run is four, so the constant rate of change is two. Insert x equals two, y equals three, and m equals two into slope-intercept form. Solving three equals four plus b gives b equals negative one. Combine the slope and intercept in one equation. The coefficient two describes the rise per unit run, while negative one is the y-value when x is zero. The line through the two points is y equals two x minus one. At x equals two the formula gives three, and at x equals six it gives eleven. Both original points satisfy the same equation, so the slope and intercept are consistent.

  4. Part 4

    Checks, practice, and scope

    After the slope is known, the intercept is not guessed from a sketch. Substituting either point into slope-intercept form turns the unknown intercept into a one-step equation, and checking the second point tests the complete result. Subtracting x-coordinates in one order and y-coordinates in the opposite order. Label the points first and use the same second-minus-first order in both numerator and denominator; otherwise the slope sign is reversed. Treating the slope as the intercept and writing y equals two x plus two. Slope and intercept describe different features. Substitute a known point to calculate b instead of copying the slope into both positions. Find the slope-intercept equation through negative one comma four and three comma negative four, then check both points. The vertical change is negative eight while the horizontal change is four; use one point to determine b. The slope is negative two and the intercept is two, so the equation is y equals negative two x plus two. Consistent coordinate subtraction preserves the correct slope sign. A known point converts the unknown intercept into a solvable equation. Checking both points verifies the complete line rather than only one parameter. This method assumes the two points have different x-coordinates; a vertical line has undefined slope and cannot use y equals m x plus b. The lesson addresses exact coordinates and does not estimate a best-fit line from noisy statistical data.

Scope and limitations

  • This method assumes the two points have different x-coordinates; a vertical line has undefined slope and cannot use y equals m x plus b.
  • The lesson addresses exact coordinates and does not estimate a best-fit line from noisy statistical data.