Distance Between Points Calculator
Distance Between Points is evaluated from Point 1 - x₁, Point 1 - y₁ and Point 2 - x₂. The calculation reports Distance, Slope and Midpoint x.
Results
About the Distance Between Points Calculator
The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.
Formula basis:
d = sqrt((x₂ - x₁)^2 + (y₂ - y₁)^2)
Midpoint = ((x₁+x₂)/2, (y₁+y₂)/2)
Slope = (y₂ - y₁) / (x₂ - x₁)
Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.
Formula & How It Works
The calculation applies the following relations exactly as recorded in the metadata: d = sqrt((x₂ - x₁)^2 + (y₂ - y₁)^2) Midpoint = ((x₁+x₂)/2, (y₁+y₂)/2) Slope = (y₂ - y₁) / (x₂ - x₁) Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.
Worked Examples
Example 1: Room Layout — Diagonal
Inputs
With Point 1 - x₁ = 0, Point 1 - y₁ = 0, Point 2 - x₂ = 24 and Point 2 - y₂ = 18 as the stated inputs, the result is Distance = 30 units, Slope = 0.75 and Midpoint x = 12. Each value corresponds to the declared output fields.
Example 2: Running Route Distance
Inputs
With Point 1 - x₁ = -87.6298, Point 1 - y₁ = 41.8781, Point 2 - x₂ = -87.6177 and Point 2 - y₂ = 41.8827 as the stated inputs, the result is Distance = 0.012945 units, Slope = 0.380165 and Midpoint x = -87.62375. Each value corresponds to the declared output fields.
Example 3: 3D Distance — Warehouse Shelf to Exit
Inputs
With Point 1 - x₁ = 5, Point 1 - y₁ = 3, Point 2 - x₂ = 28 and Point 2 - y₂ = 45 as the stated inputs, the result is Distance = 49.36598 units, Slope = 1.826087 and Midpoint x = 16.5. Each value corresponds to the declared output fields.
Example 4: Football Field — Play Distance
Inputs
With Point 1 - x₁ = 20, Point 1 - y₁ = 15, Point 2 - x₂ = 65 and Point 2 - y₂ = 32 as the stated inputs, the result is Distance = 48.104054 units, Slope = 0.377778 and Midpoint x = 42.5. Each value corresponds to the declared output fields.
Common Use Cases
- Find distance between two GPS coordinates
- Calculate diagonal distance in a room layout
- Determine distance for a straight-line path
- Measure hypotenuse in coordinate geometry