Skip to main content

CalcDune

Home / Math Calculators / Distance Calculator

Distance Calculator

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

Distance Calculator

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

Point 1
Point 2
How this is calculated

Distance = sqrt((x2-x1)^2 + (y2-y1)^2).

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

About This Calculator

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

Formula

Distance = sqrt((x2-x1)^2 + (y2-y1)^2).

How the Distance Calculator Works

The Distance Calculator is a free online tool to find the straight-line distance between two points on a plane. Find the straight-line distance between two points on a plane. Enter your figures above and get a complete answer in seconds, including each step of the working, not just the final answer. Use it for checking homework, double-checking important figures, or any time you need a quick, reliable number. Pair it with the Area Calculator for a fuller picture, or see all Math Calculators.
Distance Calculator illustration — find the straight-line distance between two points on a
Distance Calculator — free online calculator

How to Use the Distance Calculator

  1. Fill in the fields in the Distance Calculator — it only asks for the numbers the calculation actually needs.
  2. Review your entries for typos; a misplaced decimal is the most common cause of surprising results.
  3. Get your answer immediately, along with a detailed breakdown of how it was computed.
  4. Experiment freely — try different values to check your work to see how each input moves the result.

Understanding Your Results

Along with the answer, the calculator shows the working so you can follow each step — useful for checking homework or understanding the method, not just the result. If something looks off, double-check your inputs first: a misplaced decimal or a wrong unit is the most common cause of surprising answers.

How the Calculation Works

Formula: Distance = sqrt((x2-x1)^2 + (y2-y1)^2).
The Distance Calculator applies this formula the instant you type — no manual math needed. Every figure in the results can be traced back to this calculation.

Distance Formula

Formula: d = √[(x₂−x₁)² + (y₂−y₁)²]

Example 1: Find the distance between the points (1, 2) and (4, 6). dx = 4 − 1 = 3 and dy = 6 − 2 = 4, so the distance is d = √(3² + 4²) = √(9 + 16) = √25 = 5.

Example 2: Find the distance between the points (0, 0) and (3, 4). dx = 3 − 0 = 3 and dy = 4 − 0 = 4, so the distance is d = √(3² + 4²) = √(9 + 16) = √25 = 5.

Distance Between Two Points Calculator

Enter the coordinates of two points and this distance calculator returns the straight-line distance between them, with every step of the working shown.

Worked example: Find the distance between the points (−2, 1) and (2, 4). dx = 2 − (−2) = 4 and dy = 4 − 1 = 3, so the distance is d = √(4² + 3²) = √(16 + 9) = √25 = 5.

Distance Between Two Cities: the tool above gives straight-line (as-the-crow-flies) distance. For road distance and driving directions between two cities, use a maps app — road distance is always longer than the straight-line figure.

Distance FAQs

Can I use this for homework?Absolutely — it’s great for checking your work. For the most learning value, solve the problem yourself first, then verify with the calculator.
Does the calculator save my data?No. All calculations happen locally in your browser — nothing is uploaded, saved, or shared.
Is the Distance Calculator free to use?Yes — the Distance Calculator is completely free, with unlimited calculations and no sign-up required.
Does it show the steps, or just the answer?Both. You get the final answer plus the step-by-step working, so you can follow — and learn — the method.
How do I calculate the distance between two points?Subtract the x-coordinates and the y-coordinates, square both differences, add them, and take the square root. The calculator above does this for you with the working shown.
What is the distance formula?The distance formula is d = √[(x₂−x₁)² + (y₂−y₁)²]. Subtract the x-coordinates and the y-coordinates, square both differences, add them, and take the square root to get the straight-line distance between two points.

Further reading: Khan Academy, the free Khan Academy learning platform, offers deeper background on this topic.