geometry calculators

Coordinate Geometry Calculator

Find the distance, midpoint, slope, or line equation between any two points on a coordinate plane. Ideal for geometry homework, graphing problems, or engineering layout tasks.

About this calculator

This calculator applies four core coordinate geometry formulas for two points (x₁, y₁) and (x₂, y₂). Distance uses the Pythagorean theorem: d = √((x₂ − x₁)² + (y₂ − y₁)²). The midpoint splits the segment evenly: M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2). Slope measures steepness: m = (y₂ − y₁) / (x₂ − x₁), which is undefined when x₂ = x₁ (a vertical line). The point-slope line equation is written as y − y₁ = m(x − x₁). Together these formulas describe position, direction, and length relationships between any two points in 2D space — foundational tools in algebra, geometry, and analytic trigonometry.

How to use

Suppose Point 1 is (2, 3) and Point 2 is (6, 7). Distance: d = √((6−2)² + (7−3)²) = √(16 + 16) = √32 ≈ 4.24 units. Midpoint: M = ((2+6)/2, (3+7)/2) = (4, 5). Slope: m = (7−3)/(6−2) = 4/4 = 1. Line equation: y − 3 = 1(x − 2), which simplifies to y = x + 1. Enter your own x₁, y₁, x₂, y₂ values, select the calculation type, and the result updates instantly.

Frequently asked questions

How do you calculate the distance between two points on a coordinate plane?

Use the distance formula d = √((x₂ − x₁)² + (y₂ − y₁)²), which is derived directly from the Pythagorean theorem. The horizontal difference (x₂ − x₁) and vertical difference (y₂ − y₁) form the two legs of a right triangle, and the distance is the hypotenuse. For example, between (1, 2) and (4, 6) the distance is √(9 + 16) = √25 = 5. This works for any two points, regardless of quadrant.

What is the midpoint formula and when should you use it?

The midpoint formula finds the exact center of a line segment: M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2). You use it whenever you need to bisect a segment, locate a center point, or find a halfway coordinate in mapping and design. It simply averages the x-coordinates and y-coordinates separately. For points (0, 0) and (10, 4), the midpoint is (5, 2).

Why is slope undefined for a vertical line in coordinate geometry?

Slope is defined as m = (y₂ − y₁) / (x₂ − x₁), which requires dividing by the horizontal change. A vertical line has x₁ = x₂, making the denominator zero — division by zero is mathematically undefined. This means a vertical line has no finite slope; it rises infinitely steeply. In contrast, a horizontal line has a slope of exactly 0 because the numerator (y₂ − y₁) equals zero while the denominator is nonzero.