Skip to content

Midpoint Calculator

Enter the coordinates of two points to find the point exactly halfway between them, along with the distance between them and the line that joins them.

Calculator Details

Equation of the line:y = 3x − 1See results ↓

Slope and line through two points, a line from a point and a slope, the other endpoint from a midpoint, or a quadratic equation

x-coordinate of the first point

y-coordinate of the first point

x-coordinate of the second point

y-coordinate of the second point

Your Results

Equation of the line: y = 3x − 1

Equation of the line

y = 3x − 1

Slope m = 3

Slope (m)

3

Graph

P₁P₂
Line y = 3x − 1. Axes cross at (0, 0); not to scale.

The slope is 3 and the line is y = 3x − 1; the points are 2√10 apart.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Properties of the line y = 3x − 1
PropertyExactNote
Slope (m)3
y-intercept (b)−1
x-intercept1/3
Slope-intercept formy = 3x − 1y = mx + b
Point-slope formy − 2 = 3(x − 1)y − y₁ = m(x − x₁)
Standard form3x − y = 1Ax + By = C
Angle of inclination71.56505118°From the positive x-axis
Distance between points2√10≈ 6.32455532
Midpoint(2, 5)

How This Calculator Works

How the Line Is Found

Slope first, then the intercept from one known point, all in exact fractions:

m = (y₂ − y₁) ÷ (x₂ − x₁) = (8 − (2)) ÷ (3 − (1)) = 6 ÷ 2 = 3

b = y₁ − m·x₁ = 2 − (3)·(1) = −1

y = 3x − 1

d = √(Δx² + Δy²) = √((2)² + (6)²) = 2√10

Frequently Asked Questions

How do I find an endpoint when I know the midpoint and the other end?

Double the midpoint and subtract the known end: x₂ = 2x_m − x₁ and y₂ = 2y_m − y₁. With a midpoint of (4, 6) and one end at (1, 2), the other end is (7, 10). The parent calculator has an endpoint mode that does this.

Does the midpoint formula work with negative coordinates?

Yes. Average the coordinates with their signs: the midpoint of (−3, 4) and (5, −2) is ((−3 + 5) ÷ 2, (4 − 2) ÷ 2) = (1, 1). Fractions and decimals work the same way.

How is the midpoint used to find a perpendicular bisector?

The perpendicular bisector of a segment passes through its midpoint at right angles to it. For (1, 2) and (3, 8) the midpoint is (2, 5) and the segment's slope is 3, so the bisector has slope −1/3: y − 5 = −1/3 (x − 2). Every point on it is the same distance from both ends.

Can I find the midpoint in three dimensions?

The rule extends naturally: average each coordinate, including z. The midpoint of (1, 2, 3) and (5, 6, 7) is (3, 4, 5). This calculator works in two dimensions; for three, average the z-values by hand.

Included: slope, intercepts, slope-intercept, point-slope and standard forms, distance, midpoint and angle for lines; the other endpoint of a segment from one end and the midpoint; discriminant, exact real or complex roots, vertex, vertex and factored forms and completing the square step by step for quadratics. Inputs are converted to exact fractions from their decimal digits.

Left out: cubic and higher-degree equations, systems of equations, inequalities and fraction input such as 1/3 (enter 0.3333 or scale the equation). The graph is a preview, not to scale.

Midpoint Calculator: Midpoint of Two Points

By FindMySum · Last reviewed

A midpoint calculator finds the point exactly halfway along the straight line between two points. The midpoint formula is an average: add the two x-coordinates and halve the sum, then do the same for the y-coordinates. It is a staple of coordinate geometry homework, and it also answers practical questions such as where to meet two people, or where the centre of a rectangle is from two opposite corners.

Worked example

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

  1. Average the x-coordinates: (1 + 3) ÷ 2 = 2.
  2. Average the y-coordinates: (2 + 8) ÷ 2 = 5.
  3. The midpoint is (2, 5).

The same two points give the rest of the line. They are √((3 − 1)² + (8 − 2)²) = √40 = 2√10 ≈ 6.325 apart, so each half is about 3.162 long. The slope is (8 − 2) ÷ (3 − 1) = 3, and the line through them is y = 3x − 1; the midpoint (2, 5) lies on it, since 3 × 2 − 1 = 5.

Checking your answer

A midpoint must sit between the two points in both directions: its x lies between the two x-values and its y between the two y-values. If it does not, a sign has slipped. The distance from the midpoint to each end should be the same; here both are √10.

For the distance, slope and line equation as the main result, or for an endpoint from a midpoint, use the slope and line calculator.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy