# Distance between two points calculator

Distance between two points calculator

When two points are marked in a row and a line segment connects them, the distance between the two points is the length of the segment connecting them. The length of any segment can never be negative.

If you want to calculate the distance between two points, you can use our calculator for calculating the distance between two points calculator.

#### How to use the calculator for calculating the distance between two points calculator?

Well, if we want to calculate the distance between two points, we have to give the coordinates, of those two points, as (Xa, Ya) and (Xb, Yb), and then we simply need to hit the calculate button.

The distance between the two points calculator uses the two points’ coordinates to find the length of the segment joining the points in a 2-dimensional plane. A calculator is a geometric tool that makes easy calculations to know the length of points for the 2- dimensional Cartesian coordinates plane.

• Enter the coordinates (X1, Y1) and (X2, Y2) of two points in the provided boxes.
• The result button present below will provide the calculated result.
• The distance calculator will give the length of the segment.

Note-

The numbers added for calculations should be real numbers. Some of the coordinates may also be variable.

The negative signs can also be processed for the calculation.

### What is the distance between two points?

The length of the segment is usually denoted by the endpoint notation with an over-line. The length of AB is denoted by AB.

If the two points, A and B are on X-axis, the points noted are written as (Xa, 0) and (Xb, 0), and the same method can be applied to the points on Y-axis as (0, Ya) and (0, Yb).

The distance between the two points can be calculated by the formula of the Pythagoras theorem(distance formula). The distance between points (X1, Y1) and (X2, Y2) can be given by-

d = (X2− X1)2 + (Y2−Y1)2

For example- to calculate the distance between 2 points (5, 2) and (7, 2).using the distance formula-

Solution- let us consider, X1 = 5, X2 = 7, Y1 = 2, Y2 = 2

d= (7−5)2 + (2−2)2

d = (2)2 + (0)2

d = 2

The distance between the two points is 2.

You can easily try the calculations on our free online calculator which loosens your manual effort. You can try both manual calculations and check for the corrections of the result with our calculation. The two-step method will generate easy results for you to get proper error-less calculations.

#### FAQ About Distance between two points calculator

1. How to find the midpoint of a line?

Ans: Well, to find the midpoint of some line, we are going to use the coordinates of the other two points, to calculate the midpoint.

2. What is the formula for calculating the midpoint?

Ans: The formula for calculating the midpoint is as follows –
(Xa + Xb)/2, (Ya + Yb)/2
Here, Xa and Ya are the coordinates of one point, and Xb and Yb are the coordinates of another point.

Scroll to Top