Rectangular coordinates are a system for pinpointing any location on a flat plane using two numbers: a horizontal value (x) and a vertical value (y), written as an ordered pair like (3, 5). Also called Cartesian coordinates after the French mathematician René Descartes, this system forms the backbone of graphing, navigation, computer screens, and virtually every map or chart you’ve ever read.
How the System Works
Picture two number lines crossing each other at a right angle. The horizontal line is the x-axis, the vertical line is the y-axis, and the point where they meet is called the origin, labeled (0, 0). Every point on the plane gets a unique address based on how far it sits from the origin in each direction.
The first number in the pair, the x-coordinate, tells you how far left or right the point is. Positive values go right, negative values go left. The second number, the y-coordinate, tells you how far up or down. Positive means above the origin, negative means below. So the point (4, −2) sits 4 units to the right and 2 units below the origin.
This is the key insight: two simple numbers can describe any position on a flat surface. That’s what makes the system so powerful and so widely used.
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 x and y are positive
- Quadrant II (upper left): x is negative, y is positive
- Quadrant III (lower left): both x and y are negative
- Quadrant IV (lower right): x is positive, y is negative
Points sitting directly on an axis don’t belong to any quadrant. The point (0, 5), for instance, lies on the y-axis, not in Quadrant I or II.
Useful Formulas Built on Rectangular Coordinates
Once you can place points on a plane, you can start measuring relationships between them. Two of the most common calculations are distance and midpoint.
Distance Between Two Points
To find the straight-line distance between two points, you use a formula rooted in the Pythagorean theorem. If you have point A at (x₁, y₁) and point B at (x₂, y₂), the distance is the square root of (x₂ − x₁)² + (y₂ − y₁)². In plain terms, you’re treating the horizontal gap and the vertical gap as two sides of a right triangle, then calculating the hypotenuse.
For example, the distance from (1, 2) to (4, 6) works out to the square root of 9 + 16, which is the square root of 25, which is 5 units.
Midpoint Between Two Points
The midpoint formula is even simpler. You just average the two x-coordinates and average the two y-coordinates. For points (x₁, y₁) and (x₂, y₂), the midpoint is ((x₁ + x₂) / 2, (y₁ + y₂) / 2). Many people skip memorizing the formula altogether and just remember “average each coordinate separately.”
Extending to Three Dimensions
The rectangular coordinate system isn’t limited to flat surfaces. Adding a third axis, the z-axis, perpendicular to both x and y creates a three-dimensional version of the same idea. Every point in 3D space is then described by an ordered triple (x, y, z). This is the system used in 3D modeling software, physics simulations, and architectural design, where you need to describe height in addition to horizontal and vertical position.
How Rectangular Coordinates Compare to Polar Coordinates
Rectangular coordinates aren’t the only way to locate a point. Polar coordinates describe a point using a distance from the origin (r) and an angle (θ) measured from the positive x-axis. Some problems, especially those involving circles or rotation, are much easier to solve in polar form.
You can convert between the two systems. To go from rectangular (x, y) to polar (r, θ), calculate r as the square root of x² + y², and θ as the inverse tangent of y/x (adjusting for which quadrant the point falls in). Going the other direction, x = r × cos(θ) and y = r × sin(θ). The two systems describe the same plane, just with different languages.
Where Rectangular Coordinates Show Up in Practice
Every pixel on your screen has an address defined by rectangular coordinates. Computer graphics engines use x and y values (and z for 3D rendering) to place every object, character, and button you see. When you click somewhere on a webpage, your browser registers that click as an (x, y) coordinate pair.
In physics and engineering, rectangular coordinates are the go-to system for problems where forces act in constant directions. Projectile motion is a classic example: you break a trajectory into its horizontal (x) and vertical (y) components, then track each one separately over time. A basketball thrown toward a hoop, a motorcycle launching off a ramp, an artillery shell arcing toward a target: all are analyzed by splitting motion into x and y directions on a rectangular grid.
Maps and GPS systems also rely on coordinate grids. Latitude and longitude are a coordinate system wrapped around a sphere, but local mapping tools often convert those into flat rectangular grids for easier distance calculations and route plotting.
A Brief Origin Story
René Descartes, a French mathematician and philosopher, published “La Géométrie” in 1637. His core innovation was using x and y coordinates to translate geometric shapes into algebraic equations, and vice versa. Before Descartes, algebra and geometry were largely separate fields. His coordinate system fused them together, making it possible to describe a circle, a line, or a curve as an equation you could manipulate with math rather than a shape you had to draw by hand. That merger created what we now call analytic geometry, and it remains one of the most consequential ideas in the history of mathematics.