Writing Linear Equations
Write linear equations in slope-intercept form given a slope and a point, or two points.
Students write linear equations from a slope and point or from two points, using substitution to determine the intercept and verifying both given points.
Lesson plan and worked examples by TEKSForge · not a TEA-issued lesson. Videos by independent educators.
Learn the concept
Find the rate
From two points, calculate with the same subtraction order in numerator and denominator. If x-values are equal, the line is vertical and cannot be written as y=mx+b.
Use a point
Given slope and a point, substitute the point's coordinates into and solve for b. Alternatively use , then simplify. The given point's y-coordinate equals b only when its x-coordinate is zero.
Verify the equation
Substitute both given points into the final equation. A correct line must contain both, not just have the correct slope. In contexts, attach units to the rate and initial value.
Visualize the concept
Original TEKSForge instructional diagrams, designed for this TEKS skill and clearly distinguished from released STAAR artwork.
Study released STAAR visuals
Use the original graphs, tables, and diagrams from released STAAR questions to practice reading labels, values, and relationships before answering the items below.
Released STAAR Algebra I EOC · 2022 · Item 25 · 1 point

Worked example
Write an equation through (2,5) and (6,13).
- Find slope: .
- Use (2,5): , so b=1.
- Write and check the other point: .
Watch the lesson
Texas public-school, Texas educator-created, and TEKS-aligned lessons, hosted by their creators. Each card names its source.
Algebra 1 Writing Linear Equations Given a Point and the Slope
Five Minute Math · Aaron Daffern, Dallas ISDUse a point and slope to write a linear equation in point-slope or slope-intercept form.
Watch on YouTubeAlgebra 1 Writing Linear Equations Given Two Points
Five Minute Math · Aaron Daffern, Dallas ISDCalculate slope from two points, write the equation, and verify both points.
Watch on YouTubeTry it yourself
TEKSForge practice · unscored
1. Write a line with slope −3 through (2,1).
Show answer and reasoning
Substitute: 1=−3(2)+b, so b=7. The intercept is not the point's y-value of 1.
2. Write a line through (1,4) and (3,10).
Show answer and reasoning
Slope is (10−4)/(3−1)=3. Substituting (1,4) yields b=1; both points satisfy the equation.
Released STAAR practice
Texas Education Agency · released EOC items · explanations adapted from TEA rationales. Original graphs, tables, and diagrams are shown where the released item includes one.
Released STAAR Algebra I EOC · 2019 · Item 6 · 1 point
What is the equation in slope-intercept form of the line that passes through the points and ?
Show STAAR answer and explanation
Slope: . Use : , so .
: The slope is right, but the x- and y-coordinates of were swapped when finding b.
: The slope was flipped: run over rise instead of rise over run. Use .
: The slope was flipped. Use change in y over change in x.
Released STAAR Algebra I EOC · 2022 · Item 25 · 1 point

Two points are plotted on the grid. Which equation in slope-intercept form best represents the line that passes through these two points?
Show STAAR answer and explanation
Slope: . Use : , so .
: The slope and y-intercept are mixed up. Find the slope first with rise over run.
: The y-intercept is right, but the slope is not. Recheck .
: The slope and y-intercept were switched. The slope is .
Released STAAR Algebra I EOC · 2021 · Item 6 · 1 point
What is the equation in slope-intercept form of the line that passes through the points and ?
Show STAAR answer and explanation
Slope: . Using gives , so .
: The slope is positive because both x and y increase.
: Both the slope and y-intercept signs are incorrect.
: The slope is correct, but substituting gives .
Released STAAR Algebra I EOC · 2025 · Item 8 · 1 point
What is the equation in slope-intercept form of the line that has a slope of and passes through the point ?
Show STAAR answer and explanation
Substitute the point and into : , so and . The equation is .
: 4 was subtracted from the left side instead of added when solving , giving .
: A sign error when solving for gave .
: 5 and 4 were subtracted instead of added when solving for , giving .
Learning objectives
By the end of the lesson, students can:
- Calculate slope from two coordinate pairs.
- Use a known slope and point to solve for b in .
- Verify that a completed equation contains every given point.
Instructional sequence
- 1
Engage
5 minAsk why knowing only a slope does not identify one unique line.
- 2
Direct instruction
10 minModel , then substitute x, y, and m to solve for b.
- 3
Guided practice
12 minWrite an equation from slope 3 and , then from and , narrating what each substitution accomplishes.
- 4
Independent application
12 minStudents write equations and verify each point by substitution, correcting slope or sign errors before moving on.
- 5
Closure
6 minComplete the exit ticket with a full verification line.
Misconceptions to address
Teacher move: b is the value when x=0; substitute the point's x and y to calculate it.
Teacher move: Keep vertical change over horizontal change and subtract coordinates in a consistent order.

