Relative Velocity Calculator
Calculate relative velocity between two objects in 1D or 2D. Find closing speed, approach angles, and vector components with instant results.
Relative Velocity Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: V_AB = V_A - V_B (1D) | V_rel = sqrt((VAx-VBx)^2 + (VAy-VBy)^2) (2D)
Additional inputs: Speed, Angle (degrees).
Worked example โ V_AB = 20 km/h (A overtaking B) | V_BA = -20 km/h (B sees A approaching)
Formula
V_AB = V_A - V_B (1D) | V_rel = sqrt((VAx-VBx)^2 + (VAy-VBy)^2) (2D)
Relative velocity of A with respect to B equals the vector difference of their velocities. In 1D, this is simple subtraction. In 2D, subtract each component separately then find the magnitude and direction of the resultant vector.
Worked Examples
Example 1: Highway Overtaking
Problem:Car A travels at 110 km/h and Car B at 90 km/h in the same direction. What is the relative velocity of A with respect to B?
Solution:Both cars same direction: V_A = 110 km/h, V_B = 90 km/h V_AB = V_A - V_B = 110 - 90 = 20 km/h V_BA = V_B - V_A = 90 - 110 = -20 km/h Car A sees Car B receding at 20 km/h. Car B sees Car A approaching at 20 km/h.
Result:V_AB = 20 km/h (A overtaking B) | V_BA = -20 km/h (B sees A approaching)
Example 2: River Crossing Problem
Problem:A boat aims north at 5 m/s (Vy=5, Vx=0). River flows east at 3 m/s (Vx=3, Vy=0). What is the boat's velocity relative to the ground?
Solution:Boat velocity: V_boat = (0, 5) m/s River current: V_river = (3, 0) m/s Ground velocity: V_ground = V_boat + V_river = (3, 5) m/s Magnitude: sqrt(9 + 25) = sqrt(34) = 5.831 m/s Direction: arctan(5/3) = 59.04 degrees from east
Result:Ground speed: 5.831 m/s at 59.0 degrees from east | Drift: 3 m/s eastward
Frequently Asked Questions
What is relative velocity?
Relative velocity is the velocity of one object as observed from the reference frame of another moving object. When you sit on a train moving at 80 km/h and watch another train passing at 100 km/h in the same direction, the other train appears to move at only 20 km/h relative to you. Mathematically, the relative velocity of object A with respect to object B is calculated as V_AB = V_A - V_B, where V_A and V_B are the velocities measured from a stationary reference frame. This concept is fundamental in classical mechanics and applies to all everyday scenarios. In special relativity, the formula changes for speeds approaching the speed of light, but for all practical purposes at terrestrial speeds, simple vector subtraction works perfectly.
How do you calculate relative velocity in two dimensions?
In two dimensions, relative velocity is calculated using vector subtraction. Each velocity is broken into x and y components: V_Ax, V_Ay for object A and V_Bx, V_By for object B. The relative velocity components are V_rel_x = V_Ax - V_Bx and V_rel_y = V_Ay - V_By. The magnitude of the relative velocity is found using the Pythagorean theorem: |V_rel| = sqrt(V_rel_x squared + V_rel_y squared). The direction is found using the arctangent: theta = arctan(V_rel_y / V_rel_x). Alternatively, if you know the speeds and directions (angles) of both objects, you first convert to components using V_x = V cos(theta) and V_y = V sin(theta), then apply the same subtraction method. This approach is essential for navigation, collision avoidance, and projectile analysis.
What happens when objects move in opposite directions?
When two objects move toward each other in opposite directions, their relative velocity has a magnitude equal to the sum of their individual speeds. For example, if car A travels east at 60 km/h and car B travels west at 40 km/h, the relative velocity of A with respect to B is 60 - (-40) = 100 km/h. This is why head-on collisions are so devastating, as the closing speed is the sum of both vehicles' speeds. Conversely, if two objects move away from each other, the relative speed is still the sum of their speeds but in the separating direction. This principle applies in many real-world scenarios including aircraft interception, naval navigation, and traffic safety analysis. Understanding this concept is crucial for calculating time to impact and safe following distances.
How is relative velocity used in real-world applications?
Relative velocity has numerous practical applications across engineering, transportation, and physics. In aviation, pilots calculate relative wind velocity to determine airspeed versus ground speed and to plan crosswind landings. In naval operations, relative velocity is used for collision avoidance and intercepting other vessels. In ballistics, the relative velocity between a projectile and its target determines impact energy. Traffic engineers use relative velocity to design safe merging lanes and calculate stopping distances. In sports like baseball and cricket, the relative velocity between the bat and ball determines hitting power. Astronomers use relative velocity measurements via Doppler shift to detect exoplanets and measure galaxy recession speeds. River crossing problems in physics also rely on relative velocity between the boat, river current, and the bank.
What is the difference between classical and relativistic velocity addition?
In classical mechanics, relative velocity is calculated by simple vector subtraction: V_AB = V_A - V_B. This works perfectly for everyday speeds but breaks down at velocities approaching the speed of light. Einstein's special relativity introduces a correction factor: V_rel = (V_A - V_B) / (1 - V_A x V_B / c squared), where c is the speed of light (approximately 300,000 km/s). At everyday speeds, the denominator is essentially 1, so the formulas agree. However, at high speeds, the relativistic formula ensures that no relative velocity can exceed the speed of light. For example, two spaceships approaching each other at 0.8c each would have a classical relative velocity of 1.6c, but the relativistic calculation gives 0.976c. Relative Velocity Calculator uses classical mechanics, which is accurate for all terrestrial applications.
How are V_AB and V_BA related to each other?
They are exact negatives: V_AB = -V_BA, because swapping the order of the vector subtraction flips every component. The two observers therefore agree on the relative speed but describe opposite directions. If A sees B closing at 20 km/h from the north, B sees A closing at 20 km/h from the south. A useful consequence is that relative speed, the magnitude, is a single number both frames share, so collision analysis can quote it without naming an observer.
What is the difference between relative speed and closing speed?
Relative speed is the full magnitude of the velocity difference vector. Closing speed is only the part of that vector aimed along the line of sight joining the two objects, which is the rate at which the gap actually shrinks. Two aircraft crossing at right angles can have a large relative speed yet a closing rate of zero at the instant of closest approach, because the relative velocity is then perpendicular to the separation. Radar and collision-avoidance systems track the line-of-sight component, not the raw magnitude.
How do you find relative speed from two speeds and the angle between them?
Use the law of cosines on the velocity triangle: |V_rel| = sqrt(vA^2 + vB^2 - 2 vA vB cos(phi)), where phi is the angle between the two velocity vectors. At phi = 0 the expression collapses to the difference of the speeds, and at phi = 180 degrees it gives their sum. For a car at 60 km/h and one at 40 km/h crossing at 90 degrees, cos(phi) = 0, so the relative speed is sqrt(3600 + 1600) = 72.1 km/h. This avoids resolving into components when only the included angle is known.
How do pilots use relative velocity to correct for a crosswind?
The wind triangle adds the aircraft's velocity through the air to the wind velocity to get the ground velocity. To track straight across a pure crosswind, the pilot crabs into it by an angle of arcsin(wind speed / airspeed). With 200 km/h airspeed and a 40 km/h crosswind that is arcsin(0.2) = 11.5 degrees, and the resulting ground speed is sqrt(200^2 - 40^2) = 196 km/h. The same construction solves the river-crossing problem, with the current in place of the wind.
Why is relative velocity the same for every inertial observer?
Under a Galilean transformation, moving to a frame travelling at velocity U subtracts U from every measured velocity. In the difference V_A - V_B the two U terms cancel, so the relative velocity is unchanged. That invariance is why you can compute a collision from the roadside, from inside one of the cars, or from a passing train and get identical answers, and it is the reason accelerations and forces are frame-independent in Newtonian mechanics. The cancellation fails only at speeds where the relativistic addition rule takes over.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎVelocity Calculator
Calculate velocity with inputs, formulas, and instant results.
๐งฎAngular Velocity Calculator
Calculate angular velocity with inputs, formulas, and instant results.
๐งฎTerminal Velocity Calculator
Calculate terminal velocity with inputs, formulas, and instant results.
๐งฎAcceleration Calculator
Calculate acceleration with inputs, formulas, and instant results.
๐งฎMotion on Incline with Friction Calculator
Calculate motion on incline with friction with inputs, formulas, and instant results.
๐งฎCoupled Spring Damper Calculator
Calculate coupled spring damper with inputs, formulas, and instant results.
๐งฎFriction Force Calculator
Calculate friction force with inputs, formulas, and instant results.
๐งฎImpulse Calculator
Calculate impulse with inputs, formulas, and instant results.