2D Distance Calculator: Distance Between Two Points

Your details

Horizontal (x) coordinate of the first point.
Vertical (y) coordinate of the first point.
Horizontal (x) coordinate of the second point.
Vertical (y) coordinate of the second point.
Distance
5

Straight-line (Euclidean) distance between the two points

Exact distance5
Horizontal component (dx)3
Vertical component (dy)4
Midpoint x1.5
Midpoint y2
Slope (rise / run)1.333333
Slope as fraction4/3
Line equationy = 4/3x
Angle with x-axis53.1301deg
Line descriptionSlope = 4/3, line rises to the right
Horizontal (dx)3
Vertical (dy)4
Distance (d)5

Distance: 5.000000 (exact: 5)

  • The straight-line distance from (0, 0) to (3, 4) is 5.000000 (exact: 5).
  • The midpoint lies at (1.5000, 2.0000).
  • Point 1 is in the origin; Point 2 is in Quadrant I.
  • Line equation: y = 4/3x.

Next stepUse the slope and the y-intercept from the line equation above to graph or extend the line in either direction.

= Powered by OnlyCalculators