Free · Draggable graph · Exact fractions · 1D / 2D / 3D

Midpoint Formula Calculator — Find the Midpoint of Two Points in 1D, 2D & 3D with an Interactive Graph

The midpoint of two points is the average of their coordinates. For (x₁, y₁) and (x₂, y₂): M = ((x₁ + x₂)/2, (y₁ + y₂)/2). The midpoint of (2, 3) and (8, 11) is ((2 + 8)/2, (3 + 11)/2) = (5, 7). This calculator finds it instantly with a live, draggable coordinate plane, full step-by-step working, exact fraction answers, missing-endpoint recovery, the section formula for any ratio, and centroids of 3–5 points — in one, two or three dimensions. Distance, slope and the perpendicular bisector are computed alongside.
📍 Draggable graph 🔢 Exact fractions 📐 1D · 2D · 3D ↩️ Missing endpoint ➗ Any ratio 📊 Centroid 🖨 Worksheet

Midpoint Formula Calculator

Type coordinates, or drag the points on the graph.
Dimension
Coordinates
Drag a point · scroll to zoom · arrow keys to nudge
Interactive coordinate graph Plot of the endpoints and the computed result.
AM = MB — the midpoint splits the segment into two equal halves ✓ Equal
AM MB
📝 Step-by-step working
✅ Check your answer — and diagnose the mistake

Work it out on paper first, then type your answer. The tool compares coordinate by coordinate and names the likely slip.

🖨 Worksheet generator — printable practice
⚡ Example problems — load one
🕘 Recent calculations

What is a midpoint?

The midpoint of a line segment is the point that sits exactly halfway between its two endpoints. It divides the segment into two pieces of equal length, and it is the same distance from each end. In a coordinate system, the midpoint is found by averaging the coordinates of the endpoints — separately for each axis.

Three properties make the midpoint useful. It is unique: a segment has exactly one halfway point. It is symmetric: swapping the endpoints changes nothing. And it is the centre of symmetry of the segment — a half-turn about the midpoint maps each endpoint onto the other.

The midpoint is also the centre of the circle that has the segment as a diameter. That fact turns up constantly in circle geometry, in perpendicular-bisector constructions, and in finding the centre of a circle from any diameter.

In one line: the midpoint is the average of the endpoints. Average the x-values, average the y-values, and (in 3D) average the z-values. Nothing else is involved.

The midpoint formula

Two dimensions

For endpoints A(x₁, y₁) and B(x₂, y₂), the midpoint M is:

M = ( (x₁ + x₂) / 2 , (y₁ + y₂) / 2 )

Three dimensions

For A(x₁, y₁, z₁) and B(x₂, y₂, z₂):

M = ( (x₁ + x₂)/2 , (y₁ + y₂)/2 , (z₁ + z₂)/2 )

One dimension (a number line)

For two numbers a and b on a number line, the midpoint is simply (a + b) / 2. The midpoint of 4 and 10 is 7; the midpoint of −6 and 2 is −2.

Why it works

Moving halfway along a segment means covering half of the total horizontal change and half of the total vertical change. The total horizontal change from A to B is x₂ − x₁, so half of it is (x₂ − x₁)/2. Adding that to the starting x:

x₁ + (x₂ − x₁)/2 = (2x₁ + x₂ − x₁)/2 = (x₁ + x₂)/2

which is exactly the average. The identical argument applies to y and to z. So the formula is not a rule to memorise — it is the direct consequence of "halfway means half the change".

This is also why the midpoint is described as the arithmetic mean of the endpoints, coordinate by coordinate. It is the same operation you use to average any two numbers, applied once per axis.

