ResourcesMathematicsCoordinate Geometry
MathematicsHigh School

Coordinate Geometry

Coordinate geometry (also called analytic geometry) bridges algebra and geometry by using numbers and equations to describe geometric shapes and positions on a plane. It is a fundamental tool in engineering, physics, computer graphics, and architecture.

This guide covers the coordinate plane, distance and midpoint formulas, slope, equations of lines, parallel and perpendicular lines, circles, worked examples, an interactive calculator, and a practice quiz.

1Introduction

Coordinate geometry allows us to represent geometric figures using algebraic equations. By placing shapes on a number grid (the Cartesian plane), we can calculate distances, find midpoints, determine slopes, and describe curves with precision.

Every point on the plane is specified by an ordered pair (x, y), where x gives the horizontal position and y gives the vertical position. This simple idea unlocks a powerful toolkit for solving geometry problems using algebra.

Picture This

Imagine a city grid where every intersection has a unique address like (3rd St, 5th Ave). Coordinate geometry works the same way -- every point has an address (x, y) that tells you exactly where it is on the plane.

Real-World Uses

Navigation & GPS

GPS coordinates use a system just like the Cartesian plane to pinpoint locations on Earth.

Computer Graphics

Every pixel on a screen has (x, y) coordinates. Games and animations rely on coordinate geometry.

Engineering & Architecture

Blueprints and CAD software use coordinate systems to place walls, beams, and wiring precisely.

Physics

Projectile motion, force diagrams, and electric fields are all analyzed on coordinate planes.

2The Coordinate Plane

The Cartesian plane is formed by two perpendicular number lines that intersect at the origin (0, 0).

X-axis

The horizontal number line. Positive values go right, negative go left.

Y-axis

The vertical number line. Positive values go up, negative go down.

Origin

The point (0, 0) where the two axes intersect.

Ordered Pair (x, y)

x is the horizontal distance (abscissa), y is the vertical distance (ordinate).

The Four Quadrants

Quadrant I

(+x, +y) -- upper right

Quadrant II

(-x, +y) -- upper left

Quadrant III

(-x, -y) -- lower left

Quadrant IV

(+x, -y) -- lower right

3Basic Formulas

These three formulas are the foundation for working with points on the coordinate plane.

Distance Formula

D = √[(x₂ − x₁)² + (y₂ − y₁)²]

The straight-line distance between two points -- derived from the Pythagorean theorem.

The horizontal difference (x₂ − x₁) and vertical difference (y₂ − y₁) form the two legs of a right triangle. The distance is the hypotenuse.

Midpoint Formula

M = ((x₁ + x₂)/2, (y₁ + y₂)/2)

The exact middle point of a segment -- the average of the coordinates.

Simply average the x-coordinates and average the y-coordinates to find the centre point.

Slope Formula

m = (y₂ − y₁) / (x₂ − x₁)

Rise over run -- the steepness and direction of a line.

Positive Slope (m > 0)

Line rises from left to right.

Negative Slope (m < 0)

Line falls from left to right.

Zero Slope (m = 0)

Horizontal line (e.g. y = 3).

Undefined Slope

Vertical line (e.g. x = 2). Division by zero.

4Equation of a Line

An equation of a line provides an algebraic way to describe all the points that lie on that line.

Slope-Intercept

y = mx + b

m = slope, b = y-intercept

Best for: quickly graphing

Point-Slope

y − y₁ = m(x − x₁)

m = slope, (x₁, y₁) = a point

Best for: writing equations

Standard Form

Ax + By + C = 0

A, B, C = constants

Best for: intercepts, distance

Converting Between Forms

Point-slope to Slope-intercept

Given m = 3, point (1, 4)

y - 4 = 3(x - 1)

y - 4 = 3x - 3

y = 3x + 1

Slope-intercept to Standard

y = 3x + 1

-3x + y = 1

3x - y + 1 = 0

5Parallel & Perpendicular Lines

Parallel Lines

m₁ = m₂

Two distinct lines are parallel if and only if they have the same slope.

Perpendicular Lines

m₁ · m₂ = −1

Two lines are perpendicular if their slopes are negative reciprocals.

Example: Parallel line through (3, 2) to y = −2x + 5

Given line has slope m = -2

Parallel slope = -2 (same)

y - 2 = -2(x - 3)

y - 2 = -2x + 6

y = -2x + 8

Example: Perpendicular line through (3, 2) to y = −2x + 5

Given line has slope m = -2

Perpendicular slope = 1/2 (negative reciprocal)

y - 2 = (1/2)(x - 3)

y - 2 = (1/2)x - 3/2

y = (1/2)x + 1/2

Tip

A horizontal line (slope = 0) is always perpendicular to a vertical line (undefined slope). This is a special case where the m₁ · m₂ = −1 rule does not directly apply.

6Circles in the Coordinate Plane

A circle is the set of all points equidistant from a central point. Its equation is derived directly from the distance formula.

Standard Form

(x − h)² + (y − k)² = r²

Center = (h, k), Radius = r

Example: Circle with center (−1, 3) and radius 4

(x - (-1))² + (y - 3)² = 4²

(x + 1)² + (y − 3)² = 16

General Form

x² + y² + Dx + Ey + F = 0

Convert to standard form by completing the square.

Key Insight

The circle equation comes directly from the distance formula. Any point (x, y) on the circle is exactly distance r from the center (h, k). Squaring both sides of D = r gives you the standard form.

7Worked Examples

Example 1: Distance, Midpoint & Slope

Given A(2, −3) and B(−4, 5), find distance, midpoint, and slope.

Distance:

D = √[(-4 - 2)² + (5 - (-3))²]

