2D Distance Calculator (Live Coordinate Graph)
Calculate the exact Euclidean distance, midpoint, slope, and angle between two 2D points (x₁, y₁) and (x₂, y₂) with step-by-step formula breakdown.
Input Parameters
ℹ️ Format: Real numbers (negatives & decimals OK) · e.g. (-2, 1) and (4, 5)
Point A
Point B
💡 Tip: You can also paste (12, 13, 14) directly into any box.
Δx (Horizontal)
6
Δy (Vertical)
4
Midpoint (x, y)
(1, 3)
Slope (m)
0.6667
Angle
33.69°
Formula & Step-by-Step Calculation
d = √((x₂ − x₁)² + (y₂ − y₁)²)
-
1
Compute coordinate differences
Δx = 4 − (-2) = 6, Δy = 5 − (1) = 4 -
2
Square each difference
Δx² = (6)² = 36, Δy² = (4)² = 16 -
3
Add squared values
Δx² + Δy² = 36 + 16 = 52 -
4
Take the square root
d = √52 = 7.211103
Worked Example
Sample inputs and verified result: Point A (x₁) = -2, Point A (y₁) = 1, Point B (x₂) = 4, Point B (y₂) = 5
2D Euclidean Distance: 7.2111 units
Frequently Asked Questions
How do you find the distance between two 2D points?
Subtract the x-coordinates and y-coordinates, square both differences, add them together, and take the square root: d = √((x₂−x₁)² + (y₂−y₁)²).
Does the order of Point A and Point B matter?
No. Because both differences are squared, reversing Point A and Point B always yields the exact same distance.