How to use this calculator

  1. Choose what to find. The four tabs are four different problems, not four skins of the same output:
    • Midpoint — you have both endpoints and want the halfway point.
    • Missing Endpoint — you have one endpoint and the midpoint, and need the other endpoint. This is the reverse calculation, B = 2M − A.
    • Ratio Point — you have both endpoints and a ratio, and want the point that splits the segment in that ratio (the section formula). The midpoint is the 1 : 1 case.
    • Centroid — you have three to five points and want their average position.
  2. Pick a dimension. 1D shows a number line, 2D a coordinate plane, 3D an orbitable spatial view. The inputs change to match.
  3. Enter the coordinates. Whole numbers, decimals, negatives, fractions like 3/4, mixed numbers like 1 1/2, and scientific notation like 1.2e3 are all accepted. Every value is held as an exact rational number, so 1/3 never becomes 0.3333… in the working.
  4. Or drag the points. On the graph, each point is a draggable handle. Move A or B and the midpoint updates live — the fastest way to build intuition about how the formula behaves. Use Snap to land on whole-number grid positions, or turn it off for free movement. Keyboard users can focus a handle and nudge it with the arrow keys.
  5. Read the result and the working. The result card gives the exact answer in both fraction and decimal form. The step-by-step panel shows the formula, the substitution, the simplification and the final division, exactly as you would write it on paper.
  6. Check the geometry. The properties panel reports AM and MB (they must be equal), the full distance AB, the slope, and the perpendicular-bisector slope, plus two algebraic verification checks.
Tip: the overlays in the toolbar are teaching aids. Guides draws dashed lines from each point to the axes so you can see that the midpoint's x sits exactly between the two x-values. Bisector draws the perpendicular bisector through M. Quarter points marks the 25% and 75% positions, which is where the 1 : 3 and 3 : 1 section points land.

Worked examples

Example 1 — positive integers

Find the midpoint of (2, 3) and (8, 11).

x = (2 + 8) / 2 = 10 / 2 = 5
y = (3 + 11) / 2 = 14 / 2 = 7
Midpoint = (5, 7)

Check: from (2, 3) to (5, 7) is 3 right and 4 up; from (5, 7) to (8, 11) is 3 right and 4 up. Equal moves, so M is genuinely halfway.

Example 2 — negative coordinates

Find the midpoint of (−4, 2) and (6, −8).

x = (−4 + 6) / 2 = 2 / 2 = 1
y = (2 − 8) / 2 = −6 / 2 = −3
Midpoint = (1, −3)

Negative coordinates need no special rule. The only real risk is arithmetic: −4 + 6 = +2, not −10, and 2 + (−8) = −6. Adding a negative is subtraction.

Example 3 — a fractional midpoint

Find the midpoint of (1, 0) and (2, 1).

x = (1 + 2) / 2 = 3/2 = 1.5
y = (0 + 1) / 2 = 1/2 = 0.5
Midpoint = (3/2, 1/2) = (1.5, 0.5)

A half-unit midpoint is normal, not a mistake. Whenever two coordinates differ by an odd number, their average is a half. This calculator keeps the exact fraction (3/2) alongside the decimal so the answer stays usable in a proof.

Example 4 — a missing endpoint

The midpoint of AB is M(5, 6) and one endpoint is A(2, 3). Find B.

x₂ = 2·Mx − x₁ = 2(5) − 2 = 10 − 2 = 8
y₂ = 2·My − y₁ = 2(6) − 3 = 12 − 3 = 9
B = (8, 9)

The logic is that the midpoint is the average, so doubling it must give the sum of the endpoints. Subtract the endpoint you know and what remains is the endpoint you do not.

Example 5 — a section point

Find the point that divides the segment from A(1, 2) to B(11, 7) in the ratio 2 : 3 (so AP : PB = 2 : 3).

P = ( (3·1 + 2·11) / (2+3) , (3·2 + 2·7) / (2+3) )
P = ( (3 + 22) / 5 , (6 + 14) / 5 )
P = ( 25/5 , 20/5 ) = (5, 4)

The point sits two-fifths of the way from A to B, which is what a 2 : 3 ratio means: 2 parts out of the 5 total parts.

