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
StepβbyβStep
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:
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β.
| Variable | Meaning |
|---|---|
| (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β)/2 | Average of x-coordinates |
| yβ = (yβ+yβ)/2 | Average of y-coordinates |
Midpoint in 3D
The formula extends naturally to three dimensions. For points A(xβ, yβ, zβ) and B(xβ, yβ, zβ):
How to Find the Midpoint Step by Step
Follow these simple steps:
- Identify your two endpoints: (xβ, yβ) and (xβ, yβ)
- Add the x-coordinates and divide by 2: xβ = (xβ + xβ) / 2
- Add the y-coordinates and divide by 2: yβ = (yβ + yβ) / 2
- Write the midpoint as M(xβ, yβ)
Worked Example 1: Basic Midpoint
Find the midpoint of A(6, 3) and B(12, 7).
- xβ = (6 + 12) / 2 = 18 / 2 = 9
- yβ = (3 + 7) / 2 = 10 / 2 = 5
- Midpoint M = (9, 5)
Worked Example 2: Negative Coordinates
Find the midpoint of A(β4, 8) and B(6, β2).
- xβ = (β4 + 6) / 2 = 2 / 2 = 1
- yβ = (8 + (β2)) / 2 = 6 / 2 = 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).
- xβ = (2.5 + 9.1) / 2 = 11.6 / 2 = 5.8
- yβ = (7.3 + 4.7) / 2 = 12.0 / 2 = 6.0
- 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:
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).
- Ξx = 7 β 13 = β6
- Ξy = 10 β 2 = 8
- (Ξx)Β² = (β6)Β² = 36
- (Ξy)Β² = 8Β² = 64
- Sum = 36 + 64 = 100
- 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:
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.
- xβ = 2(1) β 6 = 2 β 6 = β4
- yβ = 2(7) β (β4) = 14 + 4 = 18
- 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):
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:n | Result | Use Case |
|---|---|---|
| 1:1 | Midpoint (exactly halfway) | Standard midpoint |
| 1:2 | One-third of the way from A to B | Trisection point |
| 2:1 | Two-thirds of the way from A to B | Trisection point |
| 3:1 | Three-quarters of the way | Quartile point |
Midpoint vs. Centroid vs. Center of Mass
These related concepts are often confused:
| Concept | Applies To | Formula |
|---|---|---|
| Midpoint | Line segment (2 points) | Average of 2 endpoints |
| Centroid | Triangle (3 vertices) | Average of 3 vertices: ((xβ+xβ+xβ)/3, (yβ+yβ+yβ)/3) |
| Center of Mass | Any shape with mass distribution | Weighted 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.
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
Midpoint
((6+12)/2, (3+7)/2)= (9, 5)
Distance
β((7β13)Β²+(10β2)Β²) = β(36+64)= 10
Endpoint
xβ=2(1)β6, yβ=2(7)β(β4)= (β4, 18)