Midpoint Calculator

This midpoint calculator finds the halfway point between two points using their coordinate values. It helps you avoid manual calculations when finding midpoints, distances, or missing endpoints in coordinate geometry. Enter the coordinates of the points to get clear results for your calculation.

Two endpoints
M=(x1+x22,  y1+y22)M = \left(\frac{x_1+x_2}{2},\; \frac{y_1+y_2}{2}\right)
Result
2D plane
The point exactly halfway between A and B
Midpoint
M = (2, 2)

Plot

-4-22468-2-1123456ABMthe marked point sits on the segment
Exact coordinates
(2, 2)
already in lowest terms
Decimal form
(2, 2)
rounded to 4 places
Distance A to B
11.6619
exact form shown below
Half distance
5.831
from each endpoint to the midpoint
Slope of AB
-3/5
rise over run, exact
Squared distance
136
exact, before the square root
Distance in exact radical form
d=234d = 2\sqrt{34}

Step by step

  1. 1
    Midpoint formula
    M=(x1+x22,  y1+y22)M = \left(\frac{x_1+x_2}{2},\; \frac{y_1+y_2}{2}\right)
  2. 2
    Substitute the x values
    xM=−3+72=2x_M = \frac{-3 + 7}{2} = 2
  3. 3
    Substitute the y values
    yM=5+−12=2y_M = \frac{5 + -1}{2} = 2
  4. 4
    Distance between the endpoints
    d=(Δx)2+(Δy)2=136d = \sqrt{(\Delta x)^2 + (\Delta y)^2} = \sqrt{136}
Portrait of Jose Smith

Created by Jose Smith

Last updated: September 28, 2026

How to Find the Midpoint Between Two Points

A midpoint is the exact center of a line segment connecting two distinct points. It splits the total segment into two equal halves.

To find that center point, calculate the arithmetic mean of each coordinate component separately. Add the horizontal values together and divide by two. Then add the vertical values together and divide by two. If you work in three dimensions, do the same addition and division for the depth values.

This mathematical operation takes the average of the coordinates. The resulting point sits directly on the segment joining the two endpoints, precisely equidistant from both ends.

The Midpoint Formula

Diagram of a 2D coordinate grid showing two endpoints connected by a line segment with the midpoint marked in the center.

For two points in a two-dimensional plane, A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2), the midpoint formula is:

M=(x1+x22,y1+y22)M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2} \right)

Where:

  • x1x_1 and y1y_1 represent the horizontal and vertical coordinates of the first point.
  • x2x_2 and y2y_2 represent the horizontal and vertical coordinates of the second point.
  • MM represents the coordinate pair of the resulting center point.

Extending to 3D Coordinates

When your geometry problems or spatial designs include height or depth, add a third axis (zz). For points A(x1,y1,z1)A(x_1, y_1, z_1) and B(x2,y2,z2)B(x_2, y_2, z_2), the three-dimensional formula is:

M=(x1+x22,y1+y22,z1+z22)M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}, \frac{z_1 + z_2}{2} \right)

The arithmetic logic remains identical. Each axis calculates independently of the others.

How to Use This Midpoint Calculator

The calculator has four tabs, each answering a different question about the same segment:

  • Midpoint: enter both endpoints and get the centre point.
  • Endpoint: enter one endpoint and the midpoint, and recover the endpoint you are missing.
  • Ratio: split the segment in any ratio m:nm : n instead of in half, with presets for the trisection and quarter points. A ratio of 1 to 1 is simply the midpoint.
  • Values: the same halfway arithmetic on two plain numbers rather than coordinates, tracked across as many rounds as you like so you can watch two figures converge.

On the three coordinate tabs:

  1. Select your coordinate mode: choose either 2D (x,y)(x, y) or 3D (x,y,z)(x, y, z).
  2. Enter the coordinates for Point A (x1x_1, y1y_1, and optional z1z_1). Whole numbers, decimals, negatives, fractions such as 3/43/4 and mixed numbers such as 2122\tfrac{1}{2} all work.
  3. Enter the coordinates for Point B (x2x_2, y2y_2, and optional z2z_2).
  4. Results appear as you type, with no button to press. You get the midpoint as an exact fraction and as a decimal, the segment length in both decimal and exact radical form, the slope, the half distance, the squared distance, and the working set out step by step.

Reset Calculator at the foot of the input panel returns every field to its starting value, and Swap A and B exchanges the two endpoints without retyping them.