Example 6 — three dimensions

Find the midpoint of (1, 2, 3) and (5, 8, −1).

x = (1 + 5)/2 = 3
y = (2 + 8)/2 = 5
z = (3 − 1)/2 = 1
Midpoint = (3, 5, 1)

Each axis is averaged independently, exactly as in 2D. The axes never interact — that is why adding a third dimension changes nothing about the method.

Finding a missing endpoint

This is the midpoint formula run backwards, and it appears in exams constantly. If M is the midpoint of AB, then:

B = 2M − A   →   x₂ = 2·Mx − x₁ ,   y₂ = 2·My − y₁

Doubling the midpoint gives the sum of the two endpoints; subtracting the known endpoint leaves the unknown one. A quick sanity check is to re-average the answer with the known endpoint and confirm you get M back.

A common variant gives you only one coordinate of the missing endpoint. If you know the midpoint's x and both y-values, only the x arithmetic is needed — the axes are independent, so you can solve one at a time.

Watch the sign. When the known endpoint is negative, 2Mx − x₁ subtracts a negative, which increases the result. If A is (−3, 4) and M is (2, 4), then x₂ = 2(2) − (−3) = 4 + 3 = 7, not 1.

The section formula and ratio points

The midpoint is the 1 : 1 case of a more general formula. To find the point P that divides the directed segment from A to B in the ratio m : n (meaning AP : PB = m : n):

P = ( (n·x₁ + m·x₂) / (m + n) , (n·y₁ + m·y₂) / (m + n) )

The weights look backwards at first — the m multiplies B, not A. That is because a larger m means more of the segment lies on A's side, so P is pushed towards B. Setting m = n = 1 cancels the weights and collapses the expression to the plain average, recovering the midpoint formula.

Ratio AP : PBFraction of the way from AWhat it is called
1 : 11/2Midpoint
1 : 21/3First trisection point
2 : 12/3Second trisection point
1 : 31/4First quarter point
3 : 13/4Third quarter point
m : nm / (m + n)General section point

The section formula is also the centroid formula in disguise. The centroid of a triangle is the point that divides each median in the ratio 2 : 1, which is why the centroid sits two-thirds of the way from each vertex towards the midpoint of the opposite side.

Midpoint vs centroid

These two are frequently confused, and the confusion causes real errors.

MidpointCentroid
How many pointsExactly twoThree or more
What it isThe point halfway between two pointsThe average position of all the points
Formula (2D)((x₁+x₂)/2, (y₁+y₂)/2)((Σx)/n, (Σy)/n)
Lies on the segment?AlwaysOnly for two points
Typical useBisecting a segment, centre of a diameterCentre of mass, centre of a triangle or polygon

When someone says they need "the midpoint of three points on a map", what they actually need is the centroid — the average of the three coordinate pairs. This calculator labels the centroid result clearly so the two are never mixed up. The centroid of a triangle has a further property: it is the intersection of the three medians and the balance point of a uniform triangular lamina.

The perpendicular bisector

The perpendicular bisector of a segment is the line that crosses the segment at its midpoint at a right angle. It has two equivalent definitions that are worth knowing:

  • Geometrically — the line through the midpoint perpendicular to the segment.
  • As a locus — the set of all points that are exactly the same distance from A as from B.

To write its equation you need two things, and this calculator reports both. The midpoint gives you a point on the line. The negative reciprocal of the segment's slope gives you its direction: if the segment has slope m, the bisector has slope −1/m (and if the segment is vertical, the bisector is horizontal).

For A(1, 2) and B(4, 6): the midpoint is (2.5, 4) and the segment slope is 4/3, so the perpendicular bisector has slope −3/4 and passes through (2.5, 4).

Perpendicular bisectors are the basis of the circumcentre construction: the circumcentre of a triangle is the point where the three perpendicular bisectors of its sides meet, and it is equidistant from all three vertices.

