This velocity calculator describes motion along one straight axis in two legs. Give it the starting, intermediate and final positions and the time used for each leg. It computes signed average velocity for each leg and the whole interval. It also shows average speed when motion between each pair of endpoints does not reverse within that leg.
Choose the coordinate axis and clock before entering data
The three positions are signed coordinates along the same line. You might assign the direction to the right of a mark as positive and to the left as negative. Keep that direction fixed across both legs. The coordinate zero is a reference mark. The motion can start anywhere along the axis, and the starting value is allowed to differ from zero.
Enter elapsed times in seconds. These are durations, not timestamps. If a log shows positions at clock times of 10, 13 and 17 seconds, the first duration is three seconds and the second is four. Each leg needs positive elapsed time. Both use the same units, and the position fields all use meters.
The intermediate coordinate is the dividing point for the motion. It can be a turn, a stop or an ordinary checkpoint. The model can find the signed change in coordinate between any two entered points. To infer total distance from them, it assumes no hidden reversal before the checkpoint or after it within the recorded legs.
Worked example with a change in direction
An object starts at 2 m, reaches 16 m after three seconds, then moves back to 5 m in the next four seconds. In the first leg the coordinate increases by 14 m. Dividing by three gives about 4.6667 m/s signed average velocity. In the second leg the displacement is 5 minus 16, or −11 m. Dividing by four gives −2.75 m/s.
Across all seven seconds, the object finishes 3 m in the positive direction from where it started. The overall signed average velocity is 3 divided by 7, about 0.42857 m/s. The intermediate position affects how the trip was split, while the overall displacement uses only the first and last positions.
The path length under the two-leg assumption is 14 m plus 11 m, or 25 m. The average speed is 25 divided by 7, about 3.57143 m/s. The object had substantial motion along the axis although its final point is near its starting point. The difference between speed and velocity captures this feature.
Use the full time in the denominator
A common arithmetic error is to take the simple average of the two signed leg velocities. In the sample, the legs last three and four seconds. Averaging their velocities without weighting gives both durations equal influence. You can instead multiply each leg velocity by its elapsed time to recover the two displacements, add them and divide by the complete time. That returns the same 3 m divided by 7 s as the endpoint calculation.
Average speed follows a related process, with unsigned lengths replacing signed displacements. If the object travels in the same direction on both legs, the path length equals the magnitude of the overall displacement. The average speed then equals the magnitude of the overall average velocity. A reversal produces a longer path for the same endpoint separation when the legs involve nonzero motion.
The OpenStax treatment of displacement and average velocity explains the relationship between position, time and direction. This calculation keeps the direction along one coordinate axis. A path in a plane or through several turning points would require additional information.
Test a return to the starting point
Change the final coordinate in the example from 5 m to 2 m. The full displacement is zero because the beginning and ending positions are equal. The first leg still covers 14 m and the return leg covers 14 m. The average speed now equals 28 m over seven seconds, or 4 m/s, while the average velocity becomes zero.
An intermediate leg with equal endpoints gives zero displacement. The tool counts zero distance for that leg under the no-reversal assumption. If an object went out and came back between those observations, the position record alone would leave that extra motion unmeasured. Add positions at the relevant turns or bring a separately measured path length to capture it.
Frequently asked questions
Why is an average velocity negative?
The endpoint has a lower coordinate than the start for the interval being described. The negative value indicates direction on your chosen axis. Time remains positive and average speed is nonnegative.
Does moving the coordinate origin change the answer?
Adding the same constant to all three positions leaves their differences unchanged. The resulting displacement, path length and averages remain the same.
Can this give the velocity at the turning point?
The output covers intervals. An instantaneous velocity at a specific moment requires a more detailed model or measurement of the motion near that time.
What if the object paused during one leg?
Include the full elapsed time for that leg, including the pause. The same displacement divided by a longer duration gives a smaller average magnitude.