## Calculate distance between two points

Contents

In this lesson I will explain how to calculate the distance between two points, with step by step exercises. We will also see how to calculate the coordinates of the midpoint between two points.

We will briefly explain how to obtain the formula that will help you to calculate the distance between two points, so that you know at all times what you are doing and you don’t just copy the formula and apply it.

We can obtain the vector that goes from point P1 to point P2, by subtracting the coordinates of point P2 minus the coordinates of point P1: the x-coordinate of P2 minus the x-coordinate of P1 on one side and the y-coordinate of P2 minus the y-coordinate of P1 on the other side.

Another data that we may be asked, when we have two points or we need it to solve an exercise, is the coordinates of the midpoint, which refers to the coordinates of the point that is right in the middle, if we join the two points by a straight line.

To obtain the coordinates of the midpoint, we must obtain the average of the coordinates of both points, calculating the average of the x-coordinates on one side and the average of the y-coordinates on the other, adding each one and dividing by 2:

### How to calculate the speed

The Euclidean straight line distance is the distance that generally comes up when thinking about distance analysis. It is the shortest distance between two points.Straight line distance is the distance measured with a ruler on a paper map. Straight line distance does not take into account the surface area between the two points. It is the distance that a bird or airplane would travel between the two points when flying over the surface.Distance accumulation is the main tool for calculating straight line distance. In its simplest form, you only have to specify the origin locations. For each cell that does not belong to the origin, the tool will calculate the straight line distance to the nearest origin location.The straight line distance can be modified when a barrier is present. Another way to modify the straight line distance is to incorporate the actual distance found by taking into account surface elevations and dips.

### How to calculate the distance traveled in a given time

The course to be applied in the calculation will be true course (Rv), surface course (Rs) or effective course (Re), depending on the external factors influencing the course: Wind (Downwind) or Current (Current Course and Hourly Current Strength). The point resulting from the calculations is called the estimated location (Se), and is indicated by the coordinates estimated latitude (le) and estimated longitude (Le). This point is also known as the fantasy point.

It is the one used when the initial situation (Si) is known, as well as the course (either Rv, Rs or Ref) and the distance sailed. Three basic trigonometric formulas are used to calculate the estimated situation:

It is the one used when we know the initial situation (Si) and the arrival situation (Sl), but not the course (either Rv, Rs or Ref) at which we have to sail nor the distance between both situations. To find the course and distance, three trigonometric formulas are used, derived from those used in direct estimation:

### How to calculate distance and displacement

Walking an average of 10,000 steps a day can help lower blood pressure, improve blood glucose control, contribute to a healthy weight and reduce the risk of abdominal obesity. Calculating walking distances can help you increase your activity level and set goals to increase your endurance and overall fitness.

Make the trip by car and drive the route you normally walk. Double the distance to account for the way back, this will help you know the distance traveled each day without having to use the pedometer.