Distance and slope alongside the midpoint

The midpoint rarely appears alone. Two companion calculations turn up in almost every coordinate-geometry problem.

Distance

From the Pythagorean theorem, the distance between A and B is √((x₂−x₁)² + (y₂−y₁)²), extended to three dimensions by adding the squared z-difference. Each half of the segment has exactly half that length, which is the direct test of whether a point really is the midpoint.

Slope

The slope of the segment is (y₂−y₁)/(x₂−x₁), and it is undefined when x₂ = x₁ (a vertical segment). The perpendicular bisector's slope is its negative reciprocal. The calculator shows both, and reports "undefined" honestly for vertical segments rather than emitting a nonsense number.

The midpoint in circles and triangles

Two geometric constructions depend directly on the midpoint.

Circle from a diameter

If a segment AB is a diameter of a circle, then the centre of that circle is the midpoint of AB, and the radius is half the length of AB. This is the standard way to recover a circle's centre from two points on its circumference. The calculator reports the radius and the circle equation whenever you are in midpoint mode.

Medians and the centroid

A median of a triangle is the segment from a vertex to the midpoint of the opposite side. The three medians meet at the centroid, which divides each median in the ratio 2 : 1. In centroid mode with exactly three points, the graph draws the triangle and its medians so the relationship is visible rather than asserted.

Common mistakes

  • Averaging only one coordinate. Both x and y must be averaged. Finding the average of the x-values and then writing that same number for y is a frequent slip.
  • Subtracting instead of adding. The midpoint uses x₁ + x₂, not x₂ − x₁. The difference belongs in the distance formula, not the midpoint formula.
  • Sign errors with negatives. −4 + 6 = 2, not −10. Adding a negative number is subtraction, and students routinely treat it as addition of the magnitude.
  • Forgetting to divide by 2. The sum of the coordinates is not the midpoint — it is twice the midpoint. Halving is the whole point.
  • Swapping x and y. The first number of an ordered pair is always x. Writing (y, x) is a silent error that the arithmetic will not catch.
  • Using the midpoint formula for three points. Three or more points need the centroid (divide by n), not the midpoint (divide by 2).
  • Getting the section ratio backwards. In (n·x₁ + m·x₂)/(m+n) the weight on B is m, not n. A quick check is that a 1 : 3 ratio should land at the quarter point, not the three-quarter point.
  • Assuming a fractional answer is wrong. Half-unit midpoints are entirely normal whenever two coordinates differ by an odd number.
  • Dropping the minus sign on the missing endpoint. When reversing the formula, 2M − A with a negative A becomes a larger number, not a smaller one.

Where the midpoint formula is used

  • Meeting points and logistics. Placing a rendezvous point halfway between two locations on a map, or siting a shared facility so that two towns are equidistant from it.
  • Surveying and civil engineering. Locating the centre of a straight run, siting supports and towers evenly, and setting out midpoints of measured baselines.
  • Circle geometry. The centre of a circle is the midpoint of any diameter, which is how a centre can be recovered from two points on the circumference.
  • Computer graphics. Midpoint subdivision is a standard technique for smoothing curves and generating meshes; the midpoint of an edge is used in every subdivision surface algorithm.
  • Image processing. Locating the centre of a bounding box or a region of interest.
  • CAD and drafting. Constraining a feature to the midpoint of a line is one of the most common geometric constraints in parametric modelling.
  • Data interpolation. Estimating a value halfway between two known data points — a linear interpolation reduces to the midpoint formula when the fraction is one half.
  • Sports analytics. The halfway point of a pitch, court or field, and the midpoint of a passing line.
A distinction worth making: this calculator performs Cartesian midpoints. The geographic midpoint of two places on the Earth's surface is computed differently, because latitude and longitude do not average linearly on a sphere. For local, small-area work the Cartesian approximation is usually fine; for continental distances it is not.

Midpoint formula in exams and coursework

