Graphing Lines

Graphing a linear equation means plotting the straight line that represents all solutions to that equation. Every linear equation can be written in three forms — slope-intercept, point-slope, and standard — and each form is most useful in a different situation. This guide covers slope, all three forms, and the specific errors that cost students the most points on MyMathLab, ALEKS, and Hawkes Learning.

Graphing Lines at a Glance

Slope: m = (y&sub2; − y&sub1;) / (x&sub2; − x&sub1;) — rise over run. Positive rises, negative falls, zero is horizontal, undefined is vertical.

Slope-intercept form: y = mx + b — read slope and y-intercept directly. Easiest form for graphing.

Point-slope form: y − y&sub1; = m(x − x&sub1;) — use when you have a point and a slope. Best for writing equations.

Standard form: Ax + By = C — use when finding intercepts or setting up systems. Convert to slope-intercept to graph.



1) What a Linear Equation Is

A linear equation is any equation whose graph is a straight line. It contains no exponents higher than 1 — no x², no x³, no square roots of x. Every point on the line is a solution to the equation, and every solution plots onto the line. The relationship between x and y is constant throughout: for every unit you move right, you move the same number of units up or down.

Linear equations appear in three standard forms. Each form contains the same information but arranges it differently. Choosing the right form depends on what you are given and what the problem asks for. The comparison card below shows all three forms side by side.

Three-card comparison of linear equation forms. Card 1: slope-intercept form y equals mx plus b. m is slope, b is y-intercept. Best for graphing quickly. Example: y equals 2x plus 3, slope 2, y-intercept at 0 comma 3. Card 2: point-slope form y minus y-sub-1 equals m times open paren x minus x-sub-1 close paren. Best for writing equations when a point and slope are known. Example: y minus 1 equals 3 times open paren x minus 2 close paren. Card 3: standard form Ax plus By equals C with integer coefficients. Best for finding intercepts and setting up systems. Example: 3x plus 2y equals 12. Bottom bar: slope-intercept easiest to graph, point-slope easiest to write, standard easiest for intercepts.
All three forms represent the same line — they are different ways of writing the same equation. You can convert between any two forms with algebra.

Back to Top



2) Slope

Slope measures how steep a line is and in which direction it goes. It is defined as rise over run — the vertical change divided by the horizontal change between any two points on the line. Slope is always calculated the same way regardless of which two points you choose, because a line has constant steepness throughout.

The slope formula

Given two points (x&sub1;, y&sub1;) and (x&sub2;, y&sub2;), slope is:

m = (y&sub2; − y&sub1;) / (x&sub2; − x&sub1;)

The subscripts 1 and 2 just label which point is which. It does not matter which point you call (x&sub1;, y&sub1;) as long as you are consistent — the same point must be subtracted from in both the numerator and denominator.

Worked example: calculating slope from two points

Find the slope through (1, 3) and (4, 9).

m = (9 – 3) / (4 – 1) = 6 / 3 = 2

Slope = 2. For every 1 unit right, the line goes 2 units up.

Worked example: negative slope

Find the slope through (2, 7) and (5, 1).

m = (1 – 7) / (5 – 2) = -6 / 3 = -2

Slope = -2. For every 1 unit right, the line goes 2 units down.

Four types of slope

Slope falls into four categories based on its sign and whether it exists at all. The visual below shows what each type looks like on a coordinate grid.

Four coordinate grid panels showing slope types. Panel 1: positive slope — line rises from left to right, rise and run both positive, m greater than zero, example m equals 2. Panel 2: negative slope — line falls from left to right, rise is negative, m less than zero, example m equals negative 2. Panel 3: zero slope — horizontal line, rise equals zero, m equals 0, example y equals 3. Panel 4: undefined slope — vertical line, run equals zero causing division by zero, m is undefined, example x equals 4.
Zero slope and undefined slope are the most confused pair on exams. Zero slope means the line is horizontal and y is constant. Undefined slope means the line is vertical and x is constant — dividing by zero run has no defined value.
✗ Wrong: “The slope of y = 4 is undefined.” y = 4 is horizontal — slope is 0, not undefined.

✓ Correct: y = 4 has slope 0. x = 4 has undefined slope. Horizontal = zero. Vertical = undefined.

Back to Top



