๐Ÿ‡บ๐Ÿ‡ธ USC
Math & Conversion
๐Ÿ“

Midpoint Calculator

Find the midpoint, distance and slope between two points

๐Ÿ“ Enter the two points

๐ŸŽฏ Midpoint

(1, 5.5)
midpoint M (x, y)

๐Ÿ“ Distance & slope

Distance between points
7.8102
Slope of the line
0.8333
Horizontal change (ฮ”x)
6
Vertical change (ฮ”y)
5

๐Ÿงฎ Step-by-step

1. Midpoint x-coordinate
xโ‚˜ = (xโ‚ + xโ‚‚) / 2 = (-2 + 4) / 2 = 1
2. Midpoint y-coordinate
yโ‚˜ = (yโ‚ + yโ‚‚) / 2 = (3 + 8) / 2 = 5.5
3. Distance (Pythagorean)
d = โˆš((xโ‚‚ โˆ’ xโ‚)ยฒ + (yโ‚‚ โˆ’ yโ‚)ยฒ) = โˆš((6)ยฒ + (5)ยฒ) = 7.8102
4. Slope
m = (yโ‚‚ โˆ’ yโ‚) / (xโ‚‚ โˆ’ xโ‚) = 5 / 6 = 0.8333

๐Ÿ“‹ Summary

QuantityValue
Point 1 (xโ‚, yโ‚)(-2, 3)
Point 2 (xโ‚‚, yโ‚‚)(4, 8)
Midpoint M(1, 5.5)
Distance7.8102
Slope0.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. If you only need one of those numbers on its own, the dedicated Distance Calculator and Slope Calculator show the same arithmetic in more detail.

How to use this midpoint calculator

You only need four numbers - the coordinates of your two points. Work through the fields in order:

  1. Point 1 (xโ‚, yโ‚): enter the x-coordinate and y-coordinate of your first point. Negatives and decimals are fine.
  2. Point 2 (xโ‚‚, yโ‚‚): enter the coordinates of your second point.
  3. Read the midpoint: the large result at the top is the midpoint M (x, y). It updates instantly as you type.
  4. Check the extras: the supporting cards show the distance between the points and the slope of the connecting line.
  5. 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)40
