Analytic Geometry Calculator
Enter three points and a quadratic's coefficients to get distances, the line equation, point-line distance, circumcircle, shoelace area, angle, vertex, focus and roots.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Enter P₁ and P₂
As x, y.
- 2Enter P₃
For distance, area and circle.
- 3Enter the parabola
Coefficients a, b, c.
- 4Read the results
Lines, circle and parabola features.
About this tool
Analytic geometry turns shapes into equations. With coordinates you can find how far apart points are, write the line through them, measure the distance from a point to a line, find the circle through three points or the vertex and focus of a parabola. This calculator does these standard computations together for three points and a quadratic, showing the formulas' results so you can check homework or design work.
Who this is for
School and university students, teachers, CAD users and game developers.
Points and lines
For P₁(x₁, y₁) and P₂(x₂, y₂): - distance √((x₂ − x₁)² + (y₂ − y₁)²), - midpoint ((x₁ + x₂)/2, (y₁ + y₂)/2), - slope (y₂ − y₁)/(x₂ − x₁), - general line equation Ax + By + C = 0 with A = y₂ − y₁, B = x₁ − x₂.
Distance from a point to a line
|A x₀ + B y₀ + C| / √(A² + B²): the shortest, perpendicular distance from P₃ to the line through P₁ and P₂.
Triangle area and angle
The shoelace formula gives the area of the triangle P₁P₂P₃. The angle at P₁ comes from the dot product of the vectors P₁P₂ and P₁P₃.
Circle through three points
Every three non-collinear points lie on exactly one circle, the triangle's circumcircle. Its centre is the intersection of the perpendicular bisectors.
Parabolas
For y = ax² + bx + c: - vertex at x = −b/(2a), - focus 1/(4a) above the vertex (below if a < 0) and directrix the same distance on the other side, - roots from the quadratic formula, or none if b² − 4ac < 0. Satellite dishes and headlights use the focus property.
Good practice
Enter points as "x, y". Check results with a quick sketch; most errors come from swapped coordinates.
Applications
Game developers use point-line distances for collision detection, GIS software uses the shoelace formula for land areas, and engineers fit circles through three measured points to find the radius of a bend or a hole centre from a coordinate measuring machine.
Slope and perpendiculars
Perpendicular lines have slopes whose product is −1. The perpendicular from P₃ meets the line at the foot point, whose distance is the point-line distance shown.
Checking collinearity
Three points are collinear when the shoelace area is zero; then no circle passes through them.
Sketches catch sign errors quickly.
Worked example
For P₁(1, 2), P₂(5, 5) and P₃(4, −1): the distance P₁P₂ is 5, the midpoint (3, 3.5), the slope 0.75 and the line 3x − 4y + 5 = 0. P₃ is 4.2 from that line. The triangle has area 10.5, the angle at P₁ is 81.9°, and the circumcircle has centre (4.07, 2.07) and radius 3.07. For y = x² − 4x + 3 the vertex is (2, −1), the focus (2, −0.75) and the roots are 1 and 3.
Limits
Two-dimensional Euclidean geometry; not an official surveying tool.
Worked example
The distance from (4, −1) to the line 3x − 4y + 5 = 0 is 4.2.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Coordinate geometry: distance, midpoint, slope, line Ax + By + C = 0 through two points, point-line distance
Frequently asked questions
How do I find the distance from a point to a line?
|Ax₀ + By₀ + C|/√(A² + B²).
How do I find a circle through three points?
Intersect the perpendicular bisectors; the calculator does it directly.
What is the shoelace formula?
A formula for polygon area from vertex coordinates.
Where is the focus of y = ax² + bx + c?
1/(4a) above the vertex.
What if the points are collinear?
No circle exists through them.
Is my data stored?
No. Everything is calculated in your browser.
