Curious Minds

Clear answers to science and history questions

What Is on the Y Axis? Graph Basics Explained

· 6 min read · Science

The y-axis is the vertical axis on a two-dimensional graph. In the standard Cartesian coordinate system, it is the line that runs up and down, perpendicular to the horizontal x-axis. The y-axis represents the second coordinate in an ordered pair (x, y), and its values increase as you move upward from the origin and decrease as you move downward. In most graphs, the y-axis shows the dependent variable—the quantity that changes in response to the independent variable plotted on the x-axis. For example, in a graph of temperature over time, time typically goes on the x-axis and temperature on the y-axis, because temperature depends on when you measure it.

Background: The Cartesian Coordinate System

The y-axis gets its name from René Descartes, the 17th-century French mathematician and philosopher who formalized the coordinate system now called Cartesian coordinates. Descartes introduced the idea of locating points on a plane using two perpendicular number lines. By convention, the horizontal axis is called the x-axis and the vertical axis is called the y-axis. The point where they intersect is the origin, written as (0, 0). The letters x and y are simply conventional labels; they carry no inherent meaning beyond distinguishing the two directions. In three-dimensional graphs, a third axis, the z-axis, is added, usually representing depth.

The y-axis is a number line: it has a zero point at the origin, positive values above and negative values below. The scale can be linear (equal spacing for equal increments) or logarithmic (equal spacing for multiplicative factors). The choice of scale affects how data appears and is a common source of misinterpretation.

How the Y-Axis Works in Different Graphs

In a standard line graph, the y-axis shows the value being measured—such as height, weight, price, or temperature—while the x-axis often shows time or another independent variable. Each point on the graph has coordinates (x, y), where x is the horizontal position and y is the vertical position. For instance, the point (3, 5) lies three units to the right of the origin and five units up.

In bar charts, the y-axis typically shows frequency or magnitude, and the height of each bar corresponds to a value on the y-axis. In scatter plots, both axes represent measured variables, and the y-axis is usually the outcome or response variable. In histograms, the y-axis often shows frequency or count, though some histograms use density instead.

When reading a graph, always check the y-axis label and scale. A missing label or a truncated scale (one that does not start at zero) can make differences look larger or smaller than they are. For example, a bar chart starting the y-axis at 90 instead of 0 can exaggerate small changes.

How to Choose What Goes on the Y-Axis

When creating a graph, the general rule is to place the dependent variable on the y-axis and the independent variable on the x-axis. The dependent variable is the one you measure or predict; the independent variable is the one you control or that explains the change. Here are practical steps:

  1. Identify the variable that depends on the other. That one typically belongs on the y-axis.
  2. If you are plotting a time series, time usually goes on the x-axis, so the measured quantity goes on the y-axis.
  3. For categorical comparisons, the categories go on the x-axis and the measured values on the y-axis.
  4. Check that the y-axis scale is appropriate: start at zero when showing magnitudes like counts or amounts, unless there is a good reason not to.
  5. Label the y-axis clearly with units (e.g., “Temperature (°C)”).

There are exceptions. In some fields, such as economics, price may be plotted on the y-axis and quantity on the x-axis by convention. Always follow the norms of your field and label axes explicitly.

Common Problems and Misconceptions

One frequent mistake is confusing the y-axis with the vertical axis in a 3D plot—there, the vertical axis is often the z-axis. Another is assuming the y-axis always represents the dependent variable; while that is the usual convention, it is not a law. In some charts, especially in physics and engineering, the axes may be swapped for convenience.

A common misconception is that the y-axis must start at zero. While starting at zero is best practice for bar charts and many line graphs, it is not mandatory for all graphs, such as those showing stock prices or temperatures, where a non-zero baseline can reveal detail. However, truncating the y-axis can mislead viewers if not clearly marked.

Another issue is using a logarithmic y-axis without indicating it. A log scale compresses large ranges and can make exponential growth look linear. Readers may misinterpret the data if the scale is not labeled.

Y-Axis vs. X-Axis: Key Comparisons

The x-axis is horizontal and typically represents the independent variable; the y-axis is vertical and typically represents the dependent variable. In coordinate pairs, the x-coordinate comes first, then the y-coordinate. The origin (0,0) is where they meet. In terms of graphing, the x-axis is often used for time or categories, while the y-axis is used for measured values.

In mathematics, the slope of a line is the change in y divided by the change in x (rise over run). The y-intercept is the point where the line crosses the y-axis, which occurs when x = 0. These concepts are fundamental in algebra and statistics.

Frequently Asked Questions

What does the y-axis represent in a graph?

The y-axis typically represents the dependent variable—the value that changes in response to the independent variable on the x-axis. It is the vertical axis and shows the measured quantity.

Is the y-axis always vertical?

In standard 2D Cartesian graphs, yes, the y-axis is vertical. In 3D graphs, the vertical axis is usually the z-axis, while the y-axis represents depth.

Why is the y-axis called the y-axis?

The letters x and y are conventional labels introduced with Cartesian coordinates. There is no deeper meaning; they simply distinguish the two axes.

Can the y-axis start at a number other than zero?

Yes, but it can be misleading. For bar charts, starting at zero is recommended to avoid exaggerating differences. For line graphs showing trends, a non-zero baseline is sometimes acceptable if clearly labeled.

What is the y-intercept?

The y-intercept is the point where a line crosses the y-axis, occurring when the x-value is zero. It is often used in linear equations to describe the starting value.

How do I know which variable goes on the y-axis?

Place the dependent variable on the y-axis and the independent variable on the x-axis. If one variable depends on the other, the dependent one goes on the y-axis.

In some graphs, the axes may be swapped or a different coordinate system used. Polar coordinates use radius and angle instead of x and y. In ternary plots, three variables are shown on a triangle. In heatmaps, color represents the value instead of a vertical axis. Understanding the y-axis is foundational for reading and creating most common charts, but it is not the only way to represent data.

In this article
  1. Background: The Cartesian Coordinate System
  2. How the Y-Axis Works in Different Graphs
  3. How to Choose What Goes on the Y-Axis
  4. Common Problems and Misconceptions
  5. Y-Axis vs. X-Axis: Key Comparisons
  6. Frequently Asked Questions
  7. Alternatives and Related Concepts