Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
GeometryGeometryHigh school

Coordinate Geometry

Distance, midpoint and slope on the coordinate plane.

Coordinate geometry places shapes on the xyxy-plane so that geometric questions become algebra. The distance between (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is (x2−x1)2+(y2−y1)2\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}, which is the Pythagorean theorem applied to the horizontal and vertical gaps.

The midpoint averages the coordinates: (x1+x22,y1+y22)\left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right). With distance, midpoint and slope you can prove that a quadrilateral is a parallelogram, find the centre of a circle from a diameter, or show that two segments are perpendicular.

Key terms

Distance formula
The Pythagorean theorem applied to two points.
d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}
Midpoint
The average of the coordinates.
M=(x1+x22,y1+y22)M = \left(\frac{x_1+x_2}{2}, \frac{y_1+y_2}{2}\right)

Key ideas

  • Distance formula for lengths, midpoint formula for centres, slope for parallel and perpendicular checks.
  • A shape is a right triangle if two sides have slopes with product −1-1.
  • Perpendicular bisector: passes through the midpoint with the negative reciprocal slope.
  • Sketch the points first to catch sign errors.

Worked example

Show that A(1,1)A(1, 1), B(4,5)B(4, 5), C(8,2)C(8, 2) form a right triangle.

  1. Slope AB=5−14−1=43AB = \frac{5 - 1}{4 - 1} = \frac{4}{3}.
  2. Slope BC=2−58−4=−34BC = \frac{2 - 5}{8 - 4} = -\frac{3}{4}.
  3. Product: 43×(−34)=−1\frac{4}{3} \times \left(-\frac{3}{4}\right) = -1, so AB⊥BCAB \perp BC.
  4. Also AB=5AB = 5, BC=5BC = 5, AC=50AC = \sqrt{50}, and 25+25=5025 + 25 = 50.

Answer: Right angle at BB

Common mistakes

  • Subtracting coordinates in different orders inside the distance formula (harmless when squared, but fatal for slope).
  • Averaging xx with yy in the midpoint formula.
  • Forgetting the square root in the distance formula.

Practice questions

Try each one, then open the answer. Numerical answers on this page are verified by an automated calculation check.

  1. 1.Find the distance between (−2,3)(-2, 3) and (4,11)(4, 11).

    Show answer

    1010

  2. 2.Find the xx-coordinate of the midpoint of (−3,7)(-3, 7) and (9,1)(9, 1).

    Show answer

    33

  3. 3.A diameter runs from (0,0)(0, 0) to (6,8)(6, 8). What is the radius?

    Show answer

    55

Keep practising

More in Geometry