The midpoint formula appears in almost every coordinate-geometry syllabus, and the way it is examined is remarkably consistent. Knowing the typical question shapes is worth more than extra practice of the same arithmetic.

Typical question types

  • Direct midpoint — two endpoints given, find M. The most common and the easiest.
  • Reverse midpoint — one endpoint and M given, find the other endpoint. Tests whether you can rearrange rather than just substitute.
  • Proving a quadrilateral is a parallelogram — show that the diagonals share the same midpoint. If they do, the shape is a parallelogram; if they also have equal length, it is a rectangle.
  • Finding a circle's centre — given a diameter's endpoints, the centre is the midpoint and the radius is half the distance.
  • Section formula — divide a segment in a given ratio, often 1 : 2 or 2 : 3.
  • Centroid of a triangle — average the three vertices.
  • Perpendicular bisector equation — combine the midpoint with the negative reciprocal slope.

How to avoid losing marks

Most lost marks in midpoint questions are not conceptual. They come from four habits: writing the coordinates in the wrong order, dropping a negative sign during addition, halving one coordinate but not the other, and forgetting to state the answer as an ordered pair. Writing the formula out before substituting forces you to slow down at exactly the point where those slips happen.

A second habit is to estimate before calculating. If A is at x = 2 and B is at x = 8, the midpoint's x must lie between 2 and 8. If your answer is 5, that passes the sanity check; if it is 10, you have added without halving; if it is −6, you have subtracted. The estimate costs five seconds and catches most errors.

Limitations

  • Coordinates are treated as Cartesian. The tool does not compute geographic midpoints on a sphere, nor midpoints along a circular arc, a logarithmic axis, or a weighted distribution.
  • Centroid mode supports three to five points. For larger point sets, compute the mean of each coordinate column directly.
  • Inputs are limited to a reasonable length (48 characters per coordinate). This is far beyond any classroom or engineering use, but it is a hard limit.
  • The draggable graph snaps to whole-number grid positions when Snap is on. Turn it off for arbitrary positions; dragged coordinates are then rounded to three decimal places.
  • The 3D view is an orthographic projection with orbit controls, not a perspective renderer. It is built for reading coordinates, not for photorealism.
  • Exact fraction arithmetic applies to the calculation and to rational results. Irrational distances are reported as a decimal and identified as irrational rather than being given a fake exact form.

Privacy

Every calculation, graph, worksheet and export runs in your browser with plain JavaScript. Nothing you type is uploaded, logged or transmitted. There is no account, and no network request is made after the page loads. Recent calculations are optionally saved in your browser's localStorage so you can reload them; clearing them removes them permanently from your device.

Frequently asked questions

What is the midpoint formula?

For two points (x₁, y₁) and (x₂, y₂), the midpoint is M = ((x₁ + x₂)/2, (y₁ + y₂)/2). In three dimensions add a third term: M = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2). The formula is the average of each coordinate, taken separately.

How do you find the midpoint between two points?

Add the two x-coordinates and divide by 2, then add the two y-coordinates and divide by 2. For (2, 3) and (8, 11): x = (2 + 8)/2 = 5 and y = (3 + 11)/2 = 7, so the midpoint is (5, 7).

How do you find a missing endpoint when you know the midpoint?

Rearrange the formula. If M is the midpoint of A and B, then B = 2M − A. For x: x₂ = 2·Mx − x₁; for y: y₂ = 2·My − y₁. If A is (1, 2) and M is (4, 5), then B = (2×4 − 1, 2×5 − 2) = (7, 8).

What is the midpoint formula for 3D?

For (x₁, y₁, z₁) and (x₂, y₂, z₂) the midpoint is ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2). Each axis is averaged independently, exactly as in 2D.

Can the midpoint have decimals or fractions?

