Midpoint Calculator
Find the midpoint, distance and slope between two points
๐ Enter the two points
๐ฏ Midpoint
๐ Distance & slope
๐งฎ Step-by-step
๐ Summary
| Quantity | Value |
|---|---|
| Point 1 (xโ, yโ) | (-2, 3) |
| Point 2 (xโ, yโ) | (4, 8) |
| Midpoint M | (1, 5.5) |
| Distance | 7.8102 |
| Slope | 0.8333 |
Results use exact arithmetic and are rounded for display. The midpoint is the arithmetic mean of the two coordinates; distance uses the Pythagorean theorem and slope is rise over run.
Last updated June 2026
Method: The midpoint uses the standard formula M = ((xโ + xโ)/2, (yโ + yโ)/2). Distance uses the Pythagorean theorem and slope is rise over run - all exact arithmetic, rounded only for display.
Included: Midpoint coordinates, straight-line distance between the points, the slope of the line through them, the horizontal and vertical change, and a step-by-step breakdown.
Not included: Curved-path distances, geographic (latitude/longitude) great-circle midpoints, and 3D coordinates - this tool covers the standard 2D Cartesian plane.
Midpoint calculator: everything you need to know
The midpoint of a line segment is the point that sits exactly halfway between its two endpoints. If you have two points on a graph - say a start and an end, two cities on a map grid, or two data readings - the midpoint tells you the precise center between them. This midpoint calculator takes any two coordinates, applies the midpoint formula, and shows the answer along with the distance between the points and the slope of the line that joins them. As a quick worked example, the midpoint of (-2, 3) and (4, 8) is (1, 5.5): add the x-values (-2 + 4 = 2, then รท 2 = 1) and add the y-values (3 + 8 = 11, then รท 2 = 5.5).
The midpoint formula
The midpoint M of the segment joining point A (xโ, yโ) and point B (xโ, yโ) is found by averaging the coordinates:
M = ( (xโ + xโ) ÷ 2 , (yโ + yโ) ÷ 2 ) In plain language: the midpoint's x-coordinate is the average of the two x-values, and its y-coordinate is the average of the two y-values. Each axis is handled independently, which is why the formula is so easy to apply by hand. The midpoint is, quite literally, the arithmetic mean of the two points.
Distance and slope, too
Two values often travel with the midpoint, so this calculator reports them as well. The distance between the points uses the Pythagorean theorem:
d = √( (xโ − xโ)² + (yโ − yโ)² ) and the slope of the line through them is rise over run:
m = (yโ − yโ) ÷ (xโ − xโ) The midpoint always lies on that same line, exactly half the distance from each endpoint - a handy way to sanity-check your work.
How to use this midpoint calculator
You only need four numbers - the coordinates of your two points. Work through the fields in order:
- Point 1 (xโ, yโ): enter the x-coordinate and y-coordinate of your first point. Negatives and decimals are fine.
- Point 2 (xโ, yโ): enter the coordinates of your second point.
- Read the midpoint: the large result at the top is the midpoint M (x, y). It updates instantly as you type.
- Check the extras: the supporting cards show the distance between the points and the slope of the connecting line.
- Follow the steps: the step-by-step section substitutes your exact numbers into each formula so you can copy the working into homework or double-check it.
There is no "calculate" button to press - every field is live, so editing any coordinate immediately re-computes the midpoint, distance and slope.
Who this calculator is for
The midpoint formula shows up far beyond the geometry classroom. This tool helps:
- Students learning coordinate geometry, who need both the answer and the steps.
- Teachers and tutors generating worked examples on the fly.
- Designers and CAD users finding the center of a line, edge, or bounding box.
- Game and graphics developers placing an object halfway between two sprites or vertices.
- Map and survey users finding the grid center between two plotted locations.
- Anyone who needs the exact halfway point between two numeric positions.
Worked example 1: simple whole numbers
Find the midpoint of A (2, 4) and B (6, 10). Average the x-values: (2 + 6) รท 2 = 4. Average the y-values: (4 + 10) รท 2 = 7. So the midpoint is (4, 7). The distance is โ((6โ2)ยฒ + (10โ4)ยฒ) = โ(16 + 36) = โ52 โ 7.21, and the slope is (10โ4) รท (6โ2) = 6 รท 4 = 1.5.
Worked example 2: negatives and a decimal result
Find the midpoint of A (-3, 5) and B (4, -2). Average the x-values: (-3 + 4) รท 2 = 0.5. Average the y-values: (5 + (-2)) รท 2 = 1.5. The midpoint is (0.5, 1.5). Notice that mixing positive and negative coordinates is no problem - you still just add and halve. The distance here is โ((4โ(โ3))ยฒ + (โ2โ5)ยฒ) = โ(49 + 49) = โ98 โ 9.90.
Worked example 3: working backward to an endpoint
Suppose the midpoint M is (5, 5) and one endpoint A is (2, 1). To find the other endpoint B, double the midpoint and subtract A: Bโ = 2(5) โ 2 = 8 and B_y = 2(5) โ 1 = 9, so B = (8, 9). This "find the missing endpoint" task is a frequent exam variation, and it follows directly from rearranging the midpoint formula.
Quick reference table
A few common pairs and their midpoints, distances, and slopes for sanity checks:
| Point 1 | Point 2 | Midpoint | Distance | Slope |
|---|---|---|---|---|
| (0, 0) | (4, 0) | (2, 0) | 4 | 0 |
| (0, 0) | (0, 6) | (0, 3) | 6 | Undefined |
| (1, 1) | (5, 5) | (3, 3) | โ 5.66 | 1 |
| (-2, 3) | (4, 8) | (1, 5.5) | โ 7.81 | โ 0.83 |
| (-3, -4) | (3, 4) | (0, 0) | 10 | โ 1.33 |
Key terms explained
- Coordinate: a pair (x, y) that fixes a point's horizontal and vertical position on the plane.
- Line segment: the straight piece of line between two endpoints. The midpoint divides it into two equal halves.
- Midpoint: the point halfway along a segment; the coordinate-wise average of the endpoints.
- Distance: the straight-line length of the segment, from the Pythagorean theorem.
- Slope: the steepness of the line, rise over run; positive slopes go up to the right, negative slopes go down.
- ฮx and ฮy: the change in x and the change in y between the two points (xโ โ xโ and yโ โ yโ).
Tips for getting it right
- Keep x with x and y with y. Never average an x against a y - the two axes are computed separately.
- Watch the signs. Adding a negative is the most common slip; (โ3) + 4 = 1, not 7.
- Expect decimals. A coordinate ending in .5 is normal because you divide by 2.
- Use the half-distance check. The midpoint should be the same distance from each endpoint; if it is not, recheck your arithmetic.
- Order does not matter. Swapping the two points gives the same midpoint, so enter them however is convenient.
Related concepts
The midpoint sits inside a small family of coordinate-geometry tools. The distance formula measures the length of the segment; the slope formula measures its direction; and the section formula generalizes the midpoint to any ratio, not just the 1:1 split that produces the midpoint. The midpoint is also the basis of a triangle's centroid (the average of all three vertices) and of perpendicular bisectors, which pass through the midpoint at a right angle. Because the midpoint is just an average, the same averaging idea links it to the mean used throughout statistics.
Beyond two dimensions
The midpoint idea is not limited to the flat plane. In three dimensions you add a z-term: M = ((xโ + xโ)/2, (yโ + yโ)/2, (zโ + zโ)/2). The pattern - average each coordinate independently - extends to any number of dimensions. For two-dimensional work, which covers most homework, maps, and screen layouts, the (x, y) calculator above is all you need.
โ ๏ธ Common mistakes & edge cases
Subtracting instead of adding
The midpoint uses addition: (xโ + xโ) รท 2. The distance and slope use subtraction. Mixing them up is the number-one error - if you subtract for the midpoint you get the offset, not the center.
Mishandling negative coordinates
Adding a negative reduces the sum. For (โ5, 2) and (3, 6) the x-midpoint is (โ5 + 3) รท 2 = โ1, not 4. Always keep the signs attached to each number before averaging.
Pairing the wrong coordinates
Average x-values with x-values and y-values with y-values only. Crossing them - say averaging xโ with yโ - produces a point that has no geometric meaning.
Expecting a slope on a vertical line
If both points share the same x-value, the run is zero and the slope is undefined (the line is vertical). The midpoint still exists and is correct; only the slope is undefined.
❓ Frequently asked questions
What is the midpoint formula?
The midpoint formula is M = ((x1 + x2) / 2, (y1 + y2) / 2). You add the two x-coordinates and divide by 2 to get the midpoint's x-coordinate, then add the two y-coordinates and divide by 2 to get its y-coordinate. The midpoint is simply the average of the two points and lies exactly halfway along the line segment that joins them.
How do I find the midpoint between two points?
Take the two points (x1, y1) and (x2, y2). Add the x-values and divide by 2, then add the y-values and divide by 2. For example, the midpoint of (-2, 3) and (4, 8) is ((-2 + 4) / 2, (3 + 8) / 2) = (1, 5.5). The calculator above does this instantly and shows each step.
Can a midpoint have a fraction or decimal coordinate?
Yes. Because you divide by 2, the midpoint often has a coordinate ending in .5 even when both original points are whole numbers. For instance, the midpoint of (1, 1) and (2, 4) is (1.5, 2.5). A non-integer midpoint is completely normal and correct.
How is the distance between the two points calculated?
Distance uses the Pythagorean theorem: d = sqrt((x2 - x1)^2 + (y2 - y1)^2). It measures the straight-line length of the segment. The midpoint always sits exactly half that distance from each endpoint, which is a useful way to check your answer.
What is the slope shown alongside the midpoint?
Slope is the steepness of the line through the two points: m = (y2 - y1) / (x2 - x1), or rise over run. The midpoint lies on this same line. If the two points share the same x-value the line is vertical and the slope is undefined.
What if both points are the same?
If (x1, y1) equals (x2, y2), the segment has zero length. The midpoint is just that same point, the distance is 0, and the slope is undefined because there is no run. The calculator flags this case for you.
Does the order of the two points matter?
No. Addition is commutative, so (x1 + x2) / 2 gives the same result as (x2 + x1) / 2. You can enter the points in either order and get the identical midpoint, distance and (absolute) slope.
Can I use the midpoint formula in 3D?
Yes. In three dimensions you simply add a z-term: M = ((x1 + x2) / 2, (y1 + y2) / 2, (z1 + z2) / 2). The same averaging idea extends to any number of dimensions. This calculator focuses on the 2D (x, y) case, which is what most coursework and maps require.
How do I find an endpoint when I know the midpoint?
Rearrange the formula. If M is the midpoint and A is one endpoint, the other endpoint B is B = (2*Mx - Ax, 2*My - Ay). In words: double the midpoint coordinate and subtract the known endpoint. This is a common follow-up problem in geometry homework.
Is the midpoint the same as the average?
Yes, essentially. The midpoint is the coordinate-wise average (arithmetic mean) of the two points. That is why it always lands exactly halfway between them and why each coordinate can be found independently.
๐ก Good to know
The midpoint is just an average
If you can find the mean of two numbers, you can find a midpoint - do it once for the x-values and once for the y-values. That is the whole formula, which is why a non-integer answer is perfectly normal.
Order never changes the answer
Because addition is commutative, swapping point 1 and point 2 gives the exact same midpoint and distance. Enter them in whichever order is easiest to read off your problem.
A built-in self-check
A correct midpoint is the same distance from each endpoint - exactly half the total length. If you measure unequal halves, your arithmetic slipped somewhere. The step-by-step panel above makes it easy to spot.
Related Calculators
Percentage Calculator
Solve any percentage problem - what is X% of Y and more
Fraction Calculator
Add, subtract, multiply and divide fractions
Scientific Calculator
A full scientific calculator with trig, logs and more
Average Calculator
Calculate the mean, median and mode of numbers
Square Root Calculator
Find the square root of any number
Exponent Calculator
Raise numbers to any power