Coordinate Geometry Calculator
Calculate the distance, midpoint, slope, or angle between two points on a coordinate plane. Essential for geometry, navigation, and computer graphics tasks.
About this calculator
Coordinate geometry (analytic geometry) uses algebraic formulas to describe geometric relationships numerically. Given two points (x₁, y₁) and (x₂, y₂), the distance formula is d = √((x₂−x₁)² + (y₂−y₁)²), derived directly from the Pythagorean theorem. The midpoint is ((x₁+x₂)/2, (y₁+y₂)/2), the average of the coordinates. The slope of the line through the two points is m = (y₂−y₁)/(x₂−x₁), representing rise over run; a vertical line has an undefined slope. The angle that a line makes with the positive x-axis is θ = arctan((y₂−y₁)/(x₂−x₁)) × (180/π), measured in degrees. Together these five measurements fully characterize the line segment between any two points.
How to use
Let Point 1 = (2, 3) and Point 2 = (8, 7). Distance: d = √((8−2)² + (7−3)²) = √(36 + 16) = √52 ≈ 7.21 units. Midpoint: x = (2+8)/2 = 5, y = (3+7)/2 = 5, so midpoint = (5, 5). Slope: m = (7−3)/(8−2) = 4/6 ≈ 0.667. Angle: θ = arctan(4/6) × (180/π) ≈ arctan(0.667) ≈ 33.69°. Enter x1 = 2, y1 = 3, x2 = 8, y2 = 7 and select the desired calculation mode.
Frequently asked questions
How do you find the distance between two points using the distance formula?
The distance formula is d = √((x₂−x₁)² + (y₂−y₁)²), which is a direct application of the Pythagorean theorem to a right triangle formed by the horizontal and vertical differences between the two points. For example, between (1, 2) and (4, 6), d = √((4−1)² + (6−2)²) = √(9+16) = √25 = 5 units. The formula works in any quadrant and for any combination of positive or negative coordinates. It also extends naturally to three dimensions by adding a (z₂−z₁)² term under the radical.
What does the slope of a line between two points represent geometrically?
Slope measures the steepness and direction of a line, defined as rise divided by run: m = (y₂−y₁)/(x₂−x₁). A positive slope means the line rises from left to right; a negative slope means it falls. A slope of zero indicates a horizontal line, while a vertical line (x₁ = x₂) has an undefined slope because division by zero is not allowed. Slopes are fundamental to calculus, where the derivative of a function at a point equals the slope of the tangent line at that point.
When would you use the midpoint formula in real-world applications?
The midpoint formula finds the exact center between two coordinate points and is used whenever you need to bisect a segment. In construction, it locates the center of a beam or wall span. In computer graphics, it is used in line-drawing algorithms like Bresenham's algorithm and in subdivision of curves. GPS and mapping applications use midpoint calculations to find halfway locations between two addresses. It is also used in numerical methods such as the midpoint rule for numerical integration.