Key Points
- A point is an ordered pair . The axes cross at the origin and make four quadrants.
- Distance: , Pythagoras on the run and the rise.
- Midpoint: , the average of each coordinate.
- Slope: , rise over run; undefined for a vertical line.
- Section formula: the point dividing a segment in the ratio ; the midpoint is the case.
Why Turn Shapes Into Numbers?
A computer cannot look at a triangle, yet it measures thousands of them every second. It can only store numbers.
- Map apps, drawing programs and games store each corner as a pair of numbers.
- Every question (how long, how steep, where is the middle) is then answered by arithmetic.
That trade, pictures for numbers, is coordinate geometry. It dates from the 1630s, and it is why a curve can be written as an equation.
What Is Coordinate Geometry?
Coordinate geometry (also called analytic geometry) studies points, lines and shapes using coordinates: each point is an ordered pair saying how far across and up it is from a fixed origin.
- The grid is the Cartesian plane: an -axis and a -axis crossing at the origin .
- Used as a space for plotting, it is called the coordinate plane.
- Once points are numbers, distances become subtractions, midpoints become averages and steepness becomes a ratio.
- The pair is ordered: and are different points. The -coordinate always comes first.
The Quadrants and Sign Patterns
The axes cut the plane into four quadrants, numbered anticlockwise from the top right. Each has a fixed sign pattern:
| Quadrant | Example | ||
|---|---|---|---|
| I | |||
| II | |||
| III | |||
| IV |
- A point with a zero coordinate, such as , sits on an axis and belongs to no quadrant.
- A point in the wrong quadrant is a quick sign that a minus sign went wrong.

The Core Coordinate Geometry Formulas
For two points and , four formulas answer four questions. The running example is and , the tool's starting position.
| Question | Formula | For , |
|---|---|---|
| How far apart? | ||
| Where is the middle? | ||
| How steep? | ||
| Which point splits it ? | gives again |
The run and the rise do most of the work.

Distance Formula: "How Far Apart?"
- The distance formula is the Pythagorean theorem. The run and rise are the legs of a right triangle, and is its hypotenuse.
- So .
- Squaring removes minus signs, so it does not matter which point comes first.
- The distance between two points article adds the 3D version.
Midpoint Formula: "What's the Centre?"
- The midpoint formula averages the two -values and the two -values.
- Why: from to is 4 across and 3 up. Halfway is 2 across and 1.5 up, landing at .
- Across and up do not affect each other, so the middle is halfway in each, separately.

Slope Formula: "How Steep?"
- The slope is rise over run: vertical change over horizontal change.
- Any two points on a straight line make a right triangle. These triangles are all similar, so the ratio is always the same.
- A curve fails this test, which is how you can tell it is not a straight line.
Section Formula: "What Divides It in a Ratio?"
A point dividing to in the ratio is
This section formula is a weighted average. The midpoint is the case.
- Drag and . The blue run, green rise and orange distance show Pythagoras live; the purple dot is .
- Press "Show me: squares on the sides" to see 16 and 9 make 25.
- Try "Horizontal" (slope 0) and "Vertical" (slope undefined).
Try It Yourself
Try the tool:
Edge Cases Worth Knowing
Most errors happen where a formula meets a zero.
- Vertical lines: the run is 0, so the slope is undefined. The equation is .
- Horizontal lines: the rise is 0, so the slope is 0. The equation is .
- The same point twice: distance 0, and the slope is undefined, because one point does not fix a line.
- Axes in different units: on a km-against-hours graph, the distance formula means nothing. The slope still works: it is a speed.
Proving Geometry With Coordinates
Once points are numbers, a geometry fact can be proved by calculation.
Take parallelogram with , , and .
- Midpoint of : .
- Midpoint of : .
- Same point, so the diagonals bisect each other.

- To prove it for every parallelogram, use letters: , , , . Both midpoints are .
- Collinear points: equal slopes. For , and both slopes are 2, so they are collinear.
- Parallel lines have equal slopes. Perpendicular lines have slopes that multiply to (unless one is vertical).
- A circle is the distance formula in disguise: .
Examples of Coordinate Geometry
The examples move from one formula at a time to combining several, ending with a real layout.
Example 1
Find the distance between A(−3, −3) and B(1, 0).
- Run: . Rise: .
- .
Final answer: 5 units.
Example 2
Find the midpoint of (−2, 3) and (6, 7).
- Do not subtract: lies beyond both endpoints, so it cannot be the middle.
- Average instead: .
Final answer: .
Example 3
Find the slope of the line through (2, 1) and (5, 7).
- .
Final answer: 2. The line rises 2 units for every 1 unit right.
Example 4
Find P dividing A(2, 3) to B(8, 9) in the ratio 1 : 2.
- Use , : .
- .
Final answer: , one-third of the way from . The internal division article explains why multiplies the far point.

