November 10, 2026
By Jacky Fan
10 min read

X and Y Axis Explained: Coordinate Plane & Quadrants

The x-axis runs horizontally and the y-axis vertically. Learn the origin, the four quadrants, how to plot a point, and what x and y mean on a line graph.

When a graph looks like a puzzle, start with the axes. The x-axis and y-axis are the two number lines that frame almost every graph you will meet in maths, science, and business, and once you know how they work, plotting and reading points becomes routine.

Quick answer: The x-axis is the horizontal axis and the y-axis is the vertical axis. They cross at the origin, the point (0, 0), and together they form the coordinate plane, also called the Cartesian plane. Every point on the plane is described by an ordered pair (x, y): how far to move across, then how far to move up or down. On a line graph, the x-axis usually shows an ordered sequence such as time, and the y-axis shows the value being measured.

This guide covers what each axis does, the origin, the four quadrants, how to plot a point, and how x and y work on a line graph. If you want the names of every other part of a graph, see parts of a line graph.

What are the x-axis and y-axis?

The two axes are number lines set at right angles. Here is how they compare.

X-axisY-axis
DirectionHorizontal, left to rightVertical, bottom to top
Positive valuesTo the right of the originAbove the origin
Negative valuesTo the left of the originBelow the origin
Role in a graphUsually the input or the sequence (time, distance, dose)Usually the output or the measurement (sales, temperature, height)
Maths nameIndependent variableDependent variable
Written first or second?First in an ordered pair: (x, y)Second in an ordered pair: (x, y)

A simple memory aid: "x is across". Picture walking along a hallway first (x), then climbing the stairs (y). Because x always comes first in an ordered pair, you always move across before you move up or down.

The origin and the coordinate plane

The point where the axes cross is the origin, written (0, 0). From there, numbers grow to the right and upward and shrink to the left and downward, so the axes carry both positive and negative values.

The flat grid formed by the two axes is called a plane, because it has two dimensions, and the system is called the Cartesian coordinate system after René Descartes (1596 to 1650), the French mathematician whose work in the 1630s tied algebra to geometry. Before it, geometry and algebra were largely separate subjects. With coordinates, an equation can be drawn as a line or curve, and a shape can be described with numbers.

The four quadrants

The two axes divide the plane into four regions called quadrants. They are numbered with Roman numerals, counterclockwise, starting at the top right.

QuadrantPositionSign of xSign of yExample point
ITop rightPositivePositive(3, 2)
IITop leftNegativePositive(-4, 1)
IIIBottom leftNegativeNegative(-2, -5)
IVBottom rightPositiveNegative(5, -3)

Points that sit exactly on an axis, such as (0, -3) or (4, 0), do not belong to any quadrant.

How to plot a point

To plot an ordered pair (x, y):

  1. Start at the origin, (0, 0).
  2. Move along the x-axis. Go right if x is positive and left if x is negative.
  3. Move parallel to the y-axis. Go up if y is positive and down if y is negative.
  4. Mark the point where you stop and label it if needed.

Here are four worked examples.

Ordered pairMoves from the originWhere it lands
(3, 2)3 right, 2 upQuadrant I
(-4, 1)4 left, 1 upQuadrant II
(-2, -5)2 left, 5 downQuadrant III
(0, -3)0 across, 3 downOn the y-axis, below the origin

A point on the x-axis always has y = 0, and a point on the y-axis always has x = 0.

X and Y on a line graph

On a line graph, the same idea applies, with a practical twist: the axes carry real quantities. The rule of thumb is that the thing that moves forward on its own, or that you choose, goes on the x-axis, and the thing that responds goes on the y-axis.

That is why time almost always sits on the x-axis. Time moves forward regardless of what anyone does, so everything else is plotted as a function of it. Sales by month, a plant's height by day, and distance travelled by hour all follow the pattern.

Take a plant measured every three days (illustrative numbers):

Day (x)Height in cm (y)
02
35
69
914
1218
Day,Height
0,2
3,5
6,9
9,14
12,18

Each row is an ordered pair: (0, 2), (3, 5), (6, 9), (9, 14), and (12, 18). All five points fall in Quadrant I, because both days and heights are positive. Join them in order and you have a line graph that rises from left to right.

