Midpoint Calculator

Calculate the midpoint between two points, find the distance between endpoints, or solve for a missing endpoint. Step-by-step work shown for every calculation.

πŸ“ Midpoint Calculator

Result

Midpoint(5, 5)
Distance7.211103

Step‑by‑Step

Step 1Points: A(2, 3) and B(8, 7)
Step 2Midpoint x: (2 + 8) / 2 = 10 / 2 = 5
Step 3Midpoint y: (3 + 7) / 2 = 10 / 2 = 5
Step 4Midpoint M = (5, 5)
Step 5Distance: √((8βˆ’2)Β² + (7βˆ’3)Β²) = √(36 + 16) = √52 = 7.211103

What Is a Midpoint?

The midpoint of a line segment is the point that divides the segment into two equal halves. It lies exactly halfway between the two endpoints, at the same distance from each. If you have two points A and B, the midpoint M is the unique point where AM = MB.

Geometrically, the midpoint is the center of a line segment. It appears everywhere in mathematics β€” from basic coordinate geometry to advanced applications in computer graphics, GPS navigation, surveying, and construction.

It is important to distinguish between a line segment, a line, and a ray. A line segment has two endpoints, so it has a definite midpoint. A true line extends infinitely in both directions and has no midpoint. A ray has one endpoint and extends infinitely, so it also has no midpoint.

Our calculator above handles three operations: find the midpoint between two points, calculate the distance between two points, and find a missing endpoint when you know one endpoint and the midpoint.

The Midpoint Formula

Given two points in a coordinate plane, A(x₁, y₁) and B(xβ‚‚, yβ‚‚), the midpoint M is found by averaging the x-coordinates and averaging the y-coordinates:

M = ((x₁ + xβ‚‚) / 2, (y₁ + yβ‚‚) / 2)

The formula works because the midpoint is the arithmetic mean of the coordinates. The x-coordinate of M is the average of x₁ and xβ‚‚, and the y-coordinate of M is the average of y₁ and yβ‚‚.

VariableMeaning
(x₁, y₁)Coordinates of endpoint A
(xβ‚‚, yβ‚‚)Coordinates of endpoint B
M(xβ‚˜, yβ‚˜)Midpoint β€” the center of the line segment
xβ‚˜ = (x₁+xβ‚‚)/2Average of x-coordinates
yβ‚˜ = (y₁+yβ‚‚)/2Average of y-coordinates

Midpoint in 3D

The formula extends naturally to three dimensions. For points A(x₁, y₁, z₁) and B(xβ‚‚, yβ‚‚, zβ‚‚):

M = ((x₁+xβ‚‚)/2, (y₁+yβ‚‚)/2, (z₁+zβ‚‚)/2)

How to Find the Midpoint Step by Step

Follow these simple steps:

  1. Identify your two endpoints: (x₁, y₁) and (xβ‚‚, yβ‚‚)
  2. Add the x-coordinates and divide by 2: xβ‚˜ = (x₁ + xβ‚‚) / 2
  3. Add the y-coordinates and divide by 2: yβ‚˜ = (y₁ + yβ‚‚) / 2
  4. Write the midpoint as M(xβ‚˜, yβ‚˜)

Worked Example 1: Basic Midpoint

Find the midpoint of A(6, 3) and B(12, 7).

  1. xβ‚˜ = (6 + 12) / 2 = 18 / 2 = 9
  2. yβ‚˜ = (3 + 7) / 2 = 10 / 2 = 5
  3. Midpoint M = (9, 5)

Worked Example 2: Negative Coordinates

Find the midpoint of A(βˆ’4, 8) and B(6, βˆ’2).

  1. xβ‚˜ = (βˆ’4 + 6) / 2 = 2 / 2 = 1
  2. yβ‚˜ = (8 + (βˆ’2)) / 2 = 6 / 2 = 3
  3. Midpoint M = (1, 3)

Worked Example 3: Decimal Coordinates

Find the midpoint of A(2.5, 7.3) and B(9.1, 4.7).

  1. xβ‚˜ = (2.5 + 9.1) / 2 = 11.6 / 2 = 5.8
  2. yβ‚˜ = (7.3 + 4.7) / 2 = 12.0 / 2 = 6.0
  3. Midpoint M = (5.8, 6.0)

The Distance Formula

The distance formula calculates the length of a line segment between two points. It is derived directly from the Pythagorean theorem:

d = √((xβ‚‚ βˆ’ x₁)Β² + (yβ‚‚ βˆ’ y₁)Β²)

The line segment forms the hypotenuse of a right triangle, where the horizontal leg has length |xβ‚‚ βˆ’ x₁| and the vertical leg has length |yβ‚‚ βˆ’ y₁|. By the Pythagorean theorem, aΒ² + bΒ² = cΒ², so the distance is the square root of the sum of the squared differences.

Worked Example: Distance Between Two Points

Find the distance between A(13, 2) and B(7, 10).

  1. Ξ”x = 7 βˆ’ 13 = βˆ’6
  2. Ξ”y = 10 βˆ’ 2 = 8
  3. (Ξ”x)Β² = (βˆ’6)Β² = 36
  4. (Ξ”y)Β² = 8Β² = 64
  5. Sum = 36 + 64 = 100
  6. d = √100 = 10