Example 5
Show that (0, 0), (4, 0) and (2, 3) form an isosceles triangle.
- to : .
- to : .
- to : .
Final answer: Two sides equal , so it is isosceles.

Example 6
A park has corners (0, 0), (60, 0), (60, 40) and (0, 40), in metres. A lamp post is at the centre. Where is it, and how far from a corner?
- Centre = midpoint of a diagonal: .
- Distance to : .
Final answer: At , about 36.1 m from each corner. Surveyors lay out real sites with these same two formulas.
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: Straight after distance and slope, which both subtract.
Don't do this: Write the midpoint of and as .
The correct way: Ask "a gap or a place?" Gaps subtract; the midpoint is a place, so add and halve.
Mistake 2: Mixing the order in the slope formula
Where it slips in: Taking "bigger minus smaller" out of habit.
Don't do this: Compute , which gives for and .
The correct way: The point first on top goes first underneath. .
Mistake 3: Dropping the squares in the distance formula
Where it slips in: Remembering it as "the root of the differences".
Don't do this: Write .
The correct way: Square first, then add: . Route planners face the same trap: diagonal travel is never just the sum of the two gaps.
Mistake 4: Trusting a picture instead of the numbers
Where it slips in: A sketch that looks square or straight.
Don't do this: Call four points a square because the drawing looks square.
The correct way: Check with formulas: equal sides and diagonals, slopes multiplying to , equal slopes.
Why Coordinate Geometry Matters: "When Descartes Put Algebra on a Map"
With the formulas, proofs and pitfalls in hand, the reason the subject exists comes into focus. René Descartes introduced coordinate geometry in La Géométrie (Leiden, 1637), and Pierre de Fermat reached the same idea at about the same time.
- Before them, geometry and algebra barely spoke. The grid let a curve be an equation, hence the name analytic geometry.
- Street grids: 3 blocks east and 4 north is 7 blocks to walk, but blocks in a straight line.
- Screens and games: every pixel has coordinates. Many screens put the origin top-left and count downwards, and moving, rotating or scaling a sprite is a change of coordinates.
- Engineering drawings: design software stores every corner and hole as coordinates for exact cutting.
- GPS: latitude and longitude are coordinates. Over a few kilometres a flat grid works; across continents the Earth's curve takes over.

Conclusion
The computer in the opening never looks at a shape: it does arithmetic on number pairs, just as this page does.
- Every point is an ordered pair .
- Distance is Pythagoras, the midpoint averages, the slope is rise over run, and the section formula is a weighted average.
- Vertical lines have undefined slope, and distance needs both axes in the same unit.
- Trust the numbers over a sketch.
Practice and Next Steps
Try these:
- Find the distance between and .
- Find the midpoint of and .
- Find the slope through and .
- Find the point dividing to in the ratio .
Answers:
- .
- .
- .
- .
Check the first three in the tool. If a midpoint lands outside your segment, go back to Mistake 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 live Bhanzu trainer to guide your child through coordinate geometry? Book a free demo class.
Read More
- 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
- Area of a Triangle in Coordinate Geometry: the next formula built on corner coordinates
Research Behind This Article
- OpenStax, College Algebra 2e, Section 2.1: The Rectangular Coordinate Systems and Graphs. openstax.org
- OpenStax, College Algebra 2e, Section 4.1: Linear Functions (slope, parallel and perpendicular lines). openstax.org
- MacTutor History of Mathematics, University of St Andrews, René Descartes. mathshistory.st-andrews.ac.uk
- MacTutor History of Mathematics, University of St Andrews, Pierre de Fermat. mathshistory.st-andrews.ac.uk
Quick Quiz: Check Yourself
Three levels, questions with figures, instant feedback with the reason.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
What is coordinate geometry in simple terms?
What are the main formulas in coordinate geometry?
Why is it also called analytic geometry?
How is the distance formula related to the Pythagorean theorem?
Does it matter which point is (x₁, y₁)?
What do the four quadrants tell you?
What is the slope of a vertical line?


