acalculator

What is the midpoint?

Free online midpoint calculator. Fast, accurate, and easy to use math tool.

Your numbers

What do you want to find?
Midpoint: x
5

The midpoint of (2, 3) and (8, 5) is (5, 4).

Midpoint: y
4
Distance from A to B
6.324555

Midpoint: x: 5. The midpoint of (2, 3) and (8, 5) is (5, 4).

Where are the points?

How to calculate

Finds the midpoint of two points on a plane and the distance between them, or the other endpoint from one endpoint and the midpoint.

Example with the default inputs (What do you want to find? Midpoint, Point A: x 2, Point A: y 3, Point B: x 8, Point B: y 5): The midpoint of (2, 3) and (8, 5) is (5, 4).

Method: M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2); from A and M, B = (2 × Mx − x₁, 2 × My − y₁).

  • Points on a flat plane with x and y coordinates in the same unit.
  • The distance is the straight-line (Euclidean) distance from A to B.

Machine-readable copies: Markdown, JSON.

Worked examples

Each example is checked against the calculator on every build.

  1. What do you want to find? Midpoint, Point A: x 2, Point A: y 3, Point B: x 8, Point B: y 5 gives Midpoint M: x 5, Midpoint M: y 4, Distance from A to B 6.324555.Source: OpenStax, College Algebra 2e, §2.1 The Rectangular Coordinate Systems and Graphs (distance and midpoint formulas). https://openstax.org/books/college-algebra-2e/pages/2-1-the-rectangular-coordinate-systems-and-graphs
  2. What do you want to find? Midpoint, Point A: x -4, Point A: y 3, Point B: x 6, Point B: y -7 gives Midpoint M: x 1, Midpoint M: y -2, Distance from A to B 14.142136.Source: OpenStax, College Algebra 2e, §2.1 The Rectangular Coordinate Systems and Graphs (distance and midpoint formulas). https://openstax.org/books/college-algebra-2e/pages/2-1-the-rectangular-coordinate-systems-and-graphs
  3. What do you want to find? Midpoint, Point A: x 0.1, Point A: y 0.2, Point B: x 0.3, Point B: y 0.4 gives Midpoint M: x 0.2, Midpoint M: y 0.3.Source: OpenStax, College Algebra 2e, §2.1 The Rectangular Coordinate Systems and Graphs (distance and midpoint formulas). https://openstax.org/books/college-algebra-2e/pages/2-1-the-rectangular-coordinate-systems-and-graphs
  4. What do you want to find? Endpoint, Point A: x 2, Point A: y 3, Midpoint M: x 5, Midpoint M: y 4 gives Point B: x 8, Point B: y 5.Source: OpenStax, College Algebra 2e, §2.1 The Rectangular Coordinate Systems and Graphs (distance and midpoint formulas). https://openstax.org/books/college-algebra-2e/pages/2-1-the-rectangular-coordinate-systems-and-graphs

How it works

For two points A = (x₁, y₁) and B = (x₂, y₂) on a plane:

  • Midpoint: M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). Each coordinate of the midpoint is the average of the two points' coordinates.
  • Distance: d = √((x₂ − x₁)² + (y₂ − y₁)²), from the Pythagorean theorem.
  • Endpoint: with Endpoint picked, you give A and the midpoint M = (Mx, My), and the calculator finds B = (2 × Mx − x₁, 2 × My − y₁), by solving the midpoint formula for x₂ and y₂.

Assumptions

  • Two-dimensional points (x, y) on a flat plane, with both coordinates in the same unit.
  • The distance is the straight-line (Euclidean) distance between A and B.
  • A distance too large for a 64-bit float (points more than about 1.8 × 10³⁰⁸ apart) is left out; the midpoint and the endpoint are still shown. A computed endpoint that large has no answer.
  • Coordinates are 64-bit floats: 0.1 and 0.3 average to 0.2, but 0.2 and 0.4 average to 0.30000000000000004, which shows as 0.3.

Worked examples by hand

(2, 3) and (8, 5). M = ((2 + 8) ÷ 2, (3 + 5) ÷ 2) = (5, 4). The distance is √(6² + 2²) = √40 = 6.324555…

(−4, 3) and (6, −7). M = ((−4 + 6) ÷ 2, (3 + (−7)) ÷ 2) = (1, −2). The distance is √(10² + 10²) = √200 = 14.142136…

(0.1, 0.2) and (0.3, 0.4). M = ((0.1 + 0.3) ÷ 2, (0.2 + 0.4) ÷ 2) = (0.2, 0.3).

Endpoint from A = (2, 3) and M = (5, 4). B = (2 × 5 − 2, 2 × 4 − 3) = (8, 5).

Other questions people ask

What is a midpoint in geometry?

A midpoint is the exact center point between two given points on a line, a plane, or in space. It's the point that divides the line segment connecting two points into two equal parts. In 2D coordinates, the midpoint is found by averaging the x-coordinates and y-coordinates of the two points.

How do you calculate the midpoint between two points?

The midpoint formula for two points (x₁, y₁) and (x₂, y₂) is: M = ((x₁ + x₂)/2, (y₁ + y₂)/2) This means you: 1. Add the x-coordinates and divide by 2 2. Add the y-coordinates and divide by 2 3. The result gives you the midpoint coordinates

Can I use this calculator for 3D coordinates?

This calculator is specifically designed for 2D coordinates (x, y). For 3D coordinates, you would need to extend the formula to include the z-coordinate: M = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2).

What is the distance between two points?

The distance between two points (x₁, y₁) and (x₂, y₂) is calculated using the distance formula: d = √[(x₂ - x₁)² + (y₂ - y₁)²] This is based on the Pythagorean theorem and gives you the straight-line distance between the two points.

Why is the midpoint important in geometry?

The midpoint is crucial in geometry because it helps in dividing line segments equally, finding centers of shapes, constructing perpendicular bisectors, and solving various geometric problems. It's also used in computer graphics, navigation systems, and many real-world applications where you need to find the center point between two locations.

Can the midpoint be outside the line segment?

No, the midpoint always lies exactly on the line segment connecting the two points. It's impossible for the midpoint to be outside the line segment because it's defined as the point that divides the segment into two equal parts.

How accurate are the calculations?

The calculator works in 64-bit floating point and shows up to 6 decimal places for the coordinates and the distance. The calculations use standard mathematical formulas and are suitable for most practical applications including academic work, engineering, and design.

What are some real-world applications of midpoint calculations?

Midpoint calculations are used in many real-world scenarios: - **Navigation:** Finding the center point between two locations - **Computer Graphics:** Creating smooth curves and animations - **Architecture:** Determining center points for design elements - **Surveying:** Finding midpoints for property boundaries - **Game Development:** Calculating center points for game objects - **Data Analysis:** Finding central tendencies in spatial data

How do I find an endpoint from the midpoint?

If you know one endpoint A (x₁, y₁) and the midpoint M, the other endpoint B is (2 × Mx − x₁, 2 × My − y₁). For example, with A = (2, 3) and M = (5, 4), B = (2 × 5 − 2, 2 × 4 − 3) = (8, 5). Pick Endpoint under "What do you want to find?" to do this.