How to Calculate Distance
Two Methods:Finding Distance with Speed and TimeFinding the Distance With Two Points
Distance, often assigned the variable d, is a measure of the space contained by a straight line between two points. Distance can refer to the space between two stationary points (for instance, a person's height is the distance from the bottom of his or her feet to the top of his or her head) or can refer to the space between a moving object and its starting location. Most distance problems can be solved with the equations d = s × t where d is distance, s is speed, and t is time, as well as d = √((x2 - x1)2 + (y2 - y1)2, where (x1, y1) and (x2, y2) are the x,y coordinates of two points.
Steps
Method 1 of 2: Finding Distance with Speed and Time
-
1Find values for speed and time. When we try to find the distance a moving object has traveled, two pieces of information are vital for making this calculation: its speed (or velocity) and the time that it has been moving. With this information, it's possible to find the distance the object has traveled via the formula d = s × t.
- To better understand the process of using the distance formula, let's solve an example problem in this section. Let's say that we're barreling down the road at 120 miles per hour (about 193 km per hour) and we want to know how far we will travel in half an hour. Using 120 mph as our value for speed and 0.5 hours as our value for time, we'll solve this problem in the next step.
Ad -
2Multiply speed times time. Once you know the speed of a moving object and the time it's been traveling, finding the distance it has traveled is relatively straightforward. Simply multiply these two quantities to find your answer.
- Note, however, that if the units of time used in your speed value are different than those used in your time value, you'll need to convert one or the other so that they are compatible. For instance, if we have a speed value that's measured in km per hour and a time value that's measured in minutes, we would need to divide the time value by 60 to convert it to hours.
- Let's solve our example problem. 120 miles/hour × 0.5 hours = 60 miles. Note that the units in the time value (hours) cross-cancel with the units in the denominator of the speed value (hours) to leave only distance units (miles).
-
3Reverse the equation to solve for other variables. The simplicity of the basic distance equation (d = s × t) makes it quite easy to use the equation for finding the values of variables besides distance. Simply isolate the variable you want to solve for according to the basic rules of algebra, then insert values for your other two variable to find a value for the third. In other words, to find your object's speed, use the equation s = d/t and to find to find the time it has been traveling, use the equation t = d/s.
- For instance, let's say that we know that a car has driven 60 miles in 50 minutes, but we don't have a value for its speed while it was driving. In this case, we might isolate the s variable in the basic distance equation to get s = d/t, then simply divide 60 miles / 50 minutes to get an answer of 1.2 miles/minute.
- Note that in our example, our answer for speed has an uncommon unit (miles/minute) as its label. To get our answer in the form of miles/hour, we would multiply it by 60 minutes/hour to get 72 miles/hour.
-
4Note that the "s" variable in the distance formula refers to average speed. It's important to understand that the basic distance formula offers a simplistic view of the movement of an object. The distance formula assumes that the moving object has constant speed — in other words, it assumes that the object in motion is moving at a single, unchanging rate of speed. For abstract math problems, such as the ones you may encounter in an academic setting, sometimes it's still possible to model an object's motion while making this assumption. In real life, however, this often doesn't accurately reflect the motion of moving objects, which can speed up, slow down, stop, and reverse over time.
- For instance, in the example problem above, we concluded that to travel 60 miles in 50 minutes, we'd need to travel at 72 miles/hour. However, this is only true if travel at one speed for the entire trip. For instance, by traveling at 80 miles/hr for half of the trip and 64 miles/hour for the other half, we will still travel 60 miles in 50 minutes — 72 miles/hour = 60 miles/50 min = ?????
- Calculus-based solutions like derivatives are often a better choice than the distance formula for defining an object's speed in real-world situations in which changes in speed are likely.
Method 2 of 2: Finding the Distance With Two Points
-
1Find two points' x, y, and/or z coordinates. What if, rather than finding the distance that a moving object has traveled, you need to find the distance between two stationary objects? In cases like this, the speed-based distance formula described above won't be of any use. Luckily, a separate distance formula can be used to easily find the straight-line distance between two points. However, to use this formula, you'll need to know the coordinates of your two points. If you're dealing with one-dimensional distance (such as on a number line), your points' coordinates will be two numbers, x1 and x2. If you're dealing with distance in two dimensions, you'll need values for two (x,y) points, (x1,y1) and (x2,y2). Finally, for three dimensions, you'll need values for (x1,y1,z1) and (x2,y2,z2).
-
2Find 1-D distance by subtracting the two points. Calculating one-dimensional distance between two points when you know the value for each is a cinch. Simply use the formula d = |x2 - x1|. In this formula, you subtract x1 from x2, then take the absolute value of your answer to find the distance between x1 and x2. Typically, you'll want to use the one-dimensional distance formula when your two points lie on a one-dimensional line.
- Note that this formula uses absolute values (the "| |" symbols). Absolute values simply mean that the terms contained within the symbols become positive if they are negative.
- For example, let's say that we're stopped by the side of the road on a perfectly straight stretch of highway. If there is a small town 5 miles ahead of us and a town 1 mile behind us, how far apart are the two towns? If we set town 1 as x1 = 5 and town 2 as x1 = -1, we can find d, the distance between the two towns, as follows:
- d = |x2 - x1|
- = |-1 - 5|
- = |-6| = 6 miles.
-
3Find 2-D distance by using the Pythagorean Theorem. Finding distance between two points in two dimensional space is more complicated than in one dimension, but is not difficult. Simply use the formula d = √((x2 - x1)2 + (y2 - y1)2). In this formula, you subtract the two points' x coordinates, square the result, subtract the y coordinates, square the result, add the two results together, and take a square root to find the distance between your two points. This formula works in the two-dimensional plane — for example, on basic x/y graphs.
- The 2-D distance formula takes advantage of the Pythagorean Theorem, which dictates that the hypotenuse of a right triangle is equal to the square root of the squares of both sides.
- For example, let's say that we have two points in the x/y plane: (3, -10) and (11, 7) that represent the center of a circle and a point on the circle, respectively. To find the straight-line distance between these two points, we can solve as follows:
- d = √((x2 - x1)2 + (y2 - y1)2)
- d = √((11 - 3)2 + (7 - -10)2)
- d = √(64 + 289)
- d = √(353) = 18.79
-
4Find 3-D distance by modifying the 2-D formula. In three dimensions, points have a z coordinate in addition to their x and y coordinates. To find the distance between two points in three-dimensional space, use d = √((x2 - x1)2 + (y2 - y1)2 + (z2 - z1)2). This is a modified form of the two-dimensional distance formula described above that takes the points' z coordinates into account. Subtracting the two points' z coordinates, squaring them, and proceeding through the rest of the formula as above will ensure your final answer represents the three-dimensional distance between your two points.
- For example, let's say that we're an astronaut floating in space near two asteroids. One is about 8 kilometers in front of us, 2 km to the right of us, and 5 miles below us, while the other is 3 km behind us, 3 km to the left of us, and 4 km above us. If we represent the positions of these asteroids with the coordinates (8,2,-5) and (-3,-3,4), we can find the distance between the two as follows:
- d = √((-3 - 8)2 + (-3 - 2)2 + (4 - -5)2)
- d = √((-11)2 + (-5)2 + (9)2)
- d = √(121 + 25 + 81)
- d = √(227) = 15.07 km
Ad
We could really use your help!
small business?

product development?
glue removal?
sabbaticals?
Article Info
Featured Article
Categories: Featured Articles | Mathematics
In other languages:
Italiano: Come Calcolare la Distanza, Deutsch: Abstand berechnen, Français: Comment calculer une distance, Español: Cómo hallar la distancia, Русский: вычислить расстояние, Português: Como Calcular uma Distância
Thanks to all authors for creating a page that has been read 2,805 times.

About this wikiHow