Many line graphs use only the top-right quadrant, because time and most quantities are positive. When a measure can go negative, such as temperature or profit, the line extends below the x-axis and the graph uses Quadrants I and IV. To try it with your own numbers, paste them into the line graph maker: the first column becomes the x-axis and each extra column becomes its own line.

Which variable goes on which axis?

When it is not obvious, ask one question: if one of these quantities changed, which other one would respond? The one that responds, the dependent variable, goes on the y-axis. The one you set or that simply moves on, the independent variable, goes on the x-axis.

SituationX-axis (independent)Y-axis (dependent)
Hours studied and test scoreHours studiedTest score
A patient's readings over a hospital stayTimeReading
A drug dose and the responseDoseResponse
Distance travelled by a carTimeDistance
Monthly salesMonthSales

Conventions sometimes override the rule. In economics, supply and demand curves put price on the vertical axis and quantity on the horizontal axis, even though quantity demanded responds to price. When you meet a graph like that, rely on the axis labels, not on the default pattern.

Reading a value from a graph

Plotting turns a pair into a point. Reading does the reverse. To read the height on day 9 from the plant graph above, find 9 on the x-axis, move straight up until you reach the line, then move straight across to the y-axis, where you read 14. To estimate a value between two measurements, such as day 7.5, follow the same path to the line between the points at days 6 and 9. The answer is only an estimate, about 11 to 12 cm, because the line assumes steady growth between readings.

Choosing a scale for each axis

Each axis has its own scale, and the two do not have to match. The x-axis might count days in steps of 3 while the y-axis counts centimeters in steps of 5. What matters is that each scale uses equal steps, starts and ends in sensible places, and carries a label with its unit. If an axis skips or stretches steps, the shape of the line misleads. Our guide to line graph best practices covers scale choices in more detail.

Intercepts: where a line crosses the axes

Two special points describe where a line meets the axes.

  • The y-intercept is where the line crosses the y-axis, where x = 0. On a time graph, it is the starting value.
  • The x-intercept is where the line crosses the x-axis, where y = 0.

For the line y = 2x + 5, the y-intercept is (0, 5). To find the x-intercept, set y to 0: 0 = 2x + 5, so x = -2.5, and the point is (-2.5, 0). The steepness of that line, its slope, is the subject of slope of a line graph.

Common mistakes with x and y

  • Writing the pair backwards. (2, 5) and (5, 2) are different points. Remember x first.
  • Swapping the axes' labels. If time is on the x-axis, the label "Time" belongs there, not on the vertical axis.
  • Uneven tick spacing. Gaps of 10, then 20, then 50 between ticks bend the line without any change in the data.
  • Numbering the quadrants clockwise. They run counterclockwise from the top right.
  • Forgetting that points on an axis are in no quadrant.
  • Mixing up an axis with a gridline. The axes are the two main lines through the origin; gridlines are the faint guides behind the data.

Frequently asked questions

Which axis is x and which is y?

The x-axis is the horizontal one and the y-axis is the vertical one. In an ordered pair (x, y), the x-value tells you how far across to go and the y-value tells you how far up or down.

What is the origin on a graph?

The origin is the point where the x-axis and y-axis cross, written (0, 0). It is the starting point for plotting any other point.

What are the four quadrants of a graph?

Quadrant I is top right (x and y positive), II is top left (x negative, y positive), III is bottom left (both negative), and IV is bottom right (x positive, y negative). They are numbered counterclockwise.

What goes on the x-axis of a line graph?

The ordered sequence, most often time such as hours, days, months, or years. The measured value goes on the y-axis.

What is a z-axis?

A third axis used in three-dimensional graphs. It is perpendicular to both the x-axis and the y-axis and usually shows depth or height. Ordinary line graphs use only two axes.

Why is it called a Cartesian plane?

It is named after René Descartes, who linked algebra and geometry by describing points with numbers. The Latinized form of his name is Cartesius, which gives us "Cartesian".

Share this article

Help others discover this content

Published on November 10, 2026

Last updated on November 10, 2026

Written by Jacky Fan