(0, 0)(0, 6)(0, 3)6Undefined
(1, 1)(5, 5)(3, 3)โ‰ˆ 5.661
(-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. Since the distance formula is really the Pythagorean theorem in disguise, the same right-triangle logic underpins all three. The midpoint is also the basis of a triangle's centroid (the average of all three vertices, useful when you solve a figure in the Triangle Calculator) 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 - the very calculation behind our Average Calculator.

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.

The midpoint on a number line (1D)

Before the (x, y) plane, students first meet the midpoint on a plain number line. Here there is only one coordinate, so the formula collapses to a single average: the midpoint of two numbers a and b is simply (a + b) ÷ 2. The midpoint of 4 and 10 is 7; the midpoint of −6 and 2 is −2. This is the same operation you perform on each axis in two dimensions - the 2D midpoint is just two 1D midpoints stacked together, one for x and one for y. Recognizing this connection makes the coordinate formula far less intimidating: you already knew how to find the number halfway between two values, and the plane version only asks you to do it twice. It is also why the midpoint is identical to the arithmetic mean of two numbers, and why a temperature, a price, or a test score halfway between two readings is found the exact same way.

The section formula: midpoints at any ratio

The midpoint is a special case of a broader tool called the section formula, which finds the point that divides a segment in any ratio m : n, not just the 1 : 1 split that produces the midpoint. For a segment from A (xโ‚, yโ‚) to B (xโ‚‚, yโ‚‚), the point that divides it in the ratio m : n (measured from A toward B) is:

P = ( (m·xโ‚‚ + n·xโ‚) ÷ (m + n) , (m·yโ‚‚ + n·yโ‚) ÷ (m + n) )

When m = n = 1, every term simplifies and you are left with the familiar (xโ‚ + xโ‚‚) ÷ 2 and (yโ‚ + yโ‚‚) ÷ 2 - the midpoint. Set the ratio to 2 : 1 and you get the point one-third of the way from B, or two-thirds of the way from A. The section formula is what you reach for when a problem asks for a "trisection point," a weighted center, or the point where a segment is cut by a given fraction. Surveyors, animators, and route planners all use ratio-based division when an exact halfway point is not what they need - for example, placing a waypoint 70% of the way along a path. The midpoint is just the friendliest, most common case.

Perpendicular bisectors and the centroid

Two of geometry's most useful constructions are built directly on the midpoint. A perpendicular bisector is the line that passes through the midpoint of a segment at a right angle to it. Every point on that line is exactly the same distance from both endpoints, which is why perpendicular bisectors are used to locate the center of a circle through three points and to find the equidistant boundary between two locations. To write its equation, you first find the midpoint (the point it passes through), then take the negative reciprocal of the segment's slope (the direction it must run to be perpendicular). The centroid of a triangle - its balance point - is the average of all three vertices: ((xโ‚ + xโ‚‚ + xโ‚ƒ) ÷ 3, (yโ‚ + yโ‚‚ + yโ‚ƒ) ÷ 3). It is the same averaging idea extended from two points to three, and each median of the triangle runs from a vertex to the midpoint of the opposite side. So a single midpoint calculation is often the first step in a much larger construction.

Real-world uses of the midpoint

The midpoint formula is one of the few pieces of coordinate geometry that genuinely shows up in everyday work, not just exams. A handful of concrete scenarios:

  • Meeting halfway: two friends on opposite sides of a city grid can find the fair central point to meet by averaging their grid coordinates - the same logic many "meet in the middle" map tools use behind the scenes (for true road or flight distances on a curved Earth you would switch to a great-circle method instead).
  • Graphic design and UI layout: centering a button, icon, or text block between two anchor points is a midpoint calculation. Designers find the center of a bounding box by averaging its opposite corners.
  • Game development: spawning an effect, a camera target, or a power-up halfway between two characters uses the 2D midpoint every frame; the 3D version places objects between vertices in a model.
  • CAD and engineering: drafting software snaps to the midpoint of an edge to add a fastener, fold line, or dimension mark exactly at center.
  • Data and statistics: the midpoint of a class interval (for example, the value halfway between 20 and 30 is 25) is used to estimate the mean of grouped data, tying the formula back to the average and to standard deviation work.
  • Construction and surveying: marking the center of a beam, a property line, or a foundation between two staked corners is a physical midpoint.

Midpoint vs distance vs slope: which do you need?

The midpoint, distance, and slope are computed from the very same two points, but they answer different questions, and mixing them up is a frequent source of lost marks. The midpoint answers "where is the center?" and uses addition then division. The distance answers "how long is the segment?" and uses subtraction, squaring, and a square root. The slope answers "which way and how steeply does the line go?" and uses subtraction then division (rise over run). A quick way to keep them straight: the midpoint is the only one of the three that adds the coordinates; both distance and slope start by subtracting them. This calculator reports all three at once precisely so you can see how they relate - the midpoint always sits on the line whose slope you computed, exactly half the distance from each end.

Is the midpoint always inside the segment?

Yes - and this is a useful intuition check. Because the midpoint is the average of the two endpoints, each of its coordinates always lands between the corresponding coordinates of the endpoints (or exactly on one of them if they are equal). The midpoint can never fall outside the segment, never to the left of the leftmost point, and never above the highest point. If your computed midpoint lands outside the box formed by the two points, you have made an arithmetic error - most often a sign mistake or an accidental subtraction. This bounding property is part of what makes the midpoint such a reliable, self-checking calculation, and it distinguishes the midpoint from the extension of a segment, where you deliberately step beyond an endpoint using the section formula with a ratio outside 0 to 1.

Why dividing by 2 always works

It can feel almost too simple that "add and halve" lands precisely in the center, so it is worth seeing why. The distance from the first point to the midpoint, along the x-axis, is (xโ‚ + xโ‚‚)/2 − xโ‚ = (xโ‚‚ − xโ‚)/2. The distance from the midpoint to the second point is xโ‚‚ − (xโ‚ + xโ‚‚)/2 = (xโ‚‚ − xโ‚)/2. The two halves are identical, so the midpoint is genuinely equidistant - and the same algebra holds on the y-axis. That equality is the mathematical guarantee behind the "half-distance self-check" mentioned earlier: a correctly computed midpoint is, by construction, the same distance from each endpoint. There is nothing approximate about it; with exact inputs the midpoint is exact, and the calculator rounds only the on-screen display, never the underlying arithmetic.

โš ๏ธ 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.

Note: This calculator covers the standard 2D Cartesian plane. For geographic midpoints on a curved Earth, a great-circle calculation is needed instead.

❓ 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.

How do I find a point that is not exactly halfway, like one-third of the way?

Use the section formula, which generalizes the midpoint to any ratio m:n. The point dividing the segment from A to B in ratio m:n is ((m*x2 + n*x1)/(m+n), (m*y2 + n*y1)/(m+n)). Setting m = n = 1 gives the midpoint. To find the point one-third of the way from A, use the ratio 1:2; for two-thirds of the way, use 2:1.

What is a perpendicular bisector and how does the midpoint relate to it?

A perpendicular bisector is the line that passes through the midpoint of a segment at a right angle to it. Every point on it is the same distance from both endpoints. To build it, find the midpoint (the point it passes through), then use the negative reciprocal of the segment's slope as its direction. It is widely used to find the center of a circle through three points.

Can the midpoint ever land outside the two points?

No. Because the midpoint is the average of the endpoints, each of its coordinates always lies between the matching coordinates of the two points. If your answer falls outside the rectangle formed by the points, you have made an arithmetic slip - usually a sign error or an accidental subtraction.

๐Ÿ’ก 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