distance between two points image calculator

 –  o  +  ←  ↓  ↑  → 
A
B
C

the distance between two points ab
= √ [(x2x1)2 + (y2y1)2]
= √ [(2.5 − -8.6)2 + (5.5 − -5.4)2]
= √ [11.12 +10.92]
= 15.6

(2.5, -5.4)

(-8.6, 5.5)

(-8.6, -5.4)

y2y1
= 5.5 − -5.4
= 10.9

x2x1
= 2.5 − -8.6
= 11.1

5
10
-5
-10
5
-5
x
y

click a or b point and drag to change.

let a(x1,y1), b(x2,y2),

then ∣ab∣=√[(x1-x2)^2+(y1-y2)^2]=√(1+k^2) (x1-x2)^2,

or∣ab∣=∣x1-x2|secα=∣y1-y2∣/sinα,

where α is the inclination angle of straight line ab, and k is the slope of straight line ab.

it is often used in word problems of finding the distance in a function graph and then finding the coordinates of a point through the distance.