Skip to main content
OhioMathsSyllabus dot point

How do you write the equation of a line from a slope and a point, from two points, or from a graph, and when do you use slope-intercept versus point-slope form?

Write the equation of a line in slope-intercept and point-slope form from a slope and point, two points, or a graph (Ohio A-CED.2, F-IF, F-LE).

An Ohio Algebra I answer on writing equations of lines (A-CED.2): using slope-intercept and point-slope form, finding slope from two points, and writing parallel and perpendicular lines.

Generated by Claude Opus 4.812 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. The two line forms
  3. From two points
  4. Parallel and perpendicular lines
  5. How Ohio examines this topic
  6. Why point-slope is the all-purpose tool
  7. Reading a line off a graph
  8. Try this

What this topic is asking

Ohio standard A-CED.2 asks you to write the equation of a line in two variables from the information you are given: a slope and a point, two points, or a graph. The two forms you need, slope-intercept and point-slope, are both on the reference sheet. This skill sits across the Expressions and Equations and Functions reporting categories and is heavily tested.

The two line forms

Both forms describe the same lines; you pick based on what you are given.

If you are handed the slope and the yy-intercept, slope-intercept is immediate. If you are handed the slope and a point that is not on the yy-axis, point-slope is cleaner, and you can rearrange to slope-intercept afterward.

From two points

When two points are given, the slope comes first.

It does not matter which of the two points you use in point-slope; both give the same final equation.

Parallel and perpendicular lines

The slope encodes direction, so it controls these relationships.

  • Parallel lines never meet and have the same slope. A line parallel to y=2x+1y = 2x + 1 has slope 22.
  • Perpendicular lines meet at a right angle and have slopes that are negative reciprocals: if one slope is mm, the other is βˆ’1m-\dfrac{1}{m}. A line perpendicular to y=2x+1y = 2x + 1 has slope βˆ’12-\dfrac{1}{2}.

To write such a line, take the correct slope and then use a given point with point-slope form.

How Ohio examines this topic

  • Equation response. Type the equation in the requested form (slope-intercept or point-slope).
  • Multiple choice. Pick the correct equation from a graph or from given conditions.
  • Multi-part items. Find a slope, then build the equation, then use it to predict a value.

The reference sheet supplies both forms, so the credit is for choosing and applying the right one.

Why point-slope is the all-purpose tool

Slope-intercept gets the spotlight, but point-slope is the more flexible starting point because it works from any point, not just the yy-intercept. Many problems give you a slope and a point like (2,1)(2, 1) that is not on the yy-axis; forcing slope-intercept here means solving for bb first, an extra step, while point-slope lets you write the line immediately and tidy up afterward. The form simply encodes the definition of slope: yβˆ’y1xβˆ’x1=m\frac{y - y_1}{x - x_1} = m rearranged. Once you are comfortable converting point-slope to slope-intercept by distributing and isolating yy, you can handle every "write the line" prompt with one reliable method and only switch to slope-intercept when the yy-intercept is handed to you directly.

Reading a line off a graph

When the line is given as a graph, recover the two pieces it needs. The yy-intercept is where the line crosses the yy-axis, giving bb directly. The slope is rise over run between two clear lattice points: count the vertical change and divide by the horizontal change, keeping the sign (down-to-the-right is negative). With bb and mm in hand, write y=mx+by = mx + b. This graph-reading skill connects writing equations to interpreting key features of graphs, and it is exactly what a "match the graph to its equation" item checks.

Try this

Q1. Write the line with slope 12\frac{1}{2} through (0,βˆ’3)(0, -3) in slope-intercept form. [2 points]

  • Cue. b=βˆ’3b = -3, so y=12xβˆ’3y = \frac{1}{2}x - 3.

Q2. Write the line through (βˆ’1,4)(-1, 4) and (2,βˆ’2)(2, -2) in slope-intercept form. [2 points]

  • Cue. m=βˆ’2βˆ’42βˆ’(βˆ’1)=βˆ’63=βˆ’2m = \frac{-2 - 4}{2 - (-1)} = \frac{-6}{3} = -2; yβˆ’4=βˆ’2(x+1)y - 4 = -2(x + 1), so y=βˆ’2x+2y = -2x + 2.

Exam-style practice questions

Practice questions written in the style of ODEW exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Ohio Algebra I EOC (style)2 marksEquation response. Write the equation in slope-intercept form of the line through (0,4)(0, 4) with slope βˆ’3-3.
Show worked answer β†’

The equation is y=βˆ’3x+4y = -3x + 4.

Slope-intercept form is y=mx+by = mx + b, where mm is the slope and bb is the yy-intercept. The point (0,4)(0, 4) is the yy-intercept, so b=4b = 4, and the slope is m=βˆ’3m = -3. Substituting gives y=βˆ’3x+4y = -3x + 4. When you are handed the slope and the yy-intercept directly, slope-intercept form is the fastest.

Ohio Algebra I EOC (style)2 marksEquation response. Write the equation of the line through (2,1)(2, 1) and (4,7)(4, 7) in slope-intercept form.
Show worked answer β†’

The equation is y=3xβˆ’5y = 3x - 5.

First find the slope: m=7βˆ’14βˆ’2=62=3m = \dfrac{7 - 1}{4 - 2} = \dfrac{6}{2} = 3. Then use point-slope with (2,1)(2, 1): yβˆ’1=3(xβˆ’2)y - 1 = 3(x - 2), so yβˆ’1=3xβˆ’6y - 1 = 3x - 6, giving y=3xβˆ’5y = 3x - 5. Finding slope from two points, then converting to slope-intercept form, is the standard two-point method.

Related dot points

Sources & how we know this