Skip to main content
MathStatCalc

Midpoint Calculator

Find the exact midpoint between two points — in 2D or 3D — plus the distance and slope connecting them. You can also solve for a missing endpoint when the other endpoint and the midpoint are known. Every step, exact fraction, decimal, and the plotted graph is included.

Choose your input

Point 1
Point 2
Midpoint M = ( (x₁ + x₂)/2 , (y₁ + y₂)/2 ).
Point 1
Point 2
Midpoint M = ( (x₁ + x₂)/2 , (y₁ + y₂)/2 , (z₁ + z₂)/2 ).
Known endpoint
Midpoint
Unknown endpoint: x₂ = 2·xₘ − x₁,   y₂ = 2·yₘ − y₁.
Options

Result

Step-by-step calculation

    Plot

    How to use the Midpoint Calculator

    1. Pick the mode: 2D midpoint, 3D midpoint, or missing endpoint.
    2. Enter your coordinates. Decimals and negative numbers are fully supported.
    3. Press Calculate midpoint. You'll get the exact midpoint (with fraction form), the distance between the points, the slope of the connecting segment, and a plotted graph.
    4. Follow the step-by-step panel to see the formula with the numbers substituted.

    Method and formula

    The midpoint of two points is the point exactly halfway between them. It's found by averaging the x-coordinates and averaging the y-coordinates independently.

    2D midpoint formula

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

    3D midpoint formula

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

    Missing endpoint formula

    If one endpoint (x₁, y₁) and the midpoint (xₘ, yₘ) are known, solve for the other endpoint:

    x₂ = 2·xₘ − x₁,   y₂ = 2·yₘ − y₁

    Bonus values: distance and slope

    The distance between the two points uses the distance formula:

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

    The slope of the line through the two points is:

    m = (y₂ − y₁) ÷ (x₂ − x₁)   (undefined when x₁ = x₂)

    Worked example: midpoint of (1, 2) and (5, 10)

    1. Identify the points: P₁ = (1, 2), P₂ = (5, 10).
    2. Average the x-coordinates: (1 + 5) ÷ 2 = 6 ÷ 2 = 3.
    3. Average the y-coordinates: (2 + 10) ÷ 2 = 12 ÷ 2 = 6.
    4. Midpoint: M = (3, 6).
    5. Distance: d = √[(5−1)² + (10−2)²] = √(16 + 64) = √80 ≈ 8.944.
    6. Slope: m = (10 − 2) ÷ (5 − 1) = 8 ÷ 4 = 2.

    So the midpoint of (1, 2) and (5, 10) is (3, 6), the distance between them is about 8.944 units, and the line through them has slope 2.

    How to interpret the result

    Assumptions and limitations

    Frequently asked questions

    What is the midpoint formula?
    The midpoint between two points (x₁, y₁) and (x₂, y₂) is M = ( (x₁ + x₂) ÷ 2 , (y₁ + y₂) ÷ 2 ). In 3D it extends to three coordinates, averaging each one.
    What is the midpoint of (1, 2) and (5, 10)?
    x = (1 + 5) ÷ 2 = 3, y = (2 + 10) ÷ 2 = 6. So the midpoint is (3, 6).
    How do I find a missing endpoint given the midpoint?
    If you know one endpoint (x₁, y₁) and the midpoint (xₘ, yₘ), the other endpoint is x₂ = 2·xₘ − x₁, y₂ = 2·yₘ − y₁.
    Can the midpoint have fractional coordinates?
    Yes. If the sum of the x-coordinates or y-coordinates is odd, the midpoint falls on a half-integer. The calculator shows the exact fraction as well as the decimal.
    What is the difference between midpoint and distance?
    The midpoint is a point (a location halfway between the two points). The distance is a number (the straight-line length of the segment joining the two points). This calculator shows both.
    What if the two points are the same?
    If both points are identical, the midpoint is that same point and the distance is 0. The slope is undefined because there is no unique line joining a point to itself.
    Can the midpoint be outside the segment?
    No. By definition the midpoint always lies on the segment joining the two endpoints, exactly in the middle.
    Does the calculator send my data anywhere?
    No. All calculations run in your browser. Your coordinates never leave your device.
    Reviewed by the Math Content Team
    Calculator methodology and formula verification

    All formulas are cross-checked against standard geometry references (e.g. Geometry, Jurgensen) and verified through automated unit tests each quarter. Spotted an issue? Contact us.