Start a free test

The Equation of a Line Through Two Points

SAT Math · Algebra · Updated October 2026

Two points decide a line, so two points are all the SAT needs to give you. The method is always the same: slope first, then the intercept, then a quick check. Students who skip the check are the ones who pick the choice with the right slope and the wrong intercept.

Three steps

Find the slope: $m = \dfrac{y_2 - y_1}{x_2 - x_1}$.

Put either point into $y = mx + b$ to find $b$. Then check that the other point works too. If it does not, the slope is wrong.

Three worked examples

Two points

Write the equation of the line through $(2, 5)$ and $(6, 13)$.

  1. $m = \dfrac{13 - 5}{6 - 2} = 2$.
  2. $5 = 2(2) + b$, so $b = 1$.
  3. $y = 2x + 1$. Check: $2(6) + 1 = 13$.

A function given two values

A linear function has $f(2) = 11$ and $f(6) = 3$. What is $f(0)$?

  1. The points are $(2, 11)$ and $(6, 3)$, so $m = \dfrac{3 - 11}{6 - 2} = -2$.
  2. From $x = 2$ back to $x = 0$ is $2$ steps left, so $f$ goes up by $4$.
  3. $f(0) = 15$.

A table

For $x = 1$, $3$, $5$, the values of $y$ are $6$, $12$, $18$. Write the equation.

  1. $m = \dfrac{12 - 6}{3 - 1} = 3$.
  2. $6 = 3(1) + b$, so $b = 3$.
  3. $y = 3x + 3$. The third row checks: $3(5) + 3 = 18$.

What you will see

A shortcut worth knowing

You do not always need the whole equation. If a question asks for $f(0)$ or for one more value, count steps. Between $(2, 11)$ and $(6, 3)$ the value drops $8$ over $4$ steps, so it drops $2$ for every step of $1$ in $x$. Going back from $x = 2$ to $x = 0$ is two steps, so the value rises by $4$.

I teach students to use both methods on practice questions, then pick whichever is faster on the test. The equation is safer when the numbers are messy. Counting steps is faster when the points are close together and the slope is a whole number.

Mistakes I see often

Practice questions

Check every equation with the second point.

Easy
Which equation represents the line through $(0, 3)$ and $(2, 7)$?
  • A$y = 2x + 3$
  • B$y = 3x + 2$
  • C$y = 2x + 7$
  • D$y = 4x + 3$
Show solution
Answer: A. The slope is $\dfrac{7 - 3}{2} = 2$ and the line crosses the $y$-axis at $3$.
EasyStudent-produced response
What is the slope of the line through $(1, 4)$ and $(3, 10)$?
Enter your answer.
Show solution
Answer: $3$. $\dfrac{10 - 4}{3 - 1} = 3$.
Medium
Which equation represents the line through $(2, 5)$ and $(6, 13)$?
  • A$y = 2x + 1$
  • B$y = 2x + 5$
  • C$y = \dfrac{1}{2}x + 4$
  • D$y = 8x - 11$
Show solution
Answer: A. $m = 2$ and $b = 5 - 4 = 1$. Choice C uses the reciprocal of the slope.
MediumStudent-produced response
A line passes through $(-2, 1)$ and $(4, 10)$. What is the $y$-coordinate of its $y$-intercept?
Enter your answer.
Show solution
Answer: $4$. $m = \dfrac{9}{6} = 1.5$. From $x = -2$ to $x = 0$, $y$ rises $3$, from $1$ to $4$.
Medium
For $x = 1$, $3$ and $5$, the values of $y$ are $6$, $12$ and $18$. Which equation fits the table?
  • A$y = 6x$
  • B$y = 3x + 3$
  • C$y = 2x + 4$
  • D$y = 3x + 6$
Show solution
Answer: B. $m = 3$ and $b = 3$. Choice A fits only the first row.
MediumStudent-produced response
A line passes through $(3, 8)$ and $(7, 8)$. What is the value of $y$ on this line when $x = 100$?
Enter your answer.
Show solution
Answer: $8$. The slope is $0$, so the line is $y = 8$ everywhere.
Hard
Which equation represents the line through $(-3, 2)$ and $(3, -2)$?
  • A$y = -\dfrac{2}{3}x$
  • B$y = -\dfrac{3}{2}x$
  • C$y = \dfrac{2}{3}x$
  • D$y = -\dfrac{2}{3}x + 2$
Show solution
Answer: A. $m = \dfrac{-2 - 2}{3 - (-3)} = -\dfrac{2}{3}$, and the midpoint $(0, 0)$ is on the line, so $b = 0$.
HardStudent-produced response
A line with slope $3$ passes through $(1, k)$ and $(4, 13)$. What is the value of $k$?
Enter your answer.
Show solution
Answer: $4$. $\dfrac{13 - k}{4 - 1} = 3$, so $13 - k = 9$ and $k = 4$.
Hard
A line passes through $(2, 6)$ and $(5, 12)$. What is the $x$-coordinate of its $x$-intercept?
  • A$-2$
  • B$-1$
  • C$1$
  • D$2$
Show solution
Answer: B. $m = 2$ and $b = 2$, so $y = 2x + 2$. Setting $y = 0$ gives $x = -1$. Choice D is the $y$-intercept.
HardStudent-produced response
The function $f$ is linear, with $f(2) = 11$ and $f(6) = 3$. What is the value of $f(0)$?
Enter your answer.
Show solution
Answer: $15$. The slope is $-2$, so moving from $x = 2$ to $x = 0$ adds $4$: $f(0) = 15$.

Find your exact gaps

A free practice test shows which Algebra questions you miss.

Practice this for free
No credit card. Register once, take as many tests as you like.