📍Coordinate Geometry Calculator
Enter two points to find the distance, slope, midpoint, and equation of the line between them.
Free Coordinate Geometry Calculator
This coordinate geometry calculator combines the distance formula, slope formula, midpoint formula, and line equation into one tool. Enter two points and instantly get the distance between them (√[(x₂−x₁)² + (y₂−y₁)²]), the slope (rise over run), the midpoint, and the equation of the line through both points in slope-intercept form.
These four calculations form the foundation of coordinate geometry — used for everything from plotting graphs to analyzing triangles and lines on the coordinate plane.
Free, instant, and runs entirely in your browser — no sign-up required.
About the Coordinate Geometry Calculator
Features
Four formulas at once
Distance, slope, midpoint, and line equation together.
Vertical line handling
Correctly reports undefined slope and x = c form.
All four quadrants
Works with any combination of positive or negative coordinates.
Instant, private
Runs entirely in your browser. No data is sent anywhere.
Frequently Asked Questions
What is the distance formula?
The distance between two points is √[(x₂−x₁)² + (y₂−y₁)²] — the Pythagorean theorem applied to the horizontal and vertical differences between the points.
What is the slope formula?
Slope = (y₂−y₁) / (x₂−x₁), often described as 'rise over run' — how much y changes for each unit change in x.
What is the midpoint formula?
The midpoint is the average of the two points' coordinates: ((x₁+x₂)/2, (y₁+y₂)/2) — the point exactly halfway between them.
How is the line equation found?
First calculate the slope, then use one point to solve for the y-intercept in y = mx + b, giving the full slope-intercept equation of the line through both points.
What happens when the two points have the same x-coordinate?
The line is vertical, the slope is undefined (division by zero), and the equation is simply x = that shared x-value rather than y = mx + b.
Can the slope be negative?
Yes — a negative slope means the line falls from left to right, while a positive slope means it rises.
What if both points are the same?
You need two distinct points to define a line, distance, or meaningful slope, so the calculator shows an error if both points are identical.
Can I use negative coordinates?
Yes — all four formulas work correctly with positive, negative, or zero coordinate values, covering all four quadrants.
Where is the distance formula used?
It's used to find side lengths of shapes on the coordinate plane, verify right triangles, calculate perimeters, and in many real-world applications like GPS distance approximations.
Is this calculator free to use?
Yes, completely free with no sign-up, and it runs entirely in your browser.