How To Graph X 4 | Plot The Vertical Line

The graph of x = 4 is a vertical line that passes through every point with an x-coordinate of 4, no matter what the y-value is.

If you’re trying to graph x = 4, the good news is that this is one of the cleanest graphs in algebra. There’s no slope to calculate, no y-intercept to hunt for, and no need to plug in a long list of values. You’re drawing a straight vertical line through the number 4 on the x-axis.

That simple idea trips people up because most early graphing work trains you to think in the form y = mx + b. The equation x = 4 doesn’t fit that pattern. It tells you one thing only: every point on the graph must sit 4 units to the right of the y-axis.

Once that clicks, the graph becomes easy. You pick points where the x-value stays 4, place them on the coordinate plane, and connect them into one straight line.

What X = 4 Means On A Coordinate Plane

In an ordered pair, the first number is x and the second number is y. So in points like (4, 2), (4, 0), and (4, -5), the x-value never changes. Only the y-value moves.

That means all valid points line up in one column. They sit directly above and below each other. On a graph, points stacked this way form a vertical line.

If you need a refresher on how x- and y-values work on the coordinate plane, OpenStax’s rectangular coordinate system lesson lays out the setup clearly.

What The Equation Is Saying

The equation x = 4 means:

  • The x-coordinate must be 4.
  • The y-coordinate can be any real number.
  • Every point that matches that rule belongs on the graph.
  • Any point with x not equal to 4 does not belong on the graph.

So (4, 8) works. (4, -1) works. (3, 8) does not. (5, 0) does not.

How To Graph X 4 On A Coordinate Plane

You can graph x = 4 in a few calm steps.

Step 1: Find 4 On The X-Axis

Start at the origin, where the axes cross. Move right along the x-axis until you reach 4. That location is your anchor.

Step 2: Plot A Few Points With X Equal To 4

Choose any y-values you want. Since x must stay 4, your points might be:

  • (4, 3)
  • (4, 1)
  • (4, 0)
  • (4, -2)
  • (4, -5)

These points will stack in a straight vertical path.

Step 3: Draw The Line Straight Up And Down

Connect the points with one straight line. Extend the line upward and downward across the grid. That full vertical line is the graph of x = 4.

Step 4: Check Your Work

Pick any point on your line. If the first coordinate is 4, you drew it right. If your line leans left or right, it is not correct. If it crosses the x-axis at 4 and then tilts, that is also not correct.

If you want to test it on a digital grid, the Desmos graphing calculator will plot x = 4 right away.

Points That Belong On The Graph

Students often get better at graphing this kind of equation once they see a larger set of valid and invalid points side by side. The pattern jumps out fast.

Point On x = 4? Why
(4, 5) Yes The x-value is 4.
(4, 0) Yes The x-value is 4.
(4, -3) Yes The x-value is 4.
(3, 4) No The x-value is 3, not 4.
(5, 4) No The x-value is 5, not 4.
(0, 4) No The x-value is 0, not 4.
(4, 12) Yes The x-value is 4.
(-4, 4) No The x-value is -4, not 4.

Notice how the y-value changes all over the place in the “yes” rows. That’s the whole point. Y is free to move. X stays locked at 4.

Why The Line Is Vertical

A vertical line forms when all points share one fixed x-value. Since left-to-right position never changes, the graph cannot slant. It rises and drops in one straight path.

This also explains why x = 4 has no y-intercept unless x = 4 happens to pass through the y-axis, which it does not. The y-axis sits at x = 0. Your line sits at x = 4, four units to the right.

It does cross the x-axis, though. That happens when y = 0, so the crossing point is (4, 0).

How It Differs From Y = 4

This mix-up happens all the time:

  • x = 4 is a vertical line.
  • y = 4 is a horizontal line.

With x = 4, the left-to-right position stays fixed. With y = 4, the up-and-down position stays fixed. That one switch changes the whole graph.

Khan Academy’s lesson on vertical and horizontal lines is a nice visual check if you want to compare the two forms on one screen.

Common Mistakes When Graphing X = 4

Most errors come from treating x = 4 like a slope-intercept equation. Here are the slips that show up most often.

Plotting The Point (4, 0) And Stopping

(4, 0) is only one point on the graph. A full graph needs the entire vertical line through that point.

Drawing A Horizontal Line At 4

That would be y = 4, not x = 4. If your line runs left to right, you switched the variable.

Trying To Find Slope

Vertical lines have undefined slope. You don’t need slope to graph x = 4 anyway. The equation already tells you where the line goes.

Choosing Points Like (1, 4), (2, 4), (3, 4)

Those points belong to y = 4 because the y-value stays fixed. For x = 4, the first coordinate must stay fixed.

Mistake What It Produces Correct Fix
Drawing left to right Graph of y = 4 Draw straight up and down through x = 4.
Using points like (1, 4) Wrong line Use points with first coordinate 4, like (4, 1).
Stopping at one point Incomplete graph Extend the line across the full grid.
Searching for a y-intercept Confusion Check the x-axis crossing at (4, 0) instead.

A Fast Way To Recognize This Type Of Equation

Any equation written as x = constant gives a vertical line. The constant tells you where the line sits on the x-axis.

  • x = 1 is a vertical line through 1.
  • x = -2 is a vertical line through -2.
  • x = 4 is a vertical line through 4.
  • x = 0 is the y-axis itself.

Once you spot that pattern, graphing gets much faster. You no longer need to build a value table unless your teacher wants one shown.

When Teachers Want More Than The Line

In classwork, a teacher may want a bit more than the picture. They may ask you to name traits of the graph too. For x = 4, you can say:

  • It is a vertical line.
  • Its x-value is fixed at 4.
  • Its slope is undefined.
  • It crosses the x-axis at (4, 0).
  • It does not cross the y-axis.
  • Its domain is just 4.
  • Its range is all real numbers.

That last pair matters in algebra. Since x never changes, the domain contains one value only. Since y can be any number, the range stretches without end.

Final Check Before You Move On

If you want one clean test, ask yourself this: does every point on my line have x = 4? If yes, you nailed it.

Graphing x = 4 comes down to one rule and one picture. Hold x steady at 4. Let y move wherever it wants. Plot a few matching points. Draw the vertical line through them. That’s it.

References & Sources