D = √[36 + 64] = √100

D = 10 units

Midpoint:

M = ((2 + (-4))/2, (-3 + 5)/2)

M = (-1, 1)

Slope:

m = (5 - (-3)) / (-4 - 2) = 8 / (-6)

m = -4/3

Example 2: Equation of a Line from Two Points

Find the equation of the line through (1, 4) and (−2, −5) in slope-intercept form.

m = (-5 - 4) / (-2 - 1) = -9 / -3 = 3

y - 4 = 3(x - 1)

y - 4 = 3x - 3

y = 3x + 1

Example 3: Circle Equation

Find the equation of a circle with center (−1, 3) and radius 4.

(x - h)² + (y - k)² = r²

(x - (-1))² + (y - 3)² = 4²

(x + 1)² + (y − 3)² = 16

Example 4: Distance from Point to Line

Find the distance from P(1, 5) to the line 3x − 4y + 7 = 0.

D = |Ax₀ + By₀ + C| / √(A² + B²)

D = |3(1) + (-4)(5) + 7| / √(9 + 16)

D = |3 - 20 + 7| / √25

D = |-10| / 5

D = 2 units

8Interactive Calculator

Enter two points below to see the distance, midpoint, and slope calculated in real time. The coordinate plane shows both points, the right triangle formed by the horizontal and vertical differences, and the midpoint.

Interactive Distance & Midpoint Calculator

(,)
(,)
-6-5-4-3-2-101234-5-4-3-2-11234567MAB

Distance

10

Midpoint

(-1, 1)

Slope

-1.333

9Common Mistakes

Mixing up x and y coordinates

Coordinates are always (x, y). Do not accidentally use (y₁, x₁) when plugging into formulas.

Sign errors with negative numbers

Be careful when subtracting a negative: 5 − (−3) = 5 + 3 = 8, not 2. This is the most common error in distance and slope calculations.

Forgetting the square root in the distance formula

After squaring the differences and adding them, you must take the square root. Leaving D² instead of D is a frequent mistake.

Incorrect perpendicular slope

The perpendicular slope is the negative reciprocal. Do not just flip it or just negate it -- do both! If m = 2/3, then m⊥ = −3/2.

Misidentifying center and radius of a circle

In (x − h)² + (y − k)² = r², the center is (h, k), not (−h, −k). If you see (x + 1)², then h = −1. The right side is r², so take the square root to find r.

Quick Revision Summary

  • The Cartesian plane has an x-axis, y-axis, origin (0, 0), and four quadrants. Points are (x, y).
  • Distance: D = √[(x₂ − x₁)² + (y₂ − y₁)²] (Pythagorean theorem).
  • Midpoint: M = ((x₁ + x₂)/2, (y₁ + y₂)/2) (average of coordinates).
  • Slope: m = (y₂ − y₁)/(x₂ − x₁) -- positive, negative, zero, or undefined.
  • Three forms: y = mx + b, y − y₁ = m(x − x₁), Ax + By + C = 0.
  • Parallel lines: same slope (m₁ = m₂). Perpendicular: negative reciprocal slopes (m₁ · m₂ = −1).
  • Circle: (x − h)² + (y − k)² = r² where (h, k) is center and r is radius.
  • Point-to-line distance: D = |Ax₀ + By₀ + C| / √(A² + B²).

Frequently Asked Questions

What's the difference between a line and a line segment?
A line extends infinitely in both directions. Its equation describes all points on it. A line segment is a part of a line with two distinct endpoints. The distance and midpoint formulas apply specifically to segments.
How do I know which point is (x₁, y₁) and which is (x₂, y₂)?
For the distance and midpoint formulas, it doesn't matter! The result will be the same. For the slope formula, it also doesn't matter as long as you are consistent — if you choose y₂ from the second point, you must choose x₂ from the second point for the denominator.
When should I use point-slope form versus slope-intercept form?
Use point-slope form (y − y₁ = m(x − x₁)) when you have a point and the slope, or two points. Use slope-intercept form (y = mx + b) when you need to quickly identify the slope and y-intercept, or when asked for the equation in that specific form.
Can a vertical line have a slope?
A vertical line has an undefined slope. This is because the "change in x" (Δx) is zero, and division by zero is undefined. Its equation is always of the form x = c where c is a constant.
How do I find the x-intercept and y-intercept of a line?
To find the x-intercept (where the line crosses the x-axis), set y = 0 and solve for x. To find the y-intercept (where the line crosses the y-axis), set x = 0 and solve for y. For y = mx + b, the y-intercept is directly b.

Practice Quiz

Test your understanding of coordinate geometry — select the correct answer for each question.

1.What is the distance between the points (0, 0) and (3, 4)?

2.What is the midpoint of the segment connecting (2, 4) and (6, 8)?

3.What is the slope of the line passing through (1, 3) and (4, 9)?

4.Which equation represents a line with slope 3 and y-intercept 5?

5.Parallel lines have:

6.Perpendicular lines have:

7.What is the equation of a circle centered at the origin with radius 4?

8.What is the slope of a horizontal line?

9.What is the slope of a vertical line?

10.For the line y = −2x + 4, what is the x-intercept?

Final Study Advice

  • 1.Always sketch a diagram first -- plotting points helps you visualize the problem and catch errors.
  • 2.Label your points clearly as (x₁, y₁) and (x₂, y₂) before plugging into any formula.
  • 3.Watch out for sign errors, especially when subtracting negative numbers.
  • 4.For perpendicular slopes, remember: flip and negate (negative reciprocal).
  • 5.Always check your answer by substituting back into the original formula or equation.

Related Topics