What Is a Linear Equation?
A linear equation is any equation whose graph is a straight line. The most common forms are slope-intercept form y = mx + b, standard form Ax + By = C, and point-slope form y - y₁ = m(x - x₁).
Why Linear Equations Matter
Understanding linear equations is foundational because they model countless real-world relationships: distance versus time at constant speed, cost versus quantity at a fixed unit price, and temperature conversions like F = 9/5 C + 32. Before you can analyze these relationships, you need to be able to take any linear equation, recognize its form, and translate it into a graph.
Once you can visualize the line, concepts like rate of change, breakeven points, and solution sets become much more intuitive. Linear equations also appear in systems of equations, inequalities, and linear programming, so mastering this topic pays dividends throughout algebra and beyond.
Graphing with Slope and Y-Intercept
The fastest way to graph a linear equation is to use slope-intercept form: y = mx + b.
(0, b). The coefficient m is the slope, which tells you how much y changes for each unit increase in x.Understanding Slope as Rise Over Run
Slope is often described as "rise over run." A slope of m = 2/3 means the line goes up 2 units for every 3 units to the right. A negative slope means the line falls as you move right.
- Plot the y-intercept
Start by plotting the y-intercept on the coordinate plane.
- Use the slope to find a second point
From that point, use the slope to find a second point: move right by the denominator (the run) and up or down by the numerator (the rise).
- Draw the line
Plot that second point, then draw a straight line through both points and extend it in both directions.
To graph y = -2x + 5:
Plot (0, 5).
Move right 1 and down 2 to plot (1, 3).
Connect the dots with a line and you are done.
If you want to verify your graph, try plugging another x-value into the equation and checking that the resulting point falls on your line.Graphing with X and Y Intercepts
When an equation is in standard form Ax + By = C, the intercept method is often the most efficient graphing approach.
y = 0 and solving for x. The y-intercept is where the line crosses the y-axis, found by setting x = 0 and solving for y. Once you have both intercepts, plot them and draw a line through them.Graph 3x + 4y = 12.
Set y = 0: 3x = 12, so x = 4. The x-intercept is (4, 0).
Set x = 0: 4y = 12, so y = 3. The y-intercept is (0, 3).
Plot both points and connect them.
Plugging in x = 2 gives 6 + 4y = 12, so y = 1.5. The point (2, 1.5) should lie on your line.It is good practice to find a third checkpoint to make sure your line is correct. If it does not lie on your line, recheck your arithmetic. This method works beautifully for equations with integer coefficients because the intercepts are often clean numbers, making the graph easy to plot accurately on graph paper.
Horizontal and Vertical Lines
Two special cases of linear equations often confuse students: horizontal lines and vertical lines.
y = k, where k is a constant. Every point on the line has the same y-coordinate, so the line is flat. The slope of a horizontal line is 0 because there is no vertical change as you move along the line. Examples include y = 3, y = -1, and y = 0 (which is the x-axis itself).x = h, where h is a constant. Every point on the line has the same x-coordinate. The slope of a vertical line is undefined because you would be dividing by zero (there is no horizontal change). Examples include x = 4, x = -2, and x = 0 (the y-axis).| Line Type | Equation | Slope | Is It a Function? |
|---|---|---|---|
| Horizontal | y = k | 0 | Yes — every x-value produces exactly one y-value. |
| Vertical | x = h | undefined | No — fails the vertical line test; a single x-value maps to infinitely many y-values. |
Recognizing these two special forms instantly tells you what the graph looks like without any calculation.
Worked Examples
Graph y = (1/2)x - 3.
The y-intercept is (0, -3).
The slope is 1/2, so from (0, -3) go right 2 and up 1 to reach (2, -2).
Draw the line through both points.
Graph 2x - 5y = 10.
Set y = 0: x = 5, giving (5, 0).
Set x = 0: y = -2, giving (0, -2).
Plot and connect.
A table of values shows (1, 4), (3, 10), (5, 16). Find the equation and graph.
The slope is (10 - 4)/(3 - 1) = 3.
Using point-slope form with (1, 4): y - 4 = 3(x - 1), which simplifies to y = 3x + 1.
Plot the y-intercept (0, 1) and use slope 3 (up 3, right 1) to graph.
y = 3x + 1Graph x = -3.
This is a vertical line passing through every point where x = -3.
Draw a straight vertical line at x = -3.
If you want to check your solutions or explore more problems, try entering your equation in Solver AI — it will plot the line and walk you through each step.
Common Graphing Mistakes
Even experienced students make avoidable errors when graphing linear equations.
If the slope is 3/4, the rise is 3 and the run is 4, not the other way around. Always remember slope = rise / run = change in y / change in x.
A slope of -2 means the line goes down 2 for every 1 unit to the right. Students sometimes plot the rise as positive and end up with a line sloping the wrong way.
The x-intercept is a point on the x-axis with coordinates (a, 0), while the y-intercept is on the y-axis with coordinates (0, b). Plotting them on the wrong axes flips your entire line.
Before graphing, always isolate y if possible. An equation like 6x + 2y = 8 is easier to graph after simplifying to y = -3x + 4.
While two points define a line, plotting a third checkpoint catches arithmetic errors before you finalize your graph.
Building these habits now prevents frustration on exams. Whenever you are unsure about a graph, Solver AI can verify your work by generating an accurate plot with labeled intercepts and slope.