Skip to content
ihateDesmos

Graph of y = 1

Updated 6 November 2026 · Values computed by the ihateDesmos engine

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

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

Key features

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

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

What the graph of 1 looks like

The equation says y is always 1, 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 1.

Don’t confuse it with x = 1, 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, 1), (−5.997, 1), (−5.994, 1), (−5.991, 1), (−5.988, 1), (−5.985, 1) … (4001 in view)

Table of values

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

Values of 1
xy = 1
−21
−11
01
11
21
31

How to graph 1 by hand

  1. 1
    Find 1 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 1 in blue.

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

Common mistakes

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

Frequently asked questions

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

Related graphs

Graph 1 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