What Is Coordinate Geometry?
Coordinate geometry (also called analytic geometry) is the study of geometric figures using a coordinate system. Instead of describing a point as "over there," you give it an exact address, a pair of numbers $(x, y)$, and then every geometric question becomes an algebra calculation.
The whole subject rests on one move: place a grid over the plane, and every point gets a unique pair of coordinates. Once points are numbers, distances become subtractions, midpoints become averages, and steepness becomes a ratio. Geometry and algebra stop being separate subjects.
This grid is the cartesian plane: two number lines, the horizontal x-axis and the vertical y-axis, crossing at the origin $(0, 0)$. The same surface, viewed as the working space for plotting, is the coordinate plane.
The key idea to hold: coordinate geometry turns "where" and "how far" into arithmetic. Once you can name points with numbers, the formulas below do the rest.
The Quadrants And Sign Patterns
The two axes divide the plane into four quadrants, numbered anticlockwise from the top right. Each has a fixed sign pattern that lets you predict where a point lands before plotting it:
Quadrant | x sign | y sign | Example point |
|---|---|---|---|
I | + | + | $(3, 2)$ |
II | − | + | $(-3, 2)$ |
III | − | − | $(-3, -2)$ |
IV | + | − | $(3, -2)$ |
Knowing the quadrant of a point is often a quick sanity step: if a calculation places a point in the wrong quadrant, a sign slipped somewhere. Points on an axis itself belong to no quadrant — they have a zero coordinate.
The Core Coordinate Geometry Formulas
Four formulas carry most of the subject. Each takes two points $P(x_1, y_1)$ and $Q(x_2, y_2)$ and answers a different question.
Distance Formula: "How Far Apart?"
$$d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$$
This is the distance formula, and it comes straight from the Pythagorean theorem: the horizontal gap $(x_2 - x_1)$ and the vertical gap $(y_2 - y_1)$ are the legs of a right triangle, and the distance is its hypotenuse.
Midpoint Formula: "What's the Centre?"
$$M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2} \right)$$
The midpoint formula is just the average of the two x-values and the average of the two y-values — the exact middle of the segment.
Slope Formula: "How Steep?"
$$m = \frac{y_2 - y_1}{x_2 - x_1}$$
The slope is rise over run: the vertical change divided by the horizontal change. It measures the line's steepness and direction.
Section Formula: "What Divides It in a Ratio?"
A point dividing the segment from $P$ to $Q$ in the ratio $m : n$ is:
$$\left( \frac{m x_2 + n x_1}{m + n}, \frac{m y_2 + n y_1}{m + n} \right)$$
The midpoint is the special case where the ratio is $1 : 1$.
Examples of Coordinate Geometry
These move from a single formula to combining several, ending with a real layout. Each problem statement is bold; the steps are plain.
Example 1
Find the distance between $A(1, 2)$ and $B(4, 6)$.
Apply the distance formula:
$$d = \sqrt{(4 - 1)^2 + (6 - 2)^2}$$
$$d = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25}$$
$$d = 5$$
Final answer: the distance is 5 units.
Example 2
Find the midpoint of the segment joining $(-2, 3)$ and $(6, 7)$.
A first instinct is to subtract the coordinates the way the distance formula does. Let's see why that gives the wrong thing: subtracting gives $(8, 4)$, which is a gap, not a centre point.
The midpoint averages the coordinates, it does not subtract them:
$$M = \left( \frac{-2 + 6}{2}, \frac{3 + 7}{2} \right) = \left( \frac{4}{2}, \frac{10}{2} \right)$$
$$M = (2, 5)$$
Final answer: the midpoint is $(2, 5)$.
Example 3
Find the slope of the line through $(2, 1)$ and $(5, 7)$.
Apply the slope formula:
$$m = \frac{7 - 1}{5 - 2} = \frac{6}{3} = 2$$
Final answer: the slope is 2. The line rises 2 units for every 1 unit it moves right.
Example 4
Point $P$ divides the segment from $A(2, 3)$ to $B(8, 9)$ in the ratio $1 : 2$. Find $P$.
Use the section formula with $m = 1$, $n = 2$:
$$P = \left( \frac{1 \cdot 8 + 2 \cdot 2}{1 + 2}, \frac{1 \cdot 9 + 2 \cdot 3}{1 + 2} \right)$$
$$P = \left( \frac{8 + 4}{3}, \frac{9 + 6}{3} \right) = \left( \frac{12}{3}, \frac{15}{3} \right)$$
$$P = (4, 5)$$
Final answer: $P = (4, 5)$, one-third of the way from $A$ toward $B$.
Example 5
Show that $(0, 0)$, $(4, 0)$, and $(2, 3)$ form an isosceles triangle.
Find all three side lengths with the distance formula.
Side from $(0,0)$ to $(4,0)$:
$$\sqrt{(4-0)^2 + (0-0)^2} = \sqrt{16} = 4$$
Side from $(0,0)$ to $(2,3)$:
$$\sqrt{(2-0)^2 + (3-0)^2} = \sqrt{4 + 9} = \sqrt{13}$$
Side from $(4,0)$ to $(2,3)$:
$$\sqrt{(2-4)^2 + (3-0)^2} = \sqrt{4 + 9} = \sqrt{13}$$
Two sides equal $\sqrt{13}$.
Final answer: yes, two sides are equal, so the triangle is isosceles. This is coordinate geometry's power — a shape question answered purely by arithmetic.
Example 6
A rectangular park has corners at $(0, 0)$, $(60, 0)$, $(60, 40)$, and $(0, 40)$ in metres. A lamp post stands at the exact centre. Find its coordinates and its distance from a corner.
The centre is the midpoint of a diagonal, say from $(0, 0)$ to $(60, 40)$:
$$M = \left( \frac{0 + 60}{2}, \frac{0 + 40}{2} \right) = (30, 20)$$
Distance from the centre $(30, 20)$ to the corner $(0, 0)$:
$$d = \sqrt{30^2 + 20^2} = \sqrt{900 + 400} = \sqrt{1300} \approx 36.1 \text{ m}$$
Final answer: the lamp post is at $(30, 20)$, about 36.1 m from each corner. Surveyors lay out real sites with exactly these two formulas.
Why Coordinate Geometry Matters: "When Descartes Put Algebra On A Map"
Coordinate geometry exists because of a genuine breakthrough: in the 1630s, René Descartes joined algebra and geometry by putting numbers on a grid. Before that, geometry was about compass-and-straightedge figures and algebra was about equations, and the two barely spoke. The grid let a curve be an equation and an equation be a curve.
That union is why the subject runs through so much of modern life:
Maps and GPS. Latitude and longitude are coordinates; finding the distance between two locations is the distance formula on a sphere. Your phone's navigation is coordinate geometry at scale.
Computer graphics and games. Every pixel, sprite, and 3D model lives at coordinates; moving, rotating, and scaling them are coordinate transformations.
Engineering and CAD. Designs are specified as coordinates so a machine can build to exact positions, and midpoints and section ratios place components precisely.
Descartes' move is so foundational that you can read his original La Géométrie as the moment two fields became one. Every line plotted from an equation today is a small re-enactment of that idea.
Common Mistakes With Coordinate Geometry
These errors come up the moment several formulas are in play at once.
Mistake 1: Subtracting in the midpoint formula
Where it slips in: Reaching for subtraction because the distance and slope formulas both subtract.
Don't do this: Writing the midpoint of $(-2, 3)$ and $(6, 7)$ as $(8, 4)$ by subtracting (as in the wrong start to Example 2).
The correct way: The midpoint adds and halves — it is the average of each coordinate. Distance and slope subtract; the midpoint averages. The rusher who applies one pattern to every formula mixes these up; pause to ask whether the question wants a gap (subtract) or a centre (average).
Mistake 2: Mismatching the subtraction order in slope
Where it slips in: Putting the y-values in one order on top and the x-values in the opposite order on the bottom.
Don't do this: Writing $m = \dfrac{y_2 - y_1}{x_1 - x_2}$, which flips the sign of the slope.
The correct way: Keep the same point first in both differences: $m = \dfrac{y_2 - y_1}{x_2 - x_1}$. If point $Q$'s coordinates are on top, $Q$'s x must lead the bottom too. The second-guesser who subtracts "larger minus smaller" by habit, ignoring which point is which, gets the wrong sign.
Mistake 3: Forgetting to square inside the distance formula
Where it slips in: Taking the square root of the raw differences instead of the squared differences.
Don't do this: Writing $d = \sqrt{(x_2 - x_1) + (y_2 - y_1)}$, dropping the squares.
The correct way: Both differences are squared before they are added, because the formula is the Pythagorean theorem: $d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$. The memorizer who recalls "square root of the differences" without the squaring step loses the right-triangle logic that the formula encodes.
Conclusion
Coordinate geometry describes points and shapes with $(x, y)$ coordinates on a grid, turning geometry into algebra.
The cartesian plane has an x-axis, a y-axis, an origin, and four quadrants with fixed sign patterns.
The four core formulas are distance, midpoint, slope, and section.
The distance formula is the Pythagorean theorem in coordinates; the midpoint averages, while distance and slope subtract.
René Descartes' grid united algebra and geometry, which is why the subject underlies maps, graphics, and engineering.
Practice and Next Steps
Practice these problems to solidify your understanding:
Find the distance between $(-1, -1)$ and $(2, 3)$.
Find the midpoint of $(4, -2)$ and $(-6, 8)$.
Find the slope of the line through $(0, 0)$ and $(3, 9)$.
Find the point dividing $(1, 2)$ to $(7, 8)$ in the ratio $2 : 1$.
To work through more of these with a teacher, explore Bhanzu's geometry tutor, high school math tutor, or math classes online. Want a guided tour of the coordinate-geometry toolkit? Book a free demo class.
Read More
Ordered pair — how an (x, y) address names a single point
Collinear points — testing whether three points lie on one line
Plane in math — the flat surface coordinate geometry works on
Straight line — the equations and geometry of lines on the plane
Equation of a straight line — the forms a line's equation can take
Points and lines — the basic building blocks of plane geometry
Was this article helpful?
Your feedback helps us write better content