Distance Between Two Points Calculator

Find the straight-line distance between two points on a plane.

Distance —
Preview available —
Preview available —
Midpoint —

Results update as you type.

Shin wannan Kalkulator ya ba ka amsa madaidaiciya?

Game da wannan Kalkulator

the distance formula, d = √((x₂ − x₁)² + (y₂ − y₁)²), is simply the Pythagorean theorem applied to a grid: the horizontal and vertical gaps are the two legs of a right triangle and the distance is the hypotenuse. Between (0, 0) and (3, 4), Δx = 3 and Δy = 4, so d = √(3² + 4²) = √(9 + 16) = √25 = 5.This calculator is the everyday tool for map distances, the length of a line segment, the magnitude of a vector, and nearest-neighbor comparisons in data.This calculator is the everyday tool for map distances, the length of a line segment, the magnitude of a vector, and nearest-neighbor comparisons in data.This calculator is the everyday tool for map distances, the length of a line segment, the magnitude of a vector, and nearest-neighbor comparisons in data.This calculator is the everyday tool for map distances, the length of a line segment,

Tambayoyi da ake yi da yawa

Menene fom ɗin tsawo?

It is d = √((x₂ − x₁)² + (y₂ − y₁)²). Between (0,0) and (3,4) the distance is √(9 + 16) = √25 = 5.

How does it relate to the Pythagorean theorem?

An yi amfani da wannan tsari ne domin a nuna cewa, idan an yi amfani da tsarin lissafi na alƙalami, to, za a iya nuna cewa, a cikin tsarin lissafi na alƙalami, duk wani adadi na lissafi yana da ma'ana.

What are Δx and Δy?

Su ne bambance-bambancen tsayi da tsayi tsakanin maɓallu, x2 − x1 da y2 − y1 — ƙafafun biyu na tafarkin tsiraici na dama bayan tsawo.

Shin, kilin zai nuna maɓallin tsakiyar maɓalli?

Yes. Alongside the distance it gives the midpoint, the coordinate exactly halfway between the two points.

Does the order of the points matter?

No. The differences are squared, so swapping the two points gives the same distance.

Can it handle negative coordinates?

Yanzu. Duk wani daidaitattun gaskiya suna aiki, ciki har da na-kasa da na-ajali - kwancewar yana riƙe duk wani nisa na-positive.

❤️ Love Calculator.Free? Share

𝕏  X Facebook Reddit
API — amfani da wannan calculator daga code

Ka kira wannan kwalban kamar wata maɓallin ƙarshe JSON mai kyauta - babu maɓalli da ake buƙata. Ka aika kimar fannin ƙasa kamar paramita na tambaya ko JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Read the full API docs →

Endpoint

GET https://calculator.free/api/v1/distance-two-points/

curl

curl "https://calculator.free/api/v1/distance-two-points/?x1=0&y1=0&x2=3&y2=4"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/distance-two-points/?" + new URLSearchParams({
    "x1": "0",
    "y1": "0",
    "x2": "3",
    "y2": "4"
  }));
const data = await r.json();
console.log(data.results);

Results are estimates for general guidance only, not financial, medical or tax advice.