freeCodeCamp/guide/english/mathematics/the-midpoint-formula/index.md

16 lines
461 B
Markdown

---
title: The Midpoint Formula
---
## The Midpoint Formula
In math, the midpoint is the middle point of a line segment.
![img](https://upload.wikimedia.org/wikipedia/commons/thumb/6/68/Midpoint.svg/282px-Midpoint.svg.png)
In two dimensions, for a line segment with endpoints (x1,y1) and (x2,y2), the midpoint is the halfway point, midpoint = ((x1+x2)/2,(y1+y2)/2).
#### More Information:
- [Wikipedia - Midpoint](https://en.wikipedia.org/wiki/Midpoint)