Midpoint Calculator
Find the midpoint of a line segment from two endpoints, along with the length and slope of that segment.
Midpoint calculator
Midpoint: —
Segment length: —
Slope: —
How to use the Midpoint Calculator
- Enter the x and y of the first endpoint.
- Enter the x and y of the second endpoint.
- Read the midpoint, the segment length and the slope below.
Features
- Midpoint of any line segment
- Also shows the length of the segment
- Slope of the same segment included
- Works with negative and decimal coordinates
Advertisement
Frequently Asked Questions
Common questions about the free online midpoint calculator.
Add the two x values and divide by two, then do the same with the two y values. The tool
works this out as you type.
The midpoint is the average of the endpoints: x is x1 plus x2 divided by 2, and y is y1 plus
y2 divided by 2.
Yes. If the endpoint coordinates add up to an odd number the midpoint contains a half, such
as 2.5 or 3.5.
No. Addition is commutative, so either endpoint can be entered first and the midpoint comes
out the same.
It also reports the length of the segment and its slope, which helps you check that the
midpoint sits on the segment.
Yes. Negative and decimal coordinates are supported, so points in any of the four quadrants
work correctly.
No. Everything is computed locally in your browser and nothing you enter is transmitted
anywhere.
Yes. It is completely free and unlimited, with no sign up, no account and no usage limits at
all.
Last updated: October 10, 2026