If you need to verify how far apart the two original points were before finding their center, check the output against our distance calculator for full Euclidean distance steps.

Midpoint Examples

Working through coordinate pairs by hand clarifies how the signs and division behave.

Example 1: Standard 2D Coordinates

Find the midpoint between Point A (4,8)(4, 8) and Point B (10,2)(10, 2).

  • Identify the input values: x1=4x_1 = 4, y1=8y_1 = 8, x2=10x_2 = 10, y2=2y_2 = 2

Apply the horizontal midpoint equation:

xm=4+102=142=7x_m = \frac{4 + 10}{2} = \frac{14}{2} = 7

Apply the vertical midpoint equation:

ym=8+22=102=5y_m = \frac{8 + 2}{2} = \frac{10}{2} = 5

The midpoint coordinate is (7,5)(7, 5). The point (7,5)(7, 5) sits directly halfway along the line segment between (4,8)(4, 8) and (10,2)(10, 2).

Example 2: Negative Numbers and Fractions

Find the midpoint between Point A (−5,3)(-5, 3) and Point B (2,−6)(2, -6).

  • Identify the input values: x1=−5x_1 = -5, y1=3y_1 = 3, x2=2x_2 = 2, y2=−6y_2 = -6

Calculate the horizontal coordinate:

xm=−5+22=−32=−1.5x_m = \frac{-5 + 2}{2} = \frac{-3}{2} = -1.5

Calculate the vertical coordinate:

ym=3+(−6)2=−32=−1.5y_m = \frac{3 + (-6)}{2} = \frac{-3}{2} = -1.5

The midpoint coordinate is (−1.5,−1.5)(-1.5, -1.5), or as a simplified fraction, (−3/2,−3/2)(-3/2, -3/2).

Example 3: Three-Dimensional Spatial Coordinates

Find the midpoint between Point A (1,−4,6)(1, -4, 6) and Point B (5,2,−10)(5, 2, -10).

  • Identify the input values: x1=1x_1 = 1, y1=−4y_1 = -4, z1=6z_1 = 6, x2=5x_2 = 5, y2=2y_2 = 2, z2=−10z_2 = -10

Calculate each coordinate axis:

xm=1+52=62=3x_m = \frac{1 + 5}{2} = \frac{6}{2} = 3
ym=−4+22=−22=−1y_m = \frac{-4 + 2}{2} = \frac{-2}{2} = -1
zm=6+(−10)2=−42=−2z_m = \frac{6 + (-10)}{2} = \frac{-4}{2} = -2

The 3D midpoint coordinate is (3,−1,−2)(3, -1, -2).

Finding a Missing Endpoint When the Midpoint is Known

Sometimes an exam problem or surveying plan provides one endpoint and the midpoint, requiring you to solve for the unknown second endpoint.

Rearrange the standard midpoint formula to isolate the missing point coordinates (x2,y2x_2, y_2):

x2=2xm−x1x_2 = 2x_m - x_1
y2=2ym−y1y_2 = 2y_m - y_1
z2=2zm−z1z_2 = 2z_m - z_1

Missing Endpoint Example

Suppose Point A is located at (2,−3)(2, -3) and the midpoint MM is known to be (6,1)(6, 1). Find Point B (x2,y2)(x_2, y_2).

Substitute values into the rearranged horizontal formula:

x2=2(6)−2=12−2=10x_2 = 2(6) - 2 = 12 - 2 = 10

Substitute values into the rearranged vertical formula:

y2=2(1)−(−3)=2+3=5y_2 = 2(1) - (-3) = 2 + 3 = 5

Point B sits at (10,5)(10, 5). If you then connect (2,−3)(2, -3) and (10,5)(10, 5) into our slope calculator, you can verify that the slope matches across each half of the segment.

Understanding the Difference Between Midpoint, Slope, and Distance

Coordinate geometry relies on three core calculations to describe line segments. Each answers a distinct geometric question:

MeasurementQuestion AnsweredFormula (2D)Output Type
MidpointWhere is the center point?M=(x1+x22,y1+y22)M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2} \right)Coordinate Point (x,y)(x, y)
DistanceHow long is the segment?d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}Scalar Value (units)
SlopeHow steep is the segment?m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}Ratio / Rate of change

The midpoint produces location coordinates. Distance produces a scalar length. Slope describes direction and angle of tilt.

Practical Applications Across Disciplines

