How to Find the Midpoint Between Two Points

Use the midpoint formula in 2D and 3D, then connect distance, slope, and perpendicular bisectors — free midpoint calculator guide.

By Generatr Team

The midpoint of a segment is the point exactly halfway between its endpoints. On a coordinate plane you do not guess — you average the coordinates. In 2D: M = ((x₁ + x₂)/2, (y₁ + y₂)/2). In 3D you also average z.

This guide walks through the midpoint formula, how it pairs with distance and slope, section-formula thinking, and 2D/3D examples. Compute instantly with the free midpoint calculator — midpoint, distance, slope, and related segment facts client-side.

Averaging numbers is the same idea as a two-value mean — see the average calculator and averages guide when you leave geometry for pure statistics.

Free tool

Use the Midpoint Calculator now

Open the interactive midpoint calculator in your browser — free, instant, no signup.

Open Midpoint Calculator

What Is the Midpoint Formula?

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

Mx = (x₁ + x₂) / 2
My = (y₁ + y₂) / 2

Each coordinate of M is the arithmetic mean of that coordinate on A and B. That is why the midpoint sits halfway in both the horizontal and vertical directions at once (for a straight segment in the plane).

Worked 2D examples

A(2, 4), B(8, 10) → M = ((2+8)/2, (4+10)/2) = (5, 7).

A(−3, 5), B(7, −1) → M = ((−3+7)/2, (5+(−1))/2) = (2, 2).

A(0, 0), B(9, 0) → M = (4.5, 0) on the x-axis.

Order of A and B does not matter: addition is commutative. Fractions are normal — do not force integers if the average is half.

Verify any pair in the free midpoint calculator after you solve on paper.

Graphically, M is the center of the segment — not the center of a triangle or circle unless the geometry forces that coincidence. Label M on your sketch before you compute slopes or distances so you do not average the wrong pair of points when a figure has many labeled vertices.

Why Do You Need the Midpoint in Geometry?

Midpoints show up whenever “halfway” has a precise meaning.

  • Segment bisectors — the midpoint is where a segment is cut into two equal lengths
  • Triangle geometry — midpoints of sides define midsegments parallel to the third side (midsegment theorem)
  • Coordinate proofs — show a quadrilateral is a parallelogram or rectangle using midpoints of diagonals
  • Graphics and mapping — center a label between two pins, or find a simple center of a bounding edge
  • Physics sketches — rough center between two positions in a plane model (idealized)

The formula assumes a flat Cartesian plane (or 3D Cartesian space). On a real curved Earth surface, geodesic midpoints need spherical formulas — different problem.

Ratios and scaled dimensions elsewhere on the site use related “fair share” math; for pure ratio of width to height, see the aspect ratio guide.

How Do Midpoint and Distance Work Together?

Distance between A and B in 2D is:

d = √((x₂ − x₁)² + (y₂ − y₁)²)

If M is the midpoint, then AM = MB = d/2 (same Euclidean length). Checking AM and MB is a strong sanity test after you compute M.

Example

A(2, 4), B(8, 10): d = √((6)² + (6)²) = √72 = 6√2. Midpoint (5, 7). Distance from A to M: √((3)² + (3)²) = √18 = 3√2, half of d.

If AM ≠ MB, either M is wrong or you used a non-Euclidean “distance” by mistake (e.g. only comparing x).

Distance is length only — it does not give direction. For travel time along a path at constant speed, length feeds a separate formula; see the speed distance time guide when geometry meets motion word problems.

The midpoint calculator often reports distance beside M so you can confirm the half-length property in one pass.

How Do Slope and the Perpendicular Bisector Relate?

The slope of segment AB is:

m = (y₂ − y₁) / (x₂ − x₁) (undefined for vertical segments)

The segment’s direction is that slope. The perpendicular bisector is the line that (1) passes through the midpoint M and (2) has slope equal to the negative reciprocal −1/m (when m is finite and nonzero).

  • Horizontal segment → perpendicular bisector is vertical through M
  • Vertical segment → perpendicular bisector is horizontal through M
  • Slope 2 → perpendicular slope −1/2

Why classes pair these topics

Circle geometry: the perpendicular bisector of a chord passes through the circle’s center. Finding centers from points often means intersecting perpendicular bisectors — each built from a midpoint plus a perpendicular slope.

