Skip to content
OverCalculator
  1. Home
  2. Math & Scientific
  3. Relative Velocity Calculator
Math & Scientific

Relative Velocity Calculator

Calculate relative velocity from two speeds and the angle between their velocity vectors, with units, vector formula, examples, and edge-case guidance.

Published

Relative velocity
Relative velocity
8.66 m/s
First object speed
10 m/s
Second object speed
5 m/s
Angle between velocities
60 °

Calculated with the vector relative velocity formula √(v₁² + v₂² − 2v₁v₂cosθ). Speeds are assumed to use the selected unit.

Enter the non-negative speed of the first object; use the angle for direction.
Enter the non-negative speed of the second object; use the angle for direction.
Enter the angle between the two velocity vectors.
°

Results update as you type.

Relative Velocity Calculator

A relative velocity calculator answers a frame-of-reference question: how fast does one moving object appear to approach, recede, or pass another moving object? Instead of treating speed as a plain number, this calculator uses two speed magnitudes and the angle between their directions, so it can model same-lane traffic, head-on motion, crossing paths, and diagonal motion in one consistent way.

What the result represents

Relative velocity is the velocity of object 1 as seen from object 2, or equivalently the magnitude of the vector difference between their velocity vectors. The calculator shows a speed magnitude, not a compass bearing or signed component. That distinction matters. If two runners travel east at 6 m/s and 4 m/s, the faster runner gains at 2 m/s. If the same runners move directly toward each other, the gap closes at 10 m/s. The speeds did not change, but the geometry did.

The input unit can be meters per second, kilometers per hour, or miles per hour. Meters per second is the SI-derived velocity unit used in physics, while kilometers per hour and miles per hour are common in transportation. If your values are in different units, convert them first with the speed calculator or the feet per second to meters per second calculator. If you later need a change in velocity over time, the acceleration calculator handles that separate question.

Formula and derivation

The calculator applies the law of cosines to the vector triangle formed by the two velocity vectors and their difference:

relative velocity=v12+v222×v1×v2×cos(θ)\text{relative velocity} = \sqrt{v_1^2 + v_2^2 - 2 \times v_1 \times v_2 \times \cos(\theta)}

where:

  • v1v_1 is the first object’s speed in the selected unit.
  • v2v_2 is the second object’s speed in the same unit.
  • θ\theta is the angle between the velocity directions, in degrees.
  • relative velocity\text{relative velocity} is the magnitude of the velocity difference, reported in the same speed unit.

The formula comes from subtracting vectors. The squared length of the difference vector depends on both magnitudes and the cosine of the included angle. At 00^\circ, the cosine is 1, so the expression reduces to the absolute speed difference. At 180180^\circ, the cosine is -1, so the speeds add. At 9090^\circ, the cosine is 0, leaving a right-triangle calculation.

Example

Use the default-style example: the first object moves at 10 m/s, the second at 5 m/s, and the angle between their velocity directions is 60 degrees.

relative velocity=102+522×10×5×cos(60)\text{relative velocity} = \sqrt{10^2 + 5^2 - 2 \times 10 \times 5 \times \cos(60^\circ)}

Because cos(60)=0.5\cos(60^\circ) = 0.5, the expression becomes:

relative velocity=100+2550=75=8.660254\text{relative velocity} = \sqrt{100 + 25 - 50} = \sqrt{75} = 8.660254\ldots

Rounded the same way as the calculator, the relative velocity is 8.66 m/s. The result is less than the head-on sum of 15 m/s and greater than the same-direction difference of 5 m/s, which is exactly what the 60-degree geometry suggests.

Interpreting common angles

For same-direction motion, enter 0 degrees. This is the car-following case: a vehicle at 65 mph and another at 60 mph separate at 5 mph if they are in the same lane and direction. For opposite-direction motion, enter 180 degrees. Two trains at 70 km/h and 50 km/h close at 120 km/h before they pass. For perpendicular motion, enter 90 degrees. A drone flying north while wind carries air east can be analyzed as a right triangle if the two velocity components are perpendicular.

Angles between 180 and 360 degrees are accepted because the cosine function repeats symmetrically. For example, 300 degrees gives the same magnitude as 60 degrees. The magnitude alone cannot tell clockwise from counterclockwise; direction would require component calculations.

Applications and limits

Relative velocity appears in collision avoidance, navigation, sports tracking, robotics, and introductory mechanics. A pilot cares about airspeed relative to the air mass and ground speed relative to Earth. A boat crossing a river has motion relative to water and motion relative to the shore. A camera-tracking system may measure one athlete’s motion relative to another, not merely their independent speeds.

The calculator assumes constant velocities during the interval being considered. If either object accelerates, the relative velocity changes over time; use an instant-by-instant value or analyze the acceleration separately. Speeds must be nonnegative, and both speeds must use the same unit. The angle describes direction only; do not enter a bearing unless you have first converted two bearings into the smaller included angle between velocity vectors.

Edge cases and common mistakes

A speed of zero is allowed. Then the relative velocity is simply the other object’s speed, because a stationary observer sees the moving object at its ordinary speed. If both speeds are zero, the result is zero. The calculator accepts angles from 0 to 360 degrees; values outside that range are invalid. It does not perform relativistic velocity addition, so it is not a particle-physics tool.

Common mistakes include subtracting speeds even when objects are not parallel, using degrees in a formula that expects radians, mixing mph and m/s, and assuming the result includes direction. The calculation converts the entered angle to radians before applying the cosine, so the displayed degree input is the correct one to use.

Sources

Frequently asked questions

What does relative velocity mean?
Relative velocity is the velocity of one object as observed from another moving object. This calculator reports only the magnitude, or speed, of that relative motion. Direction is represented by the angle between the two velocity vectors rather than by separate x and y components.
Why does the angle change the relative velocity?
Velocity is a vector, so direction matters. Two objects moving side by side in the same direction separate only by their speed difference. If they move in opposite directions, their closing speed is the sum of their speeds. Intermediate angles produce values between those cases.
What angle should I use for perpendicular motion?
Use 90 degrees when the two velocity directions are at right angles, such as a boat crossing a current or two vehicles moving on intersecting roads. The calculator then combines the speeds with the Pythagorean relationship because the cosine term becomes zero.
Can I use miles per hour or kilometers per hour?
Yes. Choose the unit that both entered speeds use. The calculator does not convert one speed independently of the other; it assumes both numbers are already in meters per second, kilometers per hour, or miles per hour and reports the result in that same unit.
Does this calculator give a direction?
No. It gives the magnitude of the relative velocity vector. That is enough for closing speed, separation rate, and many introductory physics problems. To find direction, you would need components or bearings for each velocity and then subtract the full vectors.
Is this formula valid near the speed of light?
No. The formula is classical vector subtraction, appropriate for everyday speeds where relativity effects are negligible. For particles or spacecraft moving at a significant fraction of the speed of light, special relativity changes how velocities combine, so this everyday-motion calculator should not be used.

Related calculators

Relative Velocity Calculator updated at