Coordinate Geometry Toolkit: Lines, Distances, Circles and Parabolas
Use coordinates to find distances, midpoints, slopes and lines, the distance from a point to a line, the circle through three points and parabolas.

Coordinate Geometry Toolkit: Lines, Distances, Circles and Parabolas
René Descartes' idea of describing points with coordinates turned geometry into algebra. Problems that need careful construction with ruler and compass become short calculations. This guide covers the formulas used most often in school and practical work, and you can check any of them with the analytic geometry calculator.
Distance and midpoint
For points P₁(x₁, y₁) and P₂(x₂, y₂):
- distance d = √((x₂ − x₁)² + (y₂ − y₁)²), Pythagoras in coordinates,
- midpoint M = ((x₁ + x₂)/2, (y₁ + y₂)/2).
From (1, 2) to (5, 5): d = √(16 + 9) = 5, midpoint (3, 3.5).
Slope and line equation
The slope is m = (y₂ − y₁) / (x₂ − x₁). The line through the points can be written as y = mx + c, or in general form Ax + By + C = 0, which also works for vertical lines. For our points: 3x − 4y + 5 = 0.
Parallel lines have equal slopes; perpendicular lines have slopes whose product is −1.
Distance from a point to a line
The shortest distance from P(x₀, y₀) to the line Ax + By + C = 0 is:
d = |A x₀ + B y₀ + C| / √(A² + B²).
From (4, −1) to 3x − 4y + 5 = 0: |12 + 4 + 5| / 5 = 4.2.
Triangle area: the shoelace formula
For three vertices, area = |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)| / 2. The same idea extends to any polygon, which is how GIS software measures land parcels. If the area is zero, the points are collinear.
Angle between two directions
The angle between vectors u and v follows from the dot product: cos θ = (u · v) / (|u| |v|).
The circle through three points
Any three points that are not on one line lie on exactly one circle, the circumcircle. Its centre is where the perpendicular bisectors of the sides meet. For (1, 2), (5, 5) and (4, −1), the centre is about (4.07, 2.07) and the radius 3.07. Engineers use this to find the centre of a hole or the radius of an arc from three measured points.
Parabolas
For y = ax² + bx + c:
- the vertex is at x = −b / (2a),
- the focus lies 1/(4a) above the vertex (below if a < 0),
- the directrix is the horizontal line the same distance on the other side,
- the roots are x = (−b ± √(b² − 4ac)) / (2a), none if the discriminant is negative.
For y = x² − 4x + 3: vertex (2, −1), focus (2, −0.75), directrix y = −1.25, roots 1 and 3.
Every ray parallel to the axis reflects through the focus, which is why satellite dishes, solar cookers and car headlights use parabolic shapes.
Applications
- Computer games: collision checks use point-line distances.
- Navigation and mapping: distances and areas from coordinates.
- Engineering: fitting circles to measured points.
Using the calculator
- Enter three points as "x, y".
- Enter the coefficients of a quadratic.
- Read distances, the line equation, point-line distance, area, angle, circumcircle and parabola features.
Three dimensions
The same ideas extend to space: the distance between (x₁, y₁, z₁) and (x₂, y₂, z₂) adds (z₂ − z₁)² under the root, a line needs a point and a direction vector, and planes take the place of lines with equations Ax + By + Cz + D = 0.
Common errors
Swapping x and y, forgetting the absolute value in the distance formula and dividing by zero for vertical lines are the classic mistakes. The general form Ax + By + C = 0 avoids the last problem.
Graphing software is useful to check answers visually.
Limits
The calculator works in two-dimensional Euclidean coordinates. Geographic coordinates on the Earth need great-circle formulas.


