Midpoint
Details
- Midpoint gives a list of coordinates if p1 and p2 are lists of coordinates.
- Midpoint gives a Point object if p1 and p2 are Point objects.
- The pi in Midpoint[{p1,p2}] can be lists of coordinates or explicit Point objects.
- Midpoint[Line[{p1,p2}]] is equivalent to Midpoint[{p1,p2}].
- Midpoint[{p1,p2}] gives the point that is halfway between the points p1 and p2.
- Midpoint works in any number of dimensions.
- Midpoint can be used with symbolic points in GeometricScene.
Examples
open all close allBasic Examples (1)
Scope (5)
Midpoint works in 2D:
Midpoint[{{1, 1}, {3, 4}}]Midpoint works in 3D:
Midpoint[{{1, 2, 3}, {4, 5, 6}}]Midpoint works in nD:
Midpoint[{{1, 2, -1, 3}, {4, 2, -3, -2}}]Midpoint[{Point[{1, 2}], Point[{-2, 3}]}]Midpoint works on symbolic coordinates:
Midpoint[{{a, b}, {c, d}}]Properties & Relations (4)
The midpoint is equidistant from the two points:
EuclideanDistance[{1, 2}, Midpoint[{{1, 2}, {3, 4}}]]EuclideanDistance[Midpoint[{{1, 2}, {3, 4}}], {3, 4}]For coordinates, Midpoint gives the same result as Mean:
Midpoint[{{1, 2}, {-3, 5}}]Mean[{{1, 2}, {-3, 5}}]The PerpendicularBisector passes through the Midpoint:
PerpendicularBisector[{{1, 2}, {-3, 5}}]Midpoint[{{1, 2}, {-3, 5}}]Graphics[{Point[{-1, 7 / 2}], Line[{{1, 2}, {-3, 5}}], Style[InfiniteLine[{-1, 7 / 2}, {3, 4}], Dashed]}]TriangleCenter[{a,b,c},"Midpoint"] is equivalent to Midpoint[{a,c}]:
TriangleCenter[{{0, 0}, {1, 0}, {1, 3}}, "Midpoint"]Midpoint[{{0, 0}, {1, 3}}]Possible Issues (2)
Midpoint behaves differently on symbolic points than Mean:
Midpoint[{a, b}]Mean[{a, b}]Midpoint behaves differently on Point objects than Mean:
Midpoint[{Point[{-1, 2}], Point[{3, -2}]}]Mean[{Point[{-1, 2}], Point[{3, -2}]}]Related Guides
History
Text
Wolfram Research (2019), Midpoint, Wolfram Language function, https://reference.wolfram.com/language/ref/Midpoint.html.
CMS
Wolfram Language. 2019. "Midpoint." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Midpoint.html.
APA
Wolfram Language. (2019). Midpoint. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Midpoint.html
BibTeX
@misc{reference.wolfram_2026_midpoint, author="Wolfram Research", title="{Midpoint}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Midpoint.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_midpoint, organization={Wolfram Research}, title={Midpoint}, year={2019}, url={https://reference.wolfram.com/language/ref/Midpoint.html}, note=[Accessed: 13-June-2026]}