learn.howToCalculate
learn.whatIsHeading
The distance formula calculates the straight-line (Euclidean) distance between two points in a 2D coordinate plane. It is derived directly from the Pythagorean theorem — the distance is the hypotenuse of a right triangle formed by the horizontal and vertical differences.
단계별 가이드
- 1Find the horizontal difference: Δx = x₂ − x₁
- 2Find the vertical difference: Δy = y₂ − y₁
- 3Square both differences and add them
- 4Take the square root: d = √(Δx² + Δy²)
풀어진 예시
입력
(0,0) to (3,4)
결과
5
√(9+16)=√25=5 — a 3-4-5 triangle
입력
(1,1) to (4,5)
결과
5
√(9+16)=5
입력
(−2,3) to (4,−1)
결과
7.211
√(36+16)=√52≈7.211
계산할 준비가 되셨나요? 무료 Distance Calculator 2D 계산기를 사용해 보세요
직접 시도해 보세요 →