Midpoint Calculator

Find the midpoint between two points and calculate the distance with step-by-step solutions.

Enter Two Points

Point A (x1, y1)
Point B (x2, y2)

Result

Midpoint M
--
Point A --
Point B --
Midpoint M --
Distance AB --
Slope --

Visual Representation

Midpoint Calculation Steps

Distance Calculation Steps

M = ((x1+x2)/2, (y1+y2)/2)

Understanding the Midpoint Formula

The midpoint of a line segment is the point that divides the segment into two equal halves. Given two endpoints A(x1, y1) and B(x2, y2), the midpoint M is found by averaging the x-coordinates and averaging the y-coordinates of the two endpoints.

Key Formulas

Midpoint Formula

The average of the two endpoints gives the center point of the line segment.

M = ((x1+x2)/2, (y1+y2)/2)

Distance Formula

Based on the Pythagorean theorem, calculates the straight-line distance between two points.

d = sqrt((x2-x1)^2 + (y2-y1)^2)

Slope Formula

Measures the steepness and direction of the line through two points.

m = (y2-y1) / (x2-x1)

Properties of the Midpoint

  • The midpoint is equidistant from both endpoints.
  • The midpoint lies on the line segment connecting the two points.
  • In a triangle, the line segment connecting the midpoints of two sides is parallel to the third side and half its length (Midpoint Theorem).
  • The midpoint formula extends to 3D: M = ((x1+x2)/2, (y1+y2)/2, (z1+z2)/2).

Applications

Geometry and Construction

Finding midpoints is essential in construction, surveying, and architecture. It helps in bisecting line segments, finding the center of structures, and creating balanced designs. The centroid of a triangle (intersection of medians) is the midpoint of each median, which connects a vertex to the midpoint of the opposite side.

Computer Graphics

In computer graphics, the midpoint algorithm is used for line drawing, curve subdivision, and mesh generation. The midpoint displacement algorithm generates fractal landscapes. Bezier curve subdivision repeatedly finds midpoints to approximate smooth curves.

Navigation and Geography

The midpoint formula is used in navigation to find the halfway point between two locations, in GPS systems for route planning, and in geographic information systems (GIS) for spatial analysis. For curved surfaces like the Earth, a modified great-circle midpoint formula is used instead.