What Is a Coordinate Axis? X, Y, and Z Explained

A coordinate axis is a reference line used to measure position in space. In the most common system, two or more straight lines cross at a central point called the origin, and every location is described by its distance from that origin along each axis. If you’ve ever plotted a point on a graph or read a map, you’ve used coordinate axes.

How the 2D Coordinate Plane Works

The standard two-dimensional coordinate plane has two axes: a horizontal line called the x-axis and a vertical line called the y-axis. Both extend infinitely in either direction, and they cross each other at a right angle. The crossing point is the origin, which has a value of zero on both axes.

Positive values on the x-axis stretch to the right of the origin, and negative values stretch to the left. On the y-axis, positive values go up and negative values go down. To describe any point on the plane, you write an ordered pair of numbers in parentheses. The first number is the horizontal distance from the origin (the x-coordinate), and the second is the vertical distance (the y-coordinate). The point (3, 5), for example, sits 3 units to the right and 5 units up from the origin.

This system is called the Cartesian coordinate system, named after the French mathematician René Descartes. His 1637 work, La Géométrie, laid out a method for connecting algebra and geometry that made it possible to describe shapes and curves with equations rather than drawings alone.

The Four Quadrants

The two axes divide the plane into four regions called quadrants, numbered counterclockwise starting from the upper right:

  • Quadrant I (upper right): both coordinates are positive, like (5, 4)
  • Quadrant II (upper left): x is negative and y is positive, like (-5, 4)
  • Quadrant III (lower left): both coordinates are negative, like (-5, -4)
  • Quadrant IV (lower right): x is positive and y is negative, like (5, -4)

Points that sit directly on an axis don’t belong to any quadrant. The point (0, 7), for instance, lies on the y-axis itself.

Adding a Third Dimension

To describe locations in three-dimensional space, a third line called the z-axis is added perpendicular to both the x-axis and the y-axis. All three axes still meet at the origin, and each pair forms a right angle with the others. A point in 3D space is written as an ordered triple, such as (2, 3, 5).

The three axes also define three flat reference surfaces called coordinate planes. The xy-plane is the flat surface where z equals zero, the xz-plane is where y equals zero, and the yz-plane is where x equals zero. These planes divide 3D space into eight regions (the three-dimensional equivalent of quadrants), called octants.

Why the Axes Are Perpendicular

Coordinate axes are almost always set at right angles to each other, a property mathematicians call orthogonality. When axes are orthogonal, movement along one axis doesn’t affect your position on any other axis. Moving purely to the right changes only your x-coordinate; your y-coordinate stays the same. This independence makes calculations cleaner and more intuitive. In mathematical terms, the unit vectors pointing along orthogonal axes have a dot product of zero, confirming that they share no directional overlap.

Conventions for Graphing Data

When scientists and students plot data on a graph, a simple convention guides which variable goes on which axis. The independent variable, the one the experimenter controls or chooses, goes on the x-axis. The dependent variable, the outcome being measured, goes on the y-axis. If you’re testing how water temperature affects plant growth, temperature goes on the horizontal axis and growth goes on the vertical axis. Time is one of the most common x-axis variables, since researchers often measure how something changes as time passes, even though they can’t control time directly.

Coordinate Axes Beyond the Standard Plane

The Cartesian grid with its straight perpendicular lines is the most familiar system, but it isn’t the only one. In polar coordinates, position is described by a distance from a central point (the pole) and an angle measured from a reference line called the polar axis, which corresponds to the positive x-axis in a Cartesian system. Polar coordinates are especially useful for describing circular and spiral shapes, where Cartesian equations would be awkward.

Geographic coordinate systems wrap axes around a sphere. Longitude measures east-west position from a zero line called the prime meridian, and latitude measures north-south position from the equator, which serves as a natural zero line. These aren’t straight axes, but they work on the same principle: two reference directions that together pin down any location on Earth’s surface.

Axes in Computer Graphics

If you’ve worked with image editing or web design, you may have noticed that the y-axis behaves differently on a screen than it does in math class. In many computer windowing systems, the origin sits at the top-left corner of the screen, x increases to the right as usual, but y increases downward. This convention dates back to the way old monitors drew images line by line from the top of the screen. It means a pixel at position (100, 200) is 100 units from the left edge and 200 units down from the top, the opposite vertical direction from a standard math graph.

Axes in Aviation and Physics

Aircraft use three body-fixed coordinate axes, all originating at the plane’s center of gravity, to describe rotation. The roll axis points straight toward the nose; rotation around it tips the wings up and down. The pitch axis runs wingtip to wingtip; rotation around it tilts the nose up or down. The yaw axis points downward through the belly of the aircraft; rotation around it swings the nose left or right. These three axes and their associated rotations, commonly called roll, pitch, and yaw, show up in everything from drone control to spacecraft navigation, anywhere an object needs to be oriented in three-dimensional space.