 Online Calculators

# Midpoint Calculator

Midpoint / Endpoint Calculator
use numbers, fractions or decimals
( )
=
( )
=
$\text{Midpoint} = \left(-\dfrac{1}{2}, \; -2\right)$As a decimal:
$\text{Midpoint} = (-0.5, \; -2)$

Graph of the line and points

Zoom, move and use full screen mode with graph tools.
Or, use <Shift> with a mouse to zoom and move.

press esc to exit full screen mode

Midpoint Solution
$M = (x_M, \; y_M)$$M = \left(\dfrac{x_1 + x_2}{2}, \; \dfrac{y_1 + y_2}{2}\right)$$M = \left(\dfrac{3 + -4}{2}, \; \dfrac{3 + -7}{2}\right)$$M = \left(-\dfrac{1}{2}, \; -\dfrac{4}{2}\right)$$M = \left(-\dfrac{1}{2}, \; -2\right)$As a decimal:
$M = (-0.5, \; -2)$
Distance Solution: Between Endpoints
$d = \sqrt {(x_2 - x_1)^2 + (y_2 - y_1)^2}$$d = \sqrt {(-4 - 3)^2 + (-7 - 3)^2}$$d = \sqrt {(-7)^2 + (-10)^2}$$d = \sqrt {49 + 100}$$d = \sqrt {149}$$d = 12.206556$

## Calculator Use

The midpoint of a line segment is a point that lies halfway between 2 points. The midpoint is the same distance from each endpoint.

Use this calculator to calculate the midpoint, the distance between 2 points, or find an endpoint given the midpoint and the other endpoint.

### Midpoint and Endpoint Calculator Solutions

Input two points using numbers, fractions, mixed numbers or decimals. The midpoint calculator shows the work to find:

• Midpoint between two given points
• Endpoint given one endpoint and midpoint
• Distance between two endpoints

The calculator also provides a link to the Slope Calculator that will solve and show the work to find the slope, line equations and the x and y intercepts for your given two points.

## How to Calculate the Midpoint

You can find the midpoint of a line segment given 2 endpoints, (x1, y1) and (x2, y2). Add each x-coordinate and divide by 2 to find x of the midpoint. Add each y-coordinate and divide by 2 to find y of the midpoint.

Calculate the midpoint, (xM, yM) using the midpoint formula:

$$(x_{M}, y_{M}) = \left(\dfrac {x_{1} + x_{2}} {2} , \dfrac {y_{1} + y_{2}} {2}\right)$$

It's important to note that a midpoint is the middle point on a line segment. A true line in geometry is infinitely long in both directions. But a line segment has 2 endpoints so it is possible to calculate the midpoint. A ray has one endpoint and is infinitely long in the other direction.

### Example: Find the Midpoint

Say you know two points on a line segment and their coordinates are (6, 3) and (12, 7). Find the midpoint using the midpoint formula.

$$(x_{M}, y_{M}) = \left(\dfrac {x_{1} + x_{2}} {2} , \dfrac {y_{1} + y_{2}} {2}\right)$$
1. First, add the x coordinates and divide by 2. This gives you the x-coordinate of the midpoint, xM
2. $$x_{M} = \dfrac {x_{1} + x_{2}} {2}$$
$$x_{M} = \dfrac {6 + 12} {2}$$
$$x_{M} = \dfrac {18} {2}$$
$$x_{M} = {9}$$
3. Second, add the y coordinates and divide by 2. This gives you the y-coordinate of the midpoint, yM
4. $$y_{M} = \dfrac {y_{1} + y_{2}} {2}$$
$$y_{M} = \dfrac {3 + 7} {2}$$
$$y_{M} = \dfrac {10} {2}$$
$$y_{M} = {5}$$
5. Take each result to get the midpoint. In this example the midpoint is (9, 5).

## How to Calculate Distance Between 2 Points

If you know the endpoints of a line segment you can use them to calculate the distance between the 2 points. Here you're actually finding the length of the line segment. Use the formula for distance between 2 points:

