Distance Between Two Points Calculator

Enter the coordinates of the points to get the exact distance between them, the step-by-step solution, and a graph of the line segment on the Cartesian plane.

Point A
( , )
Point B
( , )

Result

The distance between and is:

Quick examples

Rate this tool

How to Use This Calculator

This distance between two points calculator is an analytic geometry tool designed to find the length of the line segment connecting two coordinates on the Cartesian plane. In addition to providing the answer, this solver generates the step-by-step resolution so you can fully understand the mathematical procedure.

Using this finder is very straightforward and is based on a single calculation method:

  1. Entering coordinates: Input the values for the first point (x1, y1) and the second point (x2, y2) into the corresponding fields. Pay close attention to any negative signs in your data before starting. The input fields accept integers, decimals, and fractions.
  2. Main result: You will instantly see a results box showing the exact distance between the two points. To ensure total mathematical accuracy and avoid rounding errors, irrational square roots are kept intact in their symbolic form. Next to this exact value, you will also find its decimal equivalent.
  3. Step-by-step resolution: Right below the final result, the complete breakdown of the problem is displayed. You will be able to see how your values are substituted into the distance formula, how the internal subtractions and squaring are solved, and the final addition inside the radical until the simplified expression is obtained.
  4. Interactive graph: A Cartesian plane will be drawn at the bottom. There, you can visualize the plotted line segment, verify the exact location of the two endpoints you entered, and interact with the canvas.

What Is the Distance Between Two Points?

In analytic geometry, the distance between two points is the length of the line segment connecting them. The general formula, or Euclidean distance formula, to calculate the distance between two points A(x1, y1) and B(x2, y2) is:

\(d(A,B)=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\)

This formula is derived from the application of the Pythagorean theorem, as the differences in the x and y coordinates define the legs of a right triangle whose hypotenuse is the distance we want to find.

Graph of the distance between two points on the Cartesian plane showing the right triangle formed and the application of the Pythagorean theorem.
Distance between two points on the Cartesian plane

Solved Problems

The following are examples of problems solved by the calculator.

Calculate the exact distance between the points A(1, 2) and B(4, 6).

Result

The distance between \( (1, 2) \) and \( (4, 6) \) is:

$$ d = 5 $$

Step-by-Step Solution

The formula to use is as follows:

\( d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \)

1. Identify the coordinates:

\( \begin{aligned} x_1 &= 1, & y_1 &= 2 \\[1em] x_2 &= 4, & y_2 &= 6 \end{aligned} \)

2. Substitute the coordinates into the formula:

\( d = \sqrt{\left(4 - 1\right)^2 + \left(6 - 2\right)^2} \)

3. Calculate the differences inside the parentheses:

\( d = \sqrt{3^2 + 4^2} \)

4. Calculate the squares:

\( d = \sqrt{9 + 16} \)

5. Add the values inside the radicand:

\( d = \sqrt{25} \)

6. Final result:

\( d = 5 \)
Graph on the Cartesian plane of the line segment connecting two points in the first quadrant and the distance between them.
Graph of the line segment on the plane
Determine the distance between (-5, -2) and (-1, 6).

Answer

The distance between the points \( (-5, -2) \) and \( (-1, 6) \) is:

$$ d = \sqrt{80} = 4\sqrt{5} \approx 8.94 $$

Step-by-Step Resolution

The formula to use is this:

\( d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \)

1. Identify the coordinates of the points:

\( \begin{aligned} x_1 &= -5, & y_1 &= -2 \\[1em] x_2 &= -1, & y_2 &= 6 \end{aligned} \)

2. Substitute the coordinates into the formula:

\( d = \sqrt{\left(-1 - \left(-5\right)\right)^2 + \left(6 - \left(-2\right)\right)^2} \)

3. Calculate the differences inside the parentheses:

\( d = \sqrt{4^2 + 8^2} \)

4. Calculate the squares:

\( d = \sqrt{16 + 64} \)

5. Add the values inside the radicand:

\( d = \sqrt{80} \)

6. Exact and approximate final result:

\( d = \sqrt{80} = 4\sqrt{5} \approx 8.94 \)
Graph on the Cartesian plane of the line segment connecting two points and the distance between them.
Graph of the line segment on the Cartesian plane
Find the exact distance between the points (-5, -3) and (0, 0).

Result

The distance from the point \( (0, 0) \) to the point \( (-5, -3) \) is:

$$ d = \sqrt{34} \approx 5.83 $$

Step-by-Step Process

The distance formula is as follows:

\( d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \)

1. Identify the coordinates:

\( \begin{aligned} x_1 &= 0, & y_1 &= 0 \\[1em] x_2 &= -5, & y_2 &= -3 \end{aligned} \)

2. Substitute the coordinates into the formula:

\( d = \sqrt{\left(-5 - 0\right)^2 + \left(-3 - 0\right)^2} \)

3. Calculate the differences inside the parentheses:

\( d = \sqrt{\left(-5\right)^2 + \left(-3\right)^2} \)

4. Calculate the squares:

\( d = \sqrt{25 + 9} \)

5. Add the values inside the radicand:

\( d = \sqrt{34} \)

6. Exact and approximate final result:

\( d = \sqrt{34} \approx 5.83 \)
Cartesian plane showing the distance to the origin from a point in the third quadrant.
Graph of the line segment
Find the length of the horizontal line segment whose endpoints are (-4, 2) and (6.5, 2).

Answer

The distance between \( (-4, 2) \) and \( (6.5, 2) \) is:

$$ d = \dfrac{21}{2} = 10.5 $$

Step-by-Step Solution

The formula to use is as follows:

\( d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \)

1. Identify the coordinates:

\( \begin{aligned} x_1 &= -4, & y_1 &= 2 \\[1em] x_2 &= 6.5 = \dfrac{13}{2}, & y_2 &= 2 \end{aligned} \)

2. Substitute the coordinates into the distance formula:

\( d = \sqrt{\left(\dfrac{13}{2} - \left(-4\right)\right)^2 + \left(2 - 2\right)^2} \)

3. Calculate the differences inside the parentheses:

\( d = \sqrt{\left(\dfrac{21}{2}\right)^2 + 0^2} \)

4. Calculate the squares:

\( d = \sqrt{\dfrac{441}{4} + 0} \)

5. Add the values inside the radicand:

\( d = \sqrt{\dfrac{441}{4}} \)

6. Calculate the final result and its decimal approximation:

\( d = \dfrac{21}{2} = 10.5 \)
Graph of a horizontal line segment on the Cartesian plane with its length.
Graph of the line segment in a Cartesian system
Calculate the exact distance between the points with fractional coordinates (1/2, -3/4) and (5/2, 1/4).

Result

The distance between \( (1/2, -3/4) \) and \( (5/2, 1/4) \) is:

$$ d = \sqrt{5} \approx 2.24 $$

Step-by-Step Work

The distance formula on the Cartesian plane is:

\( d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \)

1. Identify the coordinates:

\( \begin{aligned} x_1 &= \dfrac{1}{2}, & y_1 &= -\dfrac{3}{4} \\[1em] x_2 &= \dfrac{5}{2}, & y_2 &= \dfrac{1}{4} \end{aligned} \)

2. Substitute the coordinates into the formula:

\( d = \sqrt{\left(\dfrac{5}{2} - \dfrac{1}{2}\right)^2 + \left(\dfrac{1}{4} - \left(-\dfrac{3}{4}\right)\right)^2} \)

3. Calculate the differences inside the parentheses:

\( d = \sqrt{2^2 + 1^2} \)

4. Calculate the squares:

\( d = \sqrt{4 + 1} \)

5. Add the values inside the radicand:

\( d = \sqrt{5} \)

6. Exact final result and its approximation:

\( d = \sqrt{5} \approx 2.24 \)
Cartesian plane showing the distance between two points in different quadrants.
Graph of the line segment
Determine the distance between the point (2, -3) in the fourth quadrant and the point (-2, 4) in the second quadrant.

Result

The distance between \( (2, -3) \) and \( (-2, 4) \) is:

$$ d = \sqrt{65} \approx 8.06 $$

Step-by-Step Solution

The formula to use is as follows:

\( d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \)

1. Identify the coordinates:

\( \begin{aligned} x_1 &= 2, & y_1 &= -3 \\[1em] x_2 &= -2, & y_2 &= 4 \end{aligned} \)

2. Substitute the coordinates into the formula:

\( d = \sqrt{\left(-2 - 2\right)^2 + \left(4 - \left(-3\right)\right)^2} \)

3. Calculate the differences inside the parentheses:

\( d = \sqrt{\left(-4\right)^2 + 7^2} \)

4. Calculate the squares:

\( d = \sqrt{16 + 49} \)

5. Add the values inside the radicand:

\( d = \sqrt{65} \)

6. Final result:

\( d = \sqrt{65} \approx 8.06 \)
Graph of the line segment connecting two points on the plane in the fourth and second quadrants and the distance between them.
Graph of the line segment

Related Tools

Daniel Machado

Professor of Mathematics, graduated from the Faculty of Exact, Chemical and Natural Sciences of the National University of Misiones (UNAM). Developer and creator of RigelUp, dedicated to building tools for mathematical learning.

Leave a Reply

Your email address will not be published. Required fields are marked *