Find the distance and midpoint of a vertical segment
Enter (3, 2) and (3, 5). The points are three units apart and their midpoint is (3, 3.5). Both points have the same x coordinate, so slope has no finite value. The distance and midpoint still apply.
Keep both axes in the same units if the distance represents a real measurement. For identical points, the distance is zero and there is no line direction to measure.
Coordinate Plane Calculator formula
Distance=√((x₂−x₁)²+(y₂−y₁)²); midpoint=((x₁+x₂)/2,(y₁+y₂)/2); slope=(y₂−y₁)/(x₂−x₁).
Inputs and units
| Input | Format / range | Example |
|---|---|---|
| x₁ | Number | 0 |
| y₁ | Number | 0 |
| x₂ | Number | 3 |
| y₂ | Number | 4 |
Worked example
The values listed in Inputs and units give 5 for Distance.
- Distance
- 5
- Midpoint
- (1.5, 2)
- Slope
- 1.333333333333
Change x₁ from 0 to 0.1 and keep the other example inputs fixed. The updated answer is 4.940647730814 (Distance).
Results and assumptions
Change x₁ from 0 to 0.1 and keep the other example inputs fixed. The updated answer is 4.940647730814 (Distance).
Fix an input or unexpected result
x₁ is required. Enter x₁ using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.
