The explanatory variable goes on the horizontal x-axis. The response variable (the outcome you’re measuring) goes on the vertical y-axis. This is the standard convention across statistics, science, and most academic fields.
Why the X-Axis Is Standard
When you create a scatterplot or line graph showing the relationship between two variables, each data point is represented as an ordered pair (x, y). The x-coordinate is the explanatory variable, and the y-coordinate is the response variable. This isn’t arbitrary. The logic follows cause and effect: the explanatory variable is the one you think influences or predicts the other, so it anchors the horizontal position. The response variable, which changes in reaction, rides along the vertical axis.
For example, if you’re graphing how a driver’s age affects their maximum reading distance, age goes on the x-axis and reading distance goes on the y-axis. Each point on the graph represents one driver, plotted at the intersection of their age and their reading distance.
Explanatory, Independent, Predictor: Same Idea
You’ll see several terms used interchangeably for the variable that belongs on the x-axis. “Explanatory variable,” “independent variable,” “predictor variable,” and “manipulated variable” all refer to the same role: the factor you use to explain or predict changes in the other variable. In an experiment, it’s the variable the researcher deliberately changes. In an observational study, it’s the variable you suspect drives the pattern.
The other variable, on the y-axis, also goes by multiple names: “response variable,” “dependent variable,” or “outcome variable.” It’s the thing being affected or measured.
The DRY MIX Memory Trick
If you need a quick way to remember which variable goes where, the acronym DRY MIX is widely taught in science and statistics courses:
- D-R-Y: Dependent, Responding variable goes on the Y-axis
- M-I-X: Manipulated, Independent variable goes on the X-axis
Since “explanatory” is just another word for independent or manipulated, the same rule applies. Explanatory variable: x-axis. Response variable: y-axis.
When There’s No Clear Explanatory Variable
Sometimes two variables don’t have an obvious cause-and-effect relationship. If you’re plotting height against shoe size, for instance, neither one truly “explains” the other. In cases like these, there’s no strict rule. You can place either variable on either axis. The convention only matters when one variable logically predicts or influences the other.
Time Is Almost Always on the X-Axis
Time is one of the most common explanatory variables, and it virtually always goes on the horizontal axis. Whether you’re tracking stock prices over months, a patient’s weight over weeks, or bacteria growth over hours, time runs left to right along the x-axis. This makes intuitive sense: time moves forward, and you read the graph from left to right to see how the response variable changed as time passed.
The Economics Exception
One well-known departure from the standard convention shows up in economics. On supply and demand curves, price sits on the vertical y-axis and quantity on the horizontal x-axis. Logically, price is the explanatory variable (it influences how much people buy or sell), so by normal graphing rules it should be on the x-axis. But the convention in economics dates back to Alfred Marshall’s original diagrams and has simply stuck. If you’re taking an economics course, follow the field’s convention. In every other context, the standard rule applies.
Adding More Explanatory Variables
A basic scatterplot handles two variables: one on each axis. But real data often involves more than one explanatory factor. When that happens, the additional variables get represented through visual properties rather than axis position. Color is the most common approach. You might plot flipper length on the x-axis and body mass on the y-axis, then color each point by species to show how a third variable fits into the picture. Shape, size, and opacity can serve similar roles. The primary explanatory variable still goes on the x-axis, while extra variables layer on top through these visual channels.

