How to Graph x-y=5- Step-by-Step Guide
What Is x - y = 5?
It's a linear equation. Two variables, one relationship, and a straight line when you graph it. That's all you're dealing with here.
The goal is to find coordinate pairs (x, y) that satisfy the equation, then plot them on a coordinate plane. Once you have two points, you draw a line through them. Done.
Step 1: Rearrange Into Slope-Intercept Form
Most people find it easier to work with y = mx + b format. So isolate y.
Starting with x - y = 5:
- Subtract x from both sides: -y = 5 - x
- Multiply everything by -1: y = x - 5
Now you have y = x - 5. This tells you the line crosses the y-axis at -5, and for every unit you move right on the x-axis, y increases by 1.
Step 2: Find at Least Two Points
Pick x-values and solve for y. Pick numbers that make your life easy—zeros, positives, small integers.
Point 1: When x = 0
y = 0 - 5 = -5
First point: (0, -5)
Point 2: When x = 5
y = 5 - 5 = 0
Second point: (5, 0)
Point 3: When x = -3
y = -3 - 5 = -8
Third point (optional, for accuracy): (-3, -8)
Step 3: Plot the Points
On your coordinate plane:
- Find x = 0 on the horizontal axis, go down to y = -5, and place a dot
- Find x = 5 on the horizontal axis, go to y = 0, and place a dot
- Find x = -3, go down to y = -8, and place a dot
All three should fall in a straight line. If they don't, you made a calculation error.
Step 4: Draw the Line
Take a ruler. Connect the dots. Extend the line across the entire grid. Add arrows at both ends—this signals the line continues infinitely.
Alternative Method: Intercept Form
You can also graph x - y = 5 by finding where the line crosses each axis.
Finding the x-intercept
Set y = 0, then solve: x - 0 = 5, so x = 5. Point: (5, 0)
Finding the y-intercept
Set x = 0, then solve: 0 - y = 5, so y = -5. Point: (0, -5)
Two intercepts. Two points. One line. Same result.
Quick Comparison: Methods for Graphing x - y = 5
| Method | Process | Best For |
|---|---|---|
| Slope-intercept | Rearrange to y = x - 5, pick x-values, calculate y | Understanding slope and y-intercept |
| Intercepts only | Set x=0 to get y-intercept, set y=0 to get x-intercept | Quick graphing when you only need two points |
| Table of values | Create a table with multiple x-values, calculate corresponding y-values | Checking accuracy, curved lines, or more complex equations |
Common Mistakes
- Forgetting to flip signs when isolating y. -y = 5 - x becomes y = x - 5, not y = -x - 5.
- Plotting (x, y) as (y, x). Horizontal axis is always x, vertical axis is always y.
- Drawing a line segment instead of a full line. Linear equations extend infinitely—use arrows.
Getting Started: Your Action Steps
- Write the equation: x - y = 5
- Rearrange to isolate y: y = x - 5
- Choose x = 0 → find y = -5. Mark point (0, -5)
- Choose x = 5 → find y = 0. Mark point (5, 0)
- Draw a straight line through both points
That's it. Five minutes, maybe less. The equation x - y = 5 graphs as a straight line running diagonally through the coordinate plane, crossing the x-axis at (5, 0) and the y-axis at (0, -5).