How to find the distance between two points calculator


Help

This tool will help you calculate the distance between two coordinates or a single point and a set of coordinates. I built this primarily to make it easy to check if a Locationless (Reverse) Cache has already been found. Inputs can be in several formats:

  • GPS Coordinates (like N 42 59.458 W 71 27.826 or 42.990967 -71.463767)
  • Geocaching.com Waypoint (like GCHAC1)
  • A URL of a page that includes waypoints (like http://www.geocaching.com/seek/cache_details.aspx?ID=105310)

All valid waypoints are parsed and their distances from the origin calculated. The results are displayed with the closest ones first.

Additionally, you can map or download the destination coordinate(s).

Thanks to fizzymagic for his distance calculation code. boulter.com geocaching <|> comments

Things You Should Know

  • Jot down the coordinates that you're measuring the distance between.
  • Plug these coordinates into the distance formula: .
  • Solve the formula by squaring the differences of the x and y values, adding these differences together, and finding the square root of the remaining sum.

Steps

  1. How to find the distance between two points calculator

    1

    Take the coordinates of two points you want to find the distance between. Call one point Point 1 (x1,y1) and make the other Point 2 (x2,y2). It does not terribly matter which point is which, as long as you keep the labels (1 and 2) consistent throughout the problem.[1]

    • x1 is the horizontal coordinate (along the x axis) of Point 1, and x2 is the horizontal coordinate of Point 2. y1 is the vertical coordinate (along the y axis) of Point 1, and y2 is the vertical coordinate of Point 2.
    • For an example, take the points (3,2) and (7,8). If (3,2) is (x1,y1), then (7,8) is (x2,y2).

  2. How to find the distance between two points calculator

    2

    Know the distance formula. This formula finds the length of a line that stretches between two points: Point 1 and Point 2. The linear distance is the square root of the square of the horizontal distance plus the square of the vertical distance between two points.[2] More simply put, it is the square root of:

    Advertisement

  3. How to find the distance between two points calculator

    3

    Find the horizontal and vertical distance between the points. First, subtract y2 - y1 to find the vertical distance. Then, subtract x2 - x1 to find the horizontal distance. Don't worry if the subtraction yields negative numbers. The next step is to square these values, and squaring always results in a positive number.[3]

    • Find the distance along the y-axis. For the example points (3,2) and (7,8), in which (3,2) is Point 1 and (7,8) is Point 2: (y2 - y1) = 8 - 2 = 6. This means that there are six units of distance on the y-axis between these two points.
    • Find the distance along the x-axis. For the same example points (3,2) and (7,8): (x2 - x1) = 7 - 3 = 4. This means that there are four units of distance separating the two points on the x-axis.

  4. How to find the distance between two points calculator

    4

    Square both values. This means that you will square the x-axis distance (x2 - x1), and that you will separately square the y-axis distance (y2 - y1).

  5. How to find the distance between two points calculator

    5

    Add the squared values together. This will give you the square of the diagonal, linear distance between your two points. In the example of the points (3,2) and (7,8), the square of (8 - 2) is 36, and the square of (7 - 3) is 16. 36 + 16 = 52.

  6. How to find the distance between two points calculator

    6

    Take the square root of the equation. This is the final step in the equation. The linear distance between the two points is the square root of the sum of the squared values of the x-axis distance and the y-axis distance.[4]

    • To carry on the example: the distance between (3,2) and (7,8) is sqrt (52), or approximately 7.21 units.

  7. Advertisement

Add New Question

  • Question

    How do I find the horizontal distance between (3, 4) and (8, 4)?

    How to find the distance between two points calculator

    Subtract 3 from 8 since both are at 4 on the y axis. So distance is: 8-3=5.

  • Question

    What is the distance from the x-axis to (7,-2)?

    How to find the distance between two points calculator

    This is an ambiguous question. I will assume you mean the shortest distance. Then, your second point will be (7,0) because the line that goes through (7,0) and (7,-2) is perpendicular to the x-axis. So your answer is 2.

  • Question

    What is the distance between (2, 3) and (-8,12)?

    How to find the distance between two points calculator

    Using the distance formula shown in the above article, find the horizontal distance between the two points by subtracting (-8) from 2, which is 10. Then find the vertical distance between the points by subtracting 12 from 3, which is -9. We then add together the squares of those two distances: 3² + (-9)² = 9 + 81 = 90. Find the square root of that sum: √90 = 9.49. That's the distance (in "units") between the two points.

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • It doesn't matter if you get a negative number after subtracting y2 - y1 or x2 - x1. Because the difference is then squared, you will always get a positive distance in your answer.[5]

    As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy!

Thanks for submitting a tip for review!

Advertisement

About This Article

Article SummaryX

To find the distance between two points on a line, take the coordinates of the two points. Label one as Point 1, with the coordinates x1 and y1, and label the other Point 2, with the coordinates x2 and y2. Plug these values into the distance formula, which is the square of X2 minus X1 plus the square of Y2 minus Y1, then the square root of that result. To see the distance formula written out, read on!

Did this summary help you?

Thanks to all authors for creating a page that has been read 804,726 times.

Did this article help you?

How do you calculate the distance between two points?

Distance between two points is the length of the line segment that connects the two points in a plane. The formula to find the distance between the two points is usually given by d=√((x2 – x1)² + (y2 – y1)²). This formula is used to find the distance between any two points on a coordinate plane or x-y plane.

What is the distance between point A and B?

The distance from A to B is the same as the distance from B to A. In order to derive the formula for the distance between two points in the plane, we consider two points A(a,b) and B(c,d). We can construct a right-angled triangle ABC, as shown in the following diagram, where the point C has coordinates (a,d).