Yes, and it often does. If two x-values differ by an odd number, their average is a half-unit. For (1, 0) and (2, 1) the midpoint is (1.5, 0.5), which is exactly (3/2, 1/2). This calculator reports both forms.

What is the difference between a midpoint and a centroid?

A midpoint is defined for exactly two points — the point halfway between them. A centroid is the average position of three or more points. They use similar arithmetic but they are different concepts, and the centroid of three points is not a midpoint.

What is the section formula, and how does it relate to the midpoint?

The section formula finds the point P dividing segment AB in the ratio m : n (AP : PB = m : n): P = ((n·x₁ + m·x₂)/(m+n), (n·y₁ + m·y₂)/(m+n)). Setting m = n = 1 collapses it to the midpoint formula, so the midpoint is the 1 : 1 case.

What is the perpendicular bisector of a segment?

The line through the midpoint at a right angle to the segment. It is the locus of all points equidistant from the two endpoints, and its slope is the negative reciprocal of the segment's slope.

How do you find the midpoint of a vertical or horizontal line?

The formula works unchanged. For a horizontal segment the y-coordinates are equal, so the midpoint's y-coordinate equals them and the x-coordinate is the average. For a vertical segment the reverse holds.

Why is the midpoint formula just averaging?

Moving halfway along a segment means moving half of the total horizontal change and half of the total vertical change. Starting at x₁ and adding half of (x₂ − x₁) gives (x₁ + x₂)/2 — exactly the average. The same argument applies to y and z.

Can the midpoint formula handle negative coordinates?

Yes, with no special treatment — it only adds and divides. For (−4, 2) and (6, −8): x = (−4 + 6)/2 = 1 and y = (2 − 8)/2 = −3, so the midpoint is (1, −3). The common slip is dropping a minus sign when adding.

What is the midpoint of two numbers on a number line?

The midpoint of a and b is (a + b)/2. The midpoint of 4 and 10 is 7; the midpoint of −6 and 2 is −2. This is the one-dimensional version of the formula, and the 1D mode of this calculator visualises it on a number line.

Does the midpoint formula work with fractions?

Yes. Convert to a common denominator, add, and halve. For (1/2, −3/4) and (5/2, 1/4): x = (1/2 + 5/2)/2 = 3/2 = 1.5 and y = (−3/4 + 1/4)/2 = −1/4 = −0.25. This calculator accepts fractions, mixed numbers, decimals and scientific notation and keeps the arithmetic exact.

Is the midpoint the same as the geographic midpoint?

No. The midpoint formula averages flat Cartesian coordinates. On the surface of a sphere, latitude and longitude do not average linearly, so the geographic midpoint of two places on Earth is computed differently. This calculator performs Cartesian midpoints.

Where is the midpoint formula used in real life?

Meeting points halfway between two locations, siting a shared facility equidistant from two towns, finding the centre of a circle from a diameter, CAD constraints, computer graphics subdivision, image bounding-box centres, and linear interpolation between two data points.

Is this midpoint calculator free?

Yes, completely free with no account required. Every calculation, graph and worksheet runs in your browser. Nothing you type is uploaded.

Does it work on mobile?

Yes. The graph, inputs and results are responsive from 320px upwards, and the points can be dragged with a finger as well as a mouse.

Sources and methodology

  • Euclid, Elements, Book I — the classical bisection constructions on which the midpoint concept rests.
  • René Descartes, La Géométrie (1637) — the introduction of coordinates that makes the midpoint formula possible.
  • US Common Core State Standards, HSG-GPE.B.6 — partitioning a directed line segment in a given ratio, the standard the section formula serves.
  • UK National Curriculum, Key Stage 3 geometry — midpoint of a line segment on a Cartesian grid.
  • Weisstein, Eric W. "Midpoint." MathWorld, Wolfram Research — formal definitions of midpoint, centroid and perpendicular bisector.
  • "Midpoint formula." Khan Academy — the averaging derivation and worked-example conventions used in the steps panel.
Scroll to Top