TFT

Coordinate Geometry Calculator – Distance, Slope, Midpoint Online

Perform all coordinate geometry calculations with our free online calculator. Find distance, midpoint, slope, and line equations for any pair of coordinate points instantly.

Point 1: (x₁, y₁)

Point 2: (x₂, y₂)

Examples:

Understanding Coordinate Geometry

Coordinate geometry connects algebra and geometry. Every point on a plane gets an address: (x, y). The x-coordinate tells you how far left or right. The y-coordinate tells you how far up or down.

Once you have two points, you can figure out everything about the line connecting them. How far apart are they? That's distance. What's the exact middle? That's the midpoint. How steep is the line? That's the slope. And you can write an equation that describes every single point on that line.

These calculations show up everywhere. Finding the shortest path between two locations. Determining if a road is steep enough to require warning signs. Programming graphics in video games. Coordinate geometry is the math behind mapping anything in two dimensions.

Formulas at a Glance

Distance Formula

d = √[(x₂ - x₁)² + (y₂ - y₁)²]

This is just the Pythagorean theorem in disguise. The horizontal and vertical differences form the legs of a right triangle.

Midpoint Formula

M = ((x₁ + x₂)/2, (y₁ + y₂)/2)

Average the x-coordinates and y-coordinates separately. The midpoint sits exactly halfway between both points.

Slope Formula

m = (y₂ - y₁) / (x₂ - x₁)

Slope measures steepness. Rise over run. Positive slopes go uphill, negative slopes go downhill. Zero slope means horizontal. Undefined slope means vertical.

Line Equations

Slope-intercept: y = mx + b
Point-slope: y - y₁ = m(x - x₁)
Standard: Ax + By = C

Different forms for different purposes. Slope-intercept shows the y-intercept directly. Point-slope works when you know one point and the slope.

Worked Examples

Distance: (1, 2) to (5, 6)

d = √[(5-1)² + (6-2)²]
d = √[16 + 16] = √32
d ≈ 5.6569

Midpoint: (-3, 4) and (7, -2)

M = ((-3+7)/2, (4+(-2))/2)
M = (4/2, 2/2)
M = (2, 1)

Slope: (2, 3) to (8, 9)

m = (9 - 3) / (8 - 2)
m = 6/6 = 1
θ = arctan(1) = 45°

Line through (1, 5) and (3, 9)

m = (9-5)/(3-1) = 4/2 = 2
b = 5 - 2(1) = 3
y = 2x + 3

Vertical line: (4, 1) and (4, 7)

x₁ = x₂ = 4
Slope is undefined
Equation: x = 4

Frequently Asked Questions

Why is the distance formula related to the Pythagorean theorem?

Draw a right triangle where your two points are at opposite corners. The horizontal leg has length |x₂ - x₁| and the vertical leg has length |y₂ - y₁|. The distance is the hypotenuse. That's exactly what a² + b² = c² calculates.

What does a negative slope mean?

Negative slope means the line goes downhill as you move from left to right. For every unit you move right, you go down by the slope amount. A slope of -2 means "down 2 for every 1 right."

When is slope undefined?

Vertical lines have undefined slope. The formula divides by (x₂ - x₁), which equals zero for vertical lines. Division by zero is undefined. Think about it: a vertical line is infinitely steep.

Which line equation form should I use?

Slope-intercept (y = mx + b) is best for graphing – you immediately see the slope and where it crosses the y-axis. Point-slope works when you know a point and the slope. Standard form (Ax + By = C) is useful for finding both intercepts.

Can the midpoint have decimal coordinates?

Absolutely. If you're finding the midpoint of (1, 2) and (4, 7), you get (2.5, 4.5). The midpoint formula just averages the coordinates – averages often produce decimals.

How do I verify my line equation is correct?

Plug both original points into your equation. If you get y = 2x + 3 and your points were (1, 5) and (3, 9), check: 5 = 2(1) + 3 ✓ and 9 = 2(3) + 3 ✓. Both should satisfy the equation.

Other Free Tools

Distance Between Two Points Calculator – Find Distance Online

Find the distance between any two points on a coordinate plane using our free online distance formula calculator. Supports 2D and 3D coordinates with instant accurate results.

Midpoint Calculator – Find the Midpoint of a Line Segment

Calculate the midpoint between any two coordinate points with our free online midpoint calculator. Get the exact midpoint coordinates with the midpoint formula shown clearly.

Slope Calculator – Find the Slope of a Line Online

Calculate the slope or gradient of any line using two points or a linear equation with our free online slope calculator. Find slope, intercepts, and line equations easily.

Coordinate Plane Plotter – Plot Points & Lines Online

Plot points, lines, and geometric shapes on an interactive coordinate plane with our free online plotter. Ideal for graphing equations, visualizing geometry, and teaching math.

2D Function Plotter – Plot y = f(x) Graphs Online

Plot any mathematical function y = f(x) on an interactive graph with our free online 2D function plotter. Visualize polynomials, trig functions, exponentials, and more instantly.

Pythagorean Theorem Calculator – Find Any Side of a Right Triangle

Solve for any missing side of a right triangle using the Pythagorean theorem with our free online calculator. Enter two sides and instantly find the third with step-by-step working.

Triangle Solver – Solve Any Triangle SSS SAS ASA AAS

Solve any triangle completely using SSS, SAS, ASA, or AAS methods with our free online triangle solver. Find all missing sides, angles, and area with step-by-step trigonometric solutions.

Triangle Angle Calculator – Find Missing Angles in a Triangle

Find any missing angle in a triangle with our free online angle calculator. Enter known angles or sides and instantly solve for the remaining angles using trigonometry rules.