# Distance and Midpoint Calculator

URL: https://speedycalculator.com/calculators/math/distance-between-points/
Last updated: 2026-10-25

> This calculator finds the distance between two points on a plane, the midpoint between them and the slope of the line joining them.

## Inputs

- x₁
- y₁
- x₂
- y₂

## Results

- Distance
- Midpoint x
- Midpoint y
- Slope

## Formula

```
Distance = √((x₂ − x₁)² + (y₂ − y₁)²)
Midpoint = ((x₁ + x₂)/2, (y₁ + y₂)/2)
```

## Explanation

The distance formula is the Pythagorean theorem applied to coordinates.

### How to use the Distance and Midpoint Calculator

- **x₁**
- **y₁**
- **x₂**
- **y₂**

Results update as you type, and every field accepts the units shown in its menu.

### How it works

Subtract the coordinates, square and add the differences and take the square root.

### Inputs explained

FieldWhat to enterx₁A numbery₁A numberx₂A numbery₂A number

### What each result means

- **Distance** = sqrt(([x₂] - [x₁])^2 + ([y₂] - [y₁])^2)
- **Midpoint x** = ([x₁] + [x₂])÷2
- **Midpoint y** = ([y₁] + [y₂])÷2
- **Slope** = ([y₂] - [y₁])÷([x₂] - [x₁])

### Example values

How the main result changes when **x₁** changes and everything else stays at the example values above:

x₁Distance0.510.30780.7510.1521101.259.8521.59.708229.434

## Worked example

Inputs — x₁: 1; y₁: 2; x₂: 7; y₂: 10.

Results — **Distance = 10**; Midpoint x = 4; Midpoint y = 6; Slope = 1.333333.

## FAQ

**What about 3D points?**
Add (z₂ − z₁)² inside the square root.

**What is Manhattan distance?**
|x₂ − x₁| + |y₂ − y₁|, distance along grid lines.

**What formula does the Distance and Midpoint Calculator use?**
Distance = √((x₂ − x₁)² + (y₂ − y₁)²).