3) Slope-Intercept Form

Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept. It is the most common form for graphing because both pieces of information you need — where to start and how steep to go — are visible directly from the equation without any calculation.

How to graph from slope-intercept form

The process is three steps: plot the y-intercept at (0, b), use the slope to find a second point by moving rise units vertically and run units horizontally, then draw the line through both points.

Graph: y = (3/4)x – 2

Step 1 — Identify m and b: m = 3/4, b = -2
Step 2 — Plot y-intercept: (0, -2)
Step 3 — Apply slope: rise 3, run 4 → next point at (4, 1)
Step 4 — Draw the line through (0, -2) and (4, 1)

Identifying slope and intercept when the equation is rearranged

Not every equation arrives in y = mx + b form. If variables appear on both sides or the equation is in a different form, solve for y first.

Find slope and y-intercept: 2y = -6x + 8

Divide both sides by 2: y = -3x + 4
Slope = -3, y-intercept = (0, 4)

The equation must be solved for y before reading off m and b.

Parallel and perpendicular lines

Parallel lines have equal slopes. Perpendicular lines have slopes that are negative reciprocals: if one line has slope m, a perpendicular line has slope −1/m. For example, if one line has slope 2/3, a perpendicular line has slope −3/2. This appears frequently on ALEKS and MyMathLab in writing-equations problems.

Back to Top



4) Point-Slope Form

Point-slope form is y − y&sub1; = m(x − x&sub1;). It is used primarily for writing the equation of a line when a point and the slope are known — or when two points are given and you calculate slope first. Most problems that ask you to “write an equation” are best handled with point-slope form.

Writing an equation from a point and slope

Write the equation through (3, -1) with slope 4.

Substitute into y – y₁ = m(x – x₁):
y – (-1) = 4(x – 3)
y + 1 = 4x – 12
y = 4x – 13 ← slope-intercept form

Writing an equation from two points

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

Step 1 — Find slope: m = (13 – 5) / (6 – 2) = 8/4 = 2
Step 2 — Use either point in point-slope form (using (2, 5)):
y – 5 = 2(x – 2)
y – 5 = 2x – 4
y = 2x + 1

✗ Wrong: y − (−1) = y − 1. When y&sub1; is negative, subtracting it creates addition.

✓ Correct: y − (−1) = y + 1. Subtracting a negative is adding a positive.

Back to Top



5) Standard Form

Standard form is Ax + By = C, where A, B, and C are integers and A is positive. It is less convenient for graphing directly but is the required form on many problems and is the natural setup for systems of equations. To graph from standard form, either convert to slope-intercept form or find both intercepts.

Finding intercepts from standard form

The x-intercept is where y = 0. The y-intercept is where x = 0. Substituting each into standard form is faster than converting the whole equation.

Graph: 4x + 3y = 24

x-intercept (set y = 0): 4x = 24 → x = 6 → point (6, 0)
y-intercept (set x = 0): 3y = 24 → y = 8 → point (0, 8)

Plot (6, 0) and (0, 8), draw the line.

Converting standard form to slope-intercept

Convert 5x – 2y = 10 to slope-intercept form.

Subtract 5x from both sides: -2y = -5x + 10
Divide by -2: y = (5/2)x – 5

Slope = 5/2, y-intercept = (0, -5)

Back to Top



6) Where Students Lose Points

Graphing line errors cluster around five consistent mistakes across MyMathLab, ALEKS, Hawkes Learning, and Knewton Alta.

Sign errors in the slope formula

The slope formula subtracts y-values and x-values in the same order. Mixing up which point is subtracted from which — or subtracting y values in one order and x values in the other — produces the wrong sign on the slope.

✗ Wrong: Points (1,3) and (4,9): m = (4−1)/(9−3) = 3/6 = 1/2. x and y were swapped.

✓ Correct: m = (9−3)/(4−1) = 6/3 = 2. y change over x change — always.

Confusing zero slope and undefined slope

Zero slope belongs to horizontal lines (y = constant). Undefined slope belongs to vertical lines (x = constant). These are the most swapped answers on this unit.

✗ Wrong: “x = 5 has a slope of 0.” x = 5 is vertical — its slope is undefined.

✓ Correct: x = 5 → undefined slope. y = 5 → slope of 0.

Plotting the y-intercept incorrectly

The y-intercept b is a y-value, not an x-value. It plots at (0, b) on the y-axis. Students who plot it at (b, 0) on the x-axis get every subsequent point wrong.

