# Distance Calculator

It is a measurement of the shortest distance of two points from each other. In simple words, it is a measure of the length of space between two points. It is also called displacement.

## Formula of Distance Calculator

The formula to calculate the distance is as follows

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

In the distance formula, x and y are the coordinates of a line segment. Where x1 is the first coordinate and x2 is the second coordinate of a line, y1 and y2 are the same as the x coordinates.

Note:

If you want to calculate average velocity, you can use the Average Velocity Calculator.

### Example

Find the distance between two points (4, 12) and (8, 11) by using the distance formula.

Given data

(x1-x2) = (4, 12)
(y1-y2) = (8, 11)

To Find

Distance = ?

Solution

By using the formula listed below, you can find the distance.

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

Putting values in the formula:

$d = \sqrt {{{\left( {12 - 4} \right)}^2} + {{\left( {11 - 8} \right)}^2}}$ $d = \sqrt {{{\left( 8 \right)}^2} + {{\left( 3 \right)}^2}}$ $d = \sqrt {64 + 9}$ $d = \sqrt {73}$ $d = 8.54$

So, we have the distance between two points of a line segment is 8.54

### How to use the Distance Calculator?

The steps to use the distance calculator are as follows:

Step 1: Enter the value of x1 in the first required input.

Step 2: Enter the value of x2 in the second required input.

Step 3: Enter the value of y1 in the third required input.

Step 4: Enter the value of y2 in the fourth required input.

Step 5: The calculator will automatically display an answer on the screen.

### Calculator use

To find the distance between the two points of a line segment, you can use our distance formula calculator. Just enter the required values, and the answer will be shown in the output field