Finding a Missing Endpoint

If you know one endpoint and the midpoint, you can find the missing endpoint by rearranging the midpoint formula:

xβ‚‚ = 2Β·xβ‚˜ βˆ’ x₁
yβ‚‚ = 2Β·yβ‚˜ βˆ’ y₁

This works because the midpoint formula says xβ‚˜ = (x₁ + xβ‚‚)/2, which rearranges to xβ‚‚ = 2xβ‚˜ βˆ’ x₁.

Worked Example: Find the Missing Endpoint

Endpoint A = (6, βˆ’4) and midpoint M = (1, 7). Find endpoint B.

  1. xβ‚‚ = 2(1) βˆ’ 6 = 2 βˆ’ 6 = βˆ’4
  2. yβ‚‚ = 2(7) βˆ’ (βˆ’4) = 14 + 4 = 18
  3. Missing endpoint B = (βˆ’4, 18)

Verify: midpoint of (6, βˆ’4) and (βˆ’4, 18) = ((6βˆ’4)/2, (βˆ’4+18)/2) = (1, 7) βœ“

Section Formula: Dividing in Ratio m:n

The midpoint formula is a special case of the section formula, which finds a point that divides a line segment in any ratio m:n (not just 1:1):

P = ((mΒ·xβ‚‚ + nΒ·x₁) / (m + n), (mΒ·yβ‚‚ + nΒ·y₁) / (m + n))

When m = n = 1, this simplifies to the midpoint formula. The section formula is useful in more advanced geometry problems, engineering design, and animation (interpolating between keyframes).

Ratio m:nResultUse Case
1:1Midpoint (exactly halfway)Standard midpoint
1:2One-third of the way from A to BTrisection point
2:1Two-thirds of the way from A to BTrisection point
3:1Three-quarters of the wayQuartile point

Midpoint vs. Centroid vs. Center of Mass

These related concepts are often confused:

ConceptApplies ToFormula
MidpointLine segment (2 points)Average of 2 endpoints
CentroidTriangle (3 vertices)Average of 3 vertices: ((x₁+xβ‚‚+x₃)/3, (y₁+yβ‚‚+y₃)/3)
Center of MassAny shape with mass distributionWeighted average of all points, considering mass

The centroid of a triangle is the intersection of its three medians. Each median connects a vertex to the midpoint of the opposite side β€” so midpoints are essential building blocks for finding centroids.

Real-World Applications in the United States

GPS and Navigation

When GPS navigation apps calculate a route through the United States, they often need the midpoint between two locations. For example, finding the halfway point of a road trip from New York City to Los Angeles uses the midpoint formula on latitude/longitude coordinates. This is essential for planning rest stops, fuel stations, and meeting points. Apps like Google Maps and Apple Maps use midpoint calculations internally for route optimization.

Land Surveying and the PLSS

The Public Land Survey System (PLSS) β€” the framework for dividing land in 30 U.S. states β€” relies heavily on midpoints. Surveyors find midpoints of section lines to establish quarter-section corners. When the Bureau of Land Management (BLM) subdivides a 640-acre section into quarter sections, the midpoints of each boundary line determine the new property corners.

Construction and Architecture

In construction, midpoints are used constantly. Finding the center of a wall for hanging a picture, the center of a beam for load distribution, or the center of a lot for positioning a foundation β€” all of these are midpoint calculations. Architects and builders across the United States use coordinate-based midpoint calculations in CAD software like AutoCAD and Revit.

Game Development and Computer Graphics

In the video game industry, midpoint calculations are fundamental to 2D and 3D graphics. Games compute midpoints for camera positioning (centering between player and target), collision detection (midpoint of bounding boxes), and procedural terrain generation. Major U.S. studios use midpoints in every frame of rendering.

Education and Standardized Testing

The midpoint formula is a core topic in Pre-Algebra, Algebra I, and Geometry courses across American schools, tested on the SAT, ACT, and GRE. The Common Core State Standards include coordinate geometry skills that build directly on the midpoint and distance formulas.

M = ((x₁ + xβ‚‚) / 2, (y₁ + yβ‚‚) / 2)

Where:

  • (x₁, y₁) = Coordinates of endpoint A
  • (xβ‚‚, yβ‚‚) = Coordinates of endpoint B
  • M(xβ‚˜, yβ‚˜) = Midpoint β€” the center of the line segment
  • d = √((xβ‚‚βˆ’x₁)Β²+(yβ‚‚βˆ’y₁)Β²) = Distance formula β€” derived from the Pythagorean theorem
  • xβ‚‚ = 2xβ‚˜ βˆ’ x₁ = Missing endpoint formula β€” rearranged from midpoint formula

πŸ“ Worked Example

1

Midpoint

((6+12)/2, (3+7)/2)

= (9, 5)

2

Distance

√((7βˆ’13)Β²+(10βˆ’2)Β²) = √(36+64)

= 10

3

Endpoint

xβ‚‚=2(1)βˆ’6, yβ‚‚=2(7)βˆ’(βˆ’4)

= (βˆ’4, 18)

Midpoint Calculator FAQ