✗ Wrong: For y = 2x + 3, plotting the y-intercept at (3, 0).

✓ Correct: y-intercept is (0, 3). It is on the y-axis, not the x-axis.

Applying slope in the wrong direction for negative slopes

A slope of −3/4 means down 3 and right 4. Students who move down 3 and left 4 — or up 3 and right 4 — get a line with the correct steepness but the wrong direction.

✗ Wrong: m = −3/4 plotted as up 3 right 4. That gives slope +3/4, not −3/4.

✓ Correct: m = −3/4 means down 3, right 4 — or equivalently up 3, left 4.

Forgetting to solve for y before reading slope and intercept

m and b can only be read directly from y = mx + b. Any other form requires rearranging first. Reading slope and intercept from standard form or an unsolved equation produces wrong values.

✗ Wrong: From 3x + 2y = 6, reading slope as 3 and intercept as 6.

✓ Correct: Solve for y first: y = −(3/2)x + 3. Slope = −3/2, y-intercept = (0, 3).

Back to Top



7) How FMMC Can Help

Graphing lines and linear equations appear throughout every algebra course on MyMathLab, ALEKS, Hawkes Learning, Knewton Alta, Sophia Learning, and WebAssign. If this unit is holding up your grade, FMMC handles every assignment with an A/B guarantee.

Algebra Homework

Every graphing and linear equations module handled accurately and on time. See our algebra homework help page.

Proctored Exams

Algebra exams on Honorlock and Respondus supported. See our proctored exam page.

Full Course Help

Week 1 through final exam. A or B guaranteed — see our guarantee.

Graphing unit coming up or already behind? Tell us your course, platform, and next due date.

Get Help Now →

Other guides in this series

Exponent Rules  • 
Factoring  • 
Solving Quadratic Equations  • 
Algebra Homework Help

Back to Top



FAQ: Graphing Lines

What are the three forms of a linear equation?

The three forms are slope-intercept (y = mx + b), point-slope (y − y&sub1; = m(x − x&sub1;)), and standard form (Ax + By = C). All three represent the same line and can be converted into each other. Slope-intercept is easiest to graph, point-slope is easiest to write from given information, and standard form is most useful for finding intercepts and setting up systems.

What is slope and how do you calculate it?

Slope is rise over run — the vertical change divided by the horizontal change between two points on a line. The formula is m = (y&sub2; − y&sub1;) / (x&sub2; − x&sub1;). The result tells you how steep the line is and in what direction: positive slopes rise left to right, negative slopes fall, zero slope is horizontal, and undefined slope is vertical.

What is the difference between zero slope and undefined slope?

Zero slope means the line is horizontal — it has no rise. y = 4 is an example. Undefined slope means the line is vertical — it has no run, and dividing by zero run has no defined value. x = 4 is an example. These are the most commonly confused slope types on algebra exams.

How do you graph a line in slope-intercept form?

Plot the y-intercept at (0, b) on the y-axis. Then use the slope m = rise/run to find a second point: move up or down by the rise and right by the run. Draw the line through both points. For example, y = (3/4)x − 2: plot (0, −2), then move up 3 and right 4 to (4, 1), and draw the line.

When should I use point-slope form instead of slope-intercept?

Use point-slope form when writing the equation of a line from a given point and slope, or from two given points. It lets you plug in values immediately without finding the y-intercept first. Once you have the point-slope equation, you can convert to slope-intercept by distributing and solving for y.

How do you find the slope of parallel and perpendicular lines?

Parallel lines have identical slopes. Perpendicular lines have slopes that are negative reciprocals of each other: if one line has slope m, a perpendicular line has slope −1/m. For example, a line with slope 3 is perpendicular to a line with slope −1/3.

Can FMMC help with graphing lines homework on MyMathLab or ALEKS?

Yes. FMMC handles algebra homework, quizzes, and proctored exams across MyMathLab, ALEKS, Hawkes Learning, and more. See our algebra homework help page or get a free quote.

Back to Top

Graphing Unit Holding Up Your Grade?

Tell us your course, platform, and next due date. FMMC’s algebra experts handle every assignment — A/B guaranteed or your money back.

Get Your Free Quote

Or email: info@finishmymathclass.com  •  A/B Guarantee  •  Algebra Help