$$d = \sqrt {(x_{2} - x_{1})^2 + (y_{2} - y_{1})^2}$$

The formula for distance between points is derived from the Pythagorean theorem, solving for the length of the hypotenuse. See our Pythagorean Theorem Calculator for a closer look.

### Example: Find the Distance Between 2 Points

You know 2 points on a line segment and their coordinates are (13, 2) and (7, 10). Find the distance between the 2 points using the distance formula $$d = \sqrt {(x_{2} - x_{1})^2 + (y_{2} - y_{1})^2}$$

1. Insert your points (13, 2) and (7, 10) into the distance equation
2. $$d = \sqrt {(7 - 13)^2 + (10 - 2)^2}$$
3. Complete the subtraction first since they're in parentheses
4. $$d = \sqrt {(-6)^2 + (8)^2}$$
5. Find the square of each term
6. $$d = \sqrt {36 + 64}$$
7. Add the results
8. $$d = \sqrt {100}$$
9. Find the square root and you've found the distance between the 2 points
10. $$d = 10$$

Similar to this midpoint calculator is our Two Dimensional Distance Calculator. For distance between 2 points in 3 dimensions with (x, y, z) coordinates please see our 3 Dimension Distance Calculator.

## How to Calculate Endpoint

If you know an endpoint and a midpoint on a line segment you can calculate the missing endpoint. Start with the midpoint formula from above and work out the coordinates of the unknown endpoint.

1. First, take the midpoint formula:
2. $$(x_{M}, y_{M}) = \left(\dfrac {x_{1} + x_{2}} {2} , \dfrac {y_{1} + y_{2}} {2}\right)$$
3. And break it down so you have separate equations for the x and y coordinates of the midpoint
4. $$x_{M} = \dfrac {x_{1} + x_{2}} {2}$$
$$y_{M} = \dfrac {y_{1} + y_{2}} {2}$$
5. Rearrange each equation so that you're solving for x2 and y2
$$x_{2} = 2x_{M} - x_{1}$$
$$y_{2} = 2y_{M} - y_{1}$$
6. Since you know the midpoint, insert its coordinates in place of xM and yM in each equation
7. Insert the coordinates of your known endpoint into the values for x1 and y1
8. Finally, solve each equation to find x2 and y2 which will be the coordinates of your missing endpoint

### Example: Find the Endpoint

Using the steps above, let's find the endpoint of a line segment where we know one endpoint is (6, -4) and the midpoint is (1, 7). The endpoint is the (x1, y1) coordinate. The midpoint is the (xM, yM) coordinate.

1. First, take the midpoint formula:
2. $$(x_{M}, y_{M}) = \left(\dfrac {x_{1} + x_{2}} {2} , \dfrac {y_{1} + y_{2}} {2}\right)$$
3. And rearrange the equations so that you're solving for x2 and y2
4. $$x_{2} = 2x_{M} - x_{1}$$
$$y_{2} = 2y_{M} - y_{1}$$
5. Insert the coordinates of your midpoint (1, 7) in place of xM and yM in each equation
6. $$x_{2} = 2(1) - x_{1}$$
$$y_{2} = 2(7) - y_{1}$$
7. Insert the coordinates of your known endpoint (6, -4) into the values for x1 and y1
8. $$x_{2} = 2(1) - 6$$
$$y_{2} = 2(7) - (-4)$$
9. Solve each equation to find x2 and y2.
10. $$x_{2} = 2 - 6$$
$$x_{2} = -4$$
$$y_{2} = 14 + 4$$
$$y_{2} = 18$$
11. Your missing endpoint (x2, y2) is (-4, 18)

Cite this content, page or calculator as:

Furey, Edward "Midpoint Calculator" at https://www.calculatorsoup.com/calculators/geometry-plane/midpoint-calculator.php from CalculatorSoup, https://www.calculatorsoup.com - Online Calculators