Midpoint calculations extend beyond high school algebra homework. Real-world workflows depend on exact center coordinates daily:

  • Computer Graphics and Game Design: Game engines calculate midpoints to place character anchors, position cameras between competing targets, and construct bounding collision volumes.
  • Geographic Information Systems (GIS): Cartographers establish median reference marks along territorial borders, pipeline runs, and transit lines using geodetic midpoint formulas.
  • Architecture and Carpentry: Builders find midpoints to locate structural load headers, space ceiling joists evenly, or establish ridge lines on gabled roofs.
  • Urban Planning and Logistics: Delivery services place centralized distribution hubs by finding the geographic center between primary supplier nodes and retail clusters.

Common Mistakes to Avoid

Simple arithmetic habits cause the vast majority of midpoint errors:

  • Subtracting instead of adding coordinates: The slope and distance formulas require subtraction (x2−x1x_2 - x_1). The midpoint formula requires addition (x1+x2x_1 + x_2). Mixing these operations is the single most frequent calculation mistake.
  • Combining horizontal and vertical terms: Never add x1x_1 to y1y_1. Horizontal coordinates combine strictly with horizontal coordinates (xx with xx), and vertical coordinates combine strictly with vertical coordinates (yy with yy).
  • Dropping negative signs during addition: When adding negative numbers, remember that 4+(−8)=−44 + (-8) = -4, not positive 12 or positive 4.
  • Confusing the midpoint with segment length: A midpoint is an ordered pair identifying a position on a grid, not a scalar measurement of length.
  • Rounding decimals prematurely: Keep exact fractional representations until all calculation steps finish to prevent rounding drift in multi-part physics problems.

Assumptions, Limitations, and Edge Cases

The standard Cartesian midpoint formula assumes flat, Euclidean geometric space:

  • Identical Coordinates: If Point A and Point B share identical values (for example, (3,3)(3, 3) and (3,3)(3, 3)), the line segment has zero length. The calculated midpoint simply returns (3,3)(3, 3).
  • Curved Earth Surface Limitations: On large geographical scales, the shortest distance between two points follows the arc of a sphere or ellipsoid (a great circle). Calculating a mid-continent geographical midpoint using flat Cartesian (x,y)(x, y) coordinates produces spatial distortion. Spherical trigonometry or geodesic formulas are required for long-distance navigation.
  • Unbounded Values: The formula accepts all real numbers from negative infinity to positive infinity. It does not handle undefined or imaginary numbers.

Frequently Asked Questions

What is the midpoint formula?

The midpoint formula calculates the average of coordinate pairs between two endpoints. In 2D, it is written as M=((x1+x2)/2,(y1+y2)/2)M = ((x_1 + x_2) / 2, (y_1 + y_2) / 2).

Can a midpoint have negative coordinates?

Yes. If the sum of the endpoint coordinates on any axis is negative, dividing by two produces a negative coordinate.

How do you find the midpoint if one point is the origin (0, 0)?

Divide the coordinates of the non-zero point by two. For Point A (0,0)(0, 0) and Point B (x2,y2)(x_2, y_2), the midpoint is simply (x2/2,y2/2)(x_2 / 2, y_2 / 2).

Does it matter which point you label as Point 1 or Point 2?

No. Addition is commutative, meaning x1+x2x_1 + x_2 equals x2+x1x_2 + x_1. Labeling either endpoint as Point 1 yields the exact same midpoint.

What is the difference between a midpoint and an average?

A midpoint is the geometric average of spatial coordinate pairs. It applies the concept of the standard arithmetic mean independently to horizontal, vertical, and depth dimensions.

How do you find the midpoint in 3D space?

Add the third axis into the calculation: M=((x1+x2)/2,(y1+y2)/2,(z1+z2)/2)M = ((x_1 + x_2) / 2, (y_1 + y_2) / 2, (z_1 + z_2) / 2). Each axis computes independently.

Can the midpoint formula be used for fractions and decimals?

Yes. This calculator accepts whole integers, negative numbers, decimals, proper and improper fractions such as 3/43/4, and mixed numbers such as 2122\tfrac{1}{2}. Decimals are converted to exact fractions internally rather than held as floating point, so the midpoint of 1/31/3 and 1/51/5 comes back as 4/154/15 instead of a rounded 0.2667.

How do you find the midpoint of a vertical or horizontal line?

Apply the same standard formula. For a vertical line where x1=x2x_1 = x_2, the horizontal midpoint remains that same value, while the vertical coordinate averages the two heights.

Related Calculators