How To Graph y = 5 | Draw The Horizontal Line Cleanly

Plot a horizontal line across the grid at y = 5, crossing the y-axis at 5 and staying level for every x-value.

If this equation looks too short to graph, that’s the whole trick. A lot of students expect a slope, an x-term, or a table full of calculations. This one is simpler than it looks. The equation y = 5 fixes the y-value at 5 for every point on the graph.

That means your line does not rise, fall, or tilt. It stays flat all the way across. Once you spot that pattern, graphing it takes less than a minute, and you can spot the same pattern again in equations like y = 2, y = -3, or y = 1/2.

This page walks through the exact steps, shows what points belong on the line, and clears up the mix-up between y = 5 and x = 5. That mix-up is common, so you’re not alone if that’s what sent you here.

How To Graph y = 5 On Paper Step By Step

Start with a standard coordinate plane. Find the y-axis first. That is the vertical axis in the center of the grid. Then find the tick mark labeled 5 on that axis.

Now place a point at (0, 5). This point matters because it sits on the y-axis and shows where the line crosses it. From there, your next move is simple: keep the y-value at 5 while changing x.

Pick a few x-values like -4, -2, 0, 2, and 4. For each one, the y-value stays 5, so your points are:

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

Plot those points. You’ll see they line up in one straight row. Draw a straight horizontal line through them, then extend it to both sides of the grid with arrows.

That’s the full graph.

Why The Line Stays Flat

In the equation y = 5, there is no x-term. So x can be any number at all, and the y-value still stays 5. Every valid point has the same height on the graph.

When every point has the same y-value, the graph is horizontal. OpenStax teaches this same pattern in its prealgebra graphing section, where horizontal lines are written in the form y = b and pass through the y-axis at that value. OpenStax Prealgebra 2e, Section 11.2 is a clean reference if you want to see the rule in a textbook layout.

What The Graph Tells You At A Glance

Once the line is on the grid, you can read a lot from it right away. The y-intercept is 5, because the line crosses the y-axis at (0, 5). The slope is 0, because the line does not move up or down as you go left or right.

This also means the line is a constant function. The output never changes. No matter what x you choose, the answer stays 5.

Graphing Y Equals 5 On A Coordinate Plane Without Guessing

Some students try to sketch this line by eye and then wonder if they placed it one square too high or too low. The fix is easy: anchor the graph with points before drawing the line.

Use this routine every time:

  1. Read the equation and spot the fixed value (here, 5).
  2. Plot the y-intercept at (0, 5).
  3. Add two or more points with different x-values and the same y-value.
  4. Draw the line straight across.

This routine also helps on quizzes because it cuts down on small mistakes. Even if your ruler slips a bit, the plotted points show where the line belongs.

Point Table For y = 5

A table is not required for this equation, but it’s a good habit while learning. It shows the pattern in a way your eyes can catch fast.

X-Value Y-Value Point To Plot
-5 5 (-5, 5)
-3 5 (-3, 5)
-1 5 (-1, 5)
0 5 (0, 5)
1 5 (1, 5)
3 5 (3, 5)
5 5 (5, 5)
8 5 (8, 5)

The x-values change in every row. The y-value does not move. That repeated 5 is the whole story of the graph.

How This Looks On A Graphing Calculator

If your class allows a graphing tool, type y=5 into the equation entry line and press graph. You should see a flat line crossing the y-axis at 5. If the line is not visible, your window settings may be the issue, not the equation.

Set your y-range so it includes 5. A window such as y-min = -10 and y-max = 10 works well. Khan Academy’s horizontal and vertical lines lesson is also useful for seeing how these equations behave on a graph and how the slope reads from the picture. Khan Academy’s horizontal and vertical lines lesson gives a clear visual walkthrough.

Common Mix-Up: y = 5 Vs x = 5

This is the mistake that shows up most. The equations look close, though their graphs are different.

y = 5 is a horizontal line. x = 5 is a vertical line. One stays level across the page. The other goes straight up and down.

A simple way to lock it in:

  • y = constant → horizontal line
  • x = constant → vertical line

Say it out loud while you graph. It sticks faster than trying to memorize a rule from a chart.

Why Students Flip Them By Accident

The number 5 feels like “go to 5 on the x-axis” because people scan left to right. On a graph, you need to read the variable first. The variable tells you which coordinate is fixed.

In y = 5, the second coordinate is fixed at 5. In x = 5, the first coordinate is fixed at 5.

That one shift changes the whole line direction.

How To Check Your Graph In Ten Seconds

After you draw the line, do a quick check before you move on. This saves points on tests.

Fast Check Method

  1. Pick any point on your line, like (3, 5).
  2. Plug it into the equation.
  3. Check whether the y-value is 5.

If the point has y = 5, it fits. If your line includes a point like (3, 4), the graph is off by one square.

Also check the line direction. It must be flat. If it tilts up or down, you graphed a different equation.

What The Slope Should Be

The slope of y = 5 is 0. You can see this on the graph: moving left or right gives no change in y. No rise means slope 0.

That makes this equation a clean example of a horizontal line in slope form thinking, even though the equation is not written as y = mx + b. If you rewrite it mentally, it is y = 0x + 5.

Student Error What It Looks Like Fix
Drew a vertical line Line passes through x = 5 Switch to points with y = 5, like (0,5) and (4,5)
Drew a slanted line Y-value changes as x changes Keep every plotted point at the same height
Placed line at y = -5 Line is below the x-axis Start at the positive 5 mark on the y-axis
Missed the y-axis label Line is one square off Mark (0,5) first before drawing anything else
Skipped arrows Line looks like a short segment Extend both ends to show it goes on forever
Used only one point Hard to draw straight Plot at least 3 points on y = 5

How To Graph y = 5 In Different Class Formats

The graph stays the same, though teachers may ask for different work shown. Here’s how to match the format without changing the math.

If Your Teacher Wants A Table

Make a two-column table with x and y. Pick any x-values. Write 5 in every y-row. Then plot the points and draw the horizontal line.

This format is common in prealgebra and early algebra because it trains you to connect equations, points, and graphs.

If Your Teacher Wants Intercepts

You can name the y-intercept right away: (0, 5). The x-intercept does not exist because the line never touches the x-axis. It runs parallel to it.

If your class has not covered “no x-intercept” yet, your teacher may accept “none” or “does not cross the x-axis.”

If Your Teacher Wants Slope-Intercept Form

You can write the equation as y = 0x + 5. This shows:

  • Slope = 0
  • Y-intercept = 5

That form also helps when you compare y = 5 with other lines. A line like y = 2x + 5 shares the same y-intercept, though it tilts because the slope is 2 instead of 0.

Practice Pattern You Can Reuse

Once you graph this one, you can graph any equation in the form y = b the same way. The number changes, though the motion on the graph does not. You always draw a horizontal line at that y-value.

Try these on your own grid:

  • y = 1
  • y = -2
  • y = 7

Each line will be flat. The only change is the height.

One More Mental Trick

Think of the graph as a shelf sitting at height 5. You can move left or right along the shelf, and your height does not change. That picture helps when the grid feels busy.

If your graph does not look like a flat shelf across the page, pause and check your points. Every point should end with , 5).

What To Write On A Test For Full Credit

If you need words along with the graph, a short explanation can earn the method points:

“Since y is always 5, I plotted points with y = 5, such as (0,5), (2,5), and (-2,5), then drew a horizontal line through them.”

That line is clear, direct, and matches the graph. It shows your teacher you know why the line is horizontal, not just what it looks like.

After a few reps, How To Graph y = 5 turns into one of the fastest questions on the page. Spot the fixed y-value, plot a few points, draw the flat line, and move on.

References & Sources