Math & Science

Midpoint Calculator 2026

Free · No signup
Midpoint, distance, slope
Step-by-step formula
Enter Two Coordinate PointsFree · No signup
Point 1 (x1, y1)
Point 2 (x2, y2)
Enter coordinates above to calculate midpoint, distance, and slope

Midpoint Formula: How to Find the Midpoint Between Two Points

The midpoint formula averages the x-coordinates and y-coordinates separately. For two points (x1, y1) and (x2, y2), the midpoint M is the arithmetic mean of each coordinate pair. Three formulas work together to fully describe the relationship between two points.

Midpoint M = ((x1+x2)/2, (y1+y2)/2)
Distance d = sqrt((x2-x1)^2 + (y2-y1)^2)
Slope m = (y2-y1) / (x2-x1)

The distance formula comes from the Pythagorean theorem: the horizontal difference is one leg, the vertical difference is the other, and the segment is the hypotenuse. Slope measures vertical change per unit of horizontal change. To find values between two known data points (a related concept), see the Linear Interpolation Calculator.

Midpoint and Distance Formula: Applications

The midpoint and distance formulas are used together across coordinate geometry. Midpoint finds the center of a segment; distance finds its length. The table below shows when to use each.

TaskFormulaResultApplication
Find center of segmentMidpointM = ((x1+x2)/2, (y1+y2)/2)Bisect a line, find midpoint of map route
Find segment lengthDistanced = sqrt((dx)^2 + (dy)^2)Measure straight-line distance
Find perpendicular bisectorMidpoint + slopeUse midpoint and slope = -1/mConstruct perpendicular bisector
Find missing endpointMidpoint reversex2 = 2mx - x1Locate other endpoint from midpoint

Finding the missing endpoint is a common geometry problem: if you know midpoint M and one endpoint A, solve for the other endpoint B. This calculator computes midpoint forward (given two endpoints); to find a missing endpoint, use the reverse formula x2 = 2mx - x1. For statistical applications that involve coordinate-style data, see the Correlation Coefficient Calculator.

Midpoint Formula Economics: Price Elasticity of Demand

In economics, the midpoint formula (also called arc elasticity) calculates price elasticity of demand using the average of two price and quantity values as the base, rather than the starting value. This prevents the elasticity from changing based on direction of the price change.

PED = [(Q2-Q1) / ((Q2+Q1)/2)] / [(P2-P1) / ((P2+P1)/2)]
where (Q2+Q1)/2 = midpoint of quantity
and (P2+P1)/2 = midpoint of price

Example: P falls $10 to $8, Q rises 100 to 120:
%change Q = (120-100)/110 = 18.18%
%change P = (8-10)/9 = -22.22%
PED = 18.18% / -22.22% = -0.82 (inelastic)

The economic midpoint method uses the same averaging principle as the geometric midpoint: (Q1+Q2)/2 is literally the midpoint between the two quantity values. This ensures symmetric results. For economic data summary statistics, see the Mean Median Mode Calculator.

Example Calculation

Geometry homework: find the midpoint, distance, and slope between A(-3, 5) and B(7, -1).

PointsA(-3, 5) B(7, -1)
Midpoint = ((-3+7)/2, (5+(-1))/2)(2, 2)
Distance = sqrt((7-(-3))^2 + (-1-5)^2)= sqrt(100+36) = 11.66
Slope = (-1-5) / (7-(-3))= -6/10 = -0.6
Midpoint (2, 2), distance = 11.66, slope = -0.6

Frequently Asked Questions

The midpoint formula is M = ((x1 + x2) / 2, (y1 + y2) / 2). You average the x-coordinates and average the y-coordinates separately to find the center point between two coordinate pairs. The midpoint is equidistant from both endpoints.

More Math & Science Calculators

Formula Reference
Midpoint
((x1+x2)/2, (y1+y2)/2)
Distance
sqrt((x2-x1)^2 + (y2-y1)^2)
Slope
(y2-y1) / (x2-x1)
Perp. Slope
-1 / m
Point-Slope
y - y1 = m(x - x1)
Slope Types
PositiveGoes up left to right
NegativeGoes down left to right
Zero (0)Horizontal line
UndefinedVertical line (x1 = x2)
Pro Tip
To find the perpendicular bisector of a line segment, use the midpoint as your point and negate the reciprocal of the slope. If slope = 2, perpendicular slope = -1/2. Then write the line equation using point-slope form.
Browse Categories
Payroll & Tax
50+
Construction & Materials
21+
Health & Fitness
24+
Finance & Investment
20+
Education & GPA
16+
Math & Science
10+
Food & Cooking
8+
Specialty & Other
15+