Skip to content
ihateDesmos

Graph of y = 3

Updated 6 November 2026 · Values computed by the ihateDesmos engine

The graph of y = 3 is a horizontal line that crosses the y-axis at 3. Every point on it has a y-coordinate of 3, whatever x is, so its slope is 0.

−4−224−220
Open in calculator
The graph of
y=3
for −6 ≤ x ≤ 6. Dots mark where it crosses the axes.

Key features

Domain
All real numbers
Range
y = 3 only
Slope
0
Direction
Horizontal
x-intercept
None: the line never reaches the x-axis
y-intercept
(0, 3)
Derivative
0
Antiderivative
3x + C

Derivative and antiderivative from the calculator’s algebra system. Domain, range and asymptotes are stated for real x.

What the graph of 3 looks like

The equation says y is always 3, and it doesn’t mention x at all. So x can be anything, and the graph runs flat across the whole plane at a height of 3.

Don’t confuse it with x = 3, which is a vertical line. Horizontal lines fix y, and vertical lines fix x. A horizontal line is a function (a constant one), but a vertical line isn’t.

Every horizontal line has a slope of 0, because there is no rise for any amount of run.

Points of interest

Found numerically to about twelve digits in the window −6 ≤ x ≤ 6, then shown in exact form where one exists.

x-intercepts (roots)
None in this window
Local maxima
None in this window
Local minima
None in this window
Inflection points
(−6, 3), (−5.997, 3), (−5.994, 3), (−5.991, 3), (−5.988, 3), (−5.985, 3) … (4001 in view)

Table of values

A few points to plot, with exact values where they are simple.

Values of 3
xy = 3
−23
−13
03
13
23
33

How to graph 3 by hand

  1. 1
    Find 3 on the y-axis.
  2. 2
    Draw a straight horizontal line through that point, running in both directions.
  3. 3
    Add arrows on the ends to show that it continues forever.

Transformations

How the graph moves when you change the formula. The original is 3 in blue.

−4−224−220
  • y = 5 Moved up by 2.
  • y = 1 Moved down by 2.

Common mistakes

  • Drawing a vertical line. That is x = 3.
  • Thinking there is no equation because x is missing. There is: y simply doesn’t depend on x.

Frequently asked questions

Is y = 3 a function?
Yes. It is a constant function: every x gives the same output, 3.
What is the slope of y = 3?
0. A horizontal line has no rise.
Is y = 3 horizontal or vertical?
Horizontal. Vertical lines look like x = 3.

Related graphs

Graph 3 your way

Change the window, add sliders for a, b, h and k, trace the curve with your keyboard, or overlay its derivative.

Open in the calculator