Compute M first, then slope, then the bisector equation. The calculator’s slope and bisector outputs should match that sequence. Percent grades of slopes (rise/run × 100) are a different representation — the percentage calculator converts fractions to percents when a problem asks for grade percent rather than slope m.

How Do You Find a Midpoint in 3D?

Add the third coordinate the same way:

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

Distance in 3D:

d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²)

Example: A(1, 2, 3), B(5, 6, 7) → M = (3, 4, 5), d = √(16+16+16) = √48 = 4√3, and AM = 2√3.

There is no single “slope” number in 3D the way there is in 2D; direction uses direction vectors or direction cosines instead. Midpoint and distance still work unchanged.

Use the free midpoint calculator in 3D mode when available, or enter z averages by hand with the same formula. Keep units consistent (all meters, all grid units) — mixing units breaks both midpoint interpretation and distance.

Classroom tip: if a 3D problem only gives two of the three coordinates for one point, you cannot finish M. Missing data is not fixed by “assuming z = 0” unless the problem states the points lie in a plane such as z = 0.

What Is the Section Formula Beyond a 1:1 Midpoint?

The midpoint is the special case of dividing a segment in the ratio 1:1. The section formula for a point dividing AB in the ratio m:n (internal division) is:

Px = (n·x₁ + m·x₂) / (m + n)
Py = (n·y₁ + m·y₂) / (m + n)

When m = n = 1, this collapses to the midpoint averages. When the ratio is 2:1, the point sits closer to B or A depending on which weight is larger — weighted averages of coordinates.

That is the same weighted-mean idea you meet in statistics with different weights. For unweighted lists of many numbers, use the average calculator guide. For “what fraction of the way from A to B,” percent along a segment is (distance from A to P) / (full length) × 100 — the percentage guide covers that conversion.

If your calculator exposes a section-formula or ratio mode, check a 1:1 case against the midpoint formula first so the parameter order (m:n) matches your textbook.

How Do You Use Generatr’s Midpoint Calculator?

Enter two points; read M and supporting segment metrics.

  1. Open the free midpoint calculator.
  2. Enter x₁, y₁ (and z₁ in 3D).
  3. Enter x₂, y₂ (and z₂ in 3D).
  4. Read the midpoint coordinates.
  5. Check distance and confirm AM = MB ≈ d/2.
  6. In 2D, review slope and perpendicular bisector outputs when provided.
  7. Try a section ratio other than 1:1 if the tool supports it.
  8. Recompute one textbook example by hand to lock the formula.

Related tools: average calculator for pure means, percentage calculator for percent-along-segment, aspect ratio calculator for width/height ratios, and speed distance time calculator when length meets motion.

Step-by-Step Instructions

  1. 1Open the free midpoint calculator on Generatr.
  2. 2Write down the coordinates of both endpoints (2D or 3D).
  3. 3Average the x-coordinates: (x₁ + x₂) / 2.
  4. 4Average the y-coordinates: (y₁ + y₂) / 2 (and z the same way in 3D).
  5. 5Enter both points into the calculator to confirm M.
  6. 6Optionally read distance and verify each half-segment length is d/2.
  7. 7In 2D, note slope and the perpendicular bisector through M if needed.
  8. 8For ratios other than 1:1, apply the section formula or the tool’s ratio mode.

Frequently Asked Questions

What is the midpoint formula for two points?+

In 2D, M = ((x₁ + x₂)/2, (y₁ + y₂)/2). In 3D, also average z: M = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2). Each coordinate is the mean of the endpoints’ coordinates.

Does the order of the two points matter?+

No. Addition is commutative, so swapping A and B gives the same midpoint. Distance is also the same either way.

How is midpoint different from distance?+

Midpoint is a location (coordinates). Distance is a length (a single non-negative number). The midpoint sits halfway along the segment; distance is the full segment length.

Can the midpoint have decimal coordinates?+

Yes. Endpoints (1, 0) and (2, 0) give M = (1.5, 0). Leave exact fractions like 3/2 when your class prefers them.

What is a perpendicular bisector?+

It is the line through the midpoint of a segment that is perpendicular to the segment. In 2D its slope is the negative reciprocal of the segment’s slope (with special cases for horizontal and vertical segments).

Is Generatr’s midpoint calculator free?+

Yes. Find midpoints (and related distance/slope outputs) in your browser without an account. Use it to check homework and coordinate-geometry constructions.

Ready to try it yourself?

Use the free Midpoint Calculator — no download, no account.

Launch Midpoint Calculator