---
slug: relative-velocity-calculator
title: "Relative Velocity Calculator"
category: scientific
updated: 2026-11-18
canonical: https://calcseed.com/c/scientific/relative-velocity-calculator/
html: /c/scientific/relative-velocity-calculator/
---

# Relative Velocity Calculator

Calculate the relative velocity between two moving objects from their speeds and the angle between their velocity vectors.

## Quick answer

**Quick answer:** with the default inputs (20 m/s, 15 m/s, 60 deg), the relative velocity is **18.03**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Speed of object A | 20 | m/s |
| Speed of object B | 15 | m/s |
| Angle between paths | 60 | deg |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Relative velocity | 18.0278 |  |

## Formula

```text
v = &radic;(v_A_² + v_B_² − 2v_A_v_B_ cos&theta;)
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Speed of object A | number | m/s | 20 |
| Speed of object B | number | m/s | 15 |
| Angle between paths | number | deg | 60 |

## Outputs

| Result | Format |
| --- | --- |
| Relative velocity | primary |
| Relative velocity | number |

## How it works

### What this calculator returns

You get one number: the magnitude of the velocity of object A as measured from object B, in metres per second. At the defaults — 20 m/s, 15 m/s and 60&deg; between the two velocity vectors — the answer is **18.03 m/s**, which is 64.9 km/h or 40.3 mph.

Only the size is reported, not the bearing. That is enough for closing-speed questions and collision warnings, but if you need the direction of the relative motion you have to take the components apart by hand.

### The formula and the minus sign

This is the law of cosines applied to the vector difference v_A_ − v_B_. Both speeds enter squared, and the cross term is subtracted, which is what distinguishes relative velocity from the vector *sum* where the same term is added. &theta; is the angle between the two velocity arrows, drawn tail to tail.

A useful check: set v_B_ = 0 and the expression collapses to &radic;(v_A_²) = v_A_. A stationary observer sees exactly the speed the moving object has, as it must.

#### The angle convention that trips everyone up

In this formula &theta; = 0&deg; means the two velocity vectors point the **same way**, so the objects travel in parallel and the relative speed is |20 − 15| = 5 m/s. &theta; = 180&deg; means they point in opposite directions, closing head-on, and the relative speed is 20 + 15 = 35 m/s. Reading 0&deg; as head-on is the single most common error with this tool.

### Worked example at the defaults

Squares: 20² = 400 and 15² = 225, giving 625. Cross term: 2 × 20 × 15 × cos 60&deg; = 600 × 0.5 = 300. Subtract: 625 − 300 = 325. Square root: **18.03 m/s**.

Sanity check the size: the answer sits below both 20 and 35, and above 5, which is what a 60&deg; separation should produce. If your result is larger than the sum of the two speeds, the inputs have been placed in the wrong fields.

### Relative speed by angle

| Angle between vectors | Situation | Relative speed |
| --- | --- | --- |
| 0&deg; | Same direction, faster pulls away | 5.0 m/s |
| 30&deg; | Slight divergence | 10.3 m/s |
| 60&deg; | Default case | 18.0 m/s |
| 90&deg; | Perpendicular paths | 25.0 m/s |
| 120&deg; | Wide crossing | 30.4 m/s |
| 180&deg; | Head-on, closing | 35.0 m/s |

The curve is not linear in angle. The first 60&deg; of separation adds 13 m/s while the last 60&deg; adds only 4.6 m/s, so most of the closing speed appears once the paths are more than 90&deg; apart.

### What changes the answer

- Either speed: raising 20 m/s to 30 m/s at 60&deg; lifts the relative speed from 18.03 to 26.5 m/s.
- The angle: from 0&deg; to 180&deg; at fixed speeds, the answer runs 5.0 to 35.0 m/s, a seven-fold span.
- Matching speeds: at 20 m/s and 20 m/s, a 0&deg; separation gives exactly zero and 180&deg; gives 40 m/s.
- Units: mixing mph and m/s without converting scales the answer by 2.237 in the wrong direction.

#### Why perpendicular paths are simple

At 90&deg; the cosine term vanishes and the result is just the hypotenuse: &radic;(20² + 15²) = 25 m/s. A boat rowing at 4 m/s straight across a 3 m/s current moves at 5 m/s relative to the bank, and the same 3-4-5 triangle appears in every crossing problem.

### Mistakes that produce a wrong closing speed

- Entering the compass bearing difference instead of the angle between the velocity vectors.
- Treating 0&deg; as head-on when it means parallel travel in this convention.
- Adding the speeds for a crossing and forgetting the angle entirely, which gives 35 instead of 25 at 90&deg;.
- Assuming the relative speed is what a collision calculator needs without also checking the closest-approach distance.

There is also a frame-of-reference issue. The relative speed is symmetric: B sees A at 18.03 m/s and A sees B at 18.03 m/s, even though each measures the other&rsquo;s direction as opposite. A ground observer sees neither 18.03 nor the simple sum, but the two individual speeds.

### Where the number gets used

Air traffic separation uses exactly this arithmetic: two aircraft at 250 m/s and 200 m/s on perpendicular tracks close at 320 m/s for as long as the geometry holds. On the road, two cars at 30 m/s and 25 m/s on a 30&deg; divergence separate at 15.0 m/s, which is why merging feels calm until the angle opens up.

For the spacing side of the same problem, pair this with the speed distance time calculator to turn a closing speed into a time to impact.

## FAQ

### What is the relative velocity formula?

For speeds vA and vB with angle &theta; between their velocity vectors, the relative speed is &radic;(vA² + vB² − 2vA vB cos &theta;). At 20 m/s, 15 m/s and 60&deg; it gives 18.03 m/s.

### When do two speeds simply add?

When the objects move in opposite directions, which is &theta; = 180&deg; in this formula. Then cos 180&deg; = −1, the cross term becomes positive, and 20 + 15 gives 35 m/s.

### Is relative velocity ever zero?

Yes. Two objects at the same speed heading the same way (&theta; = 0&deg;) have a relative speed of |20 − 20| = 0. One appears stationary from the other.

### Why does 0&deg; give the difference and not the sum?

Because &theta; is measured between the velocity arrows, not between the headings of two approaching vehicles. Parallel travel means no closing at all, so only the difference in speed separates them.

### What is the relative speed for perpendicular paths?

The cosine term disappears and you get the hypotenuse: &radic;(20² + 15²) = 25 m/s at the defaults. A 4 m/s boat crossing a 3 m/s current moves at 5 m/s over the bank.

### Does the answer change if I swap A and B?

No. The formula is symmetric, so swapping the two speeds gives the same 18.03 m/s. Only a direction calculation would flip sign.

### How do I convert the result to km/h?

Multiply by 3.6. The default 18.03 m/s is 64.9 km/h, and the head-on 35 m/s is 126 km/h.

### Can relative speed exceed the speed of light?

Not physically. Two objects each at 0.9c approaching head-on do not close at 1.8c, because velocities add relativistically; this classical formula is accurate only well below light speed.

### What is the difference between relative velocity and closing speed?

Relative velocity is the full vector difference, whose magnitude is what this tool reports. Closing speed is the component along the line joining the two objects, which equals the relative velocity only for a head-on case like 35 m/s.

### Why is my result smaller than both input speeds?

A small angle between vectors means near-parallel motion, so most of the difference cancels. At 30&deg; the default pair gives 10.3 m/s, less than either 15 or 20.

## Method and sources

Methodology: Physical constants follow CODATA 2022 recommended values, and formulas follow standard physics definitions.

Last updated: 2026-11-18.
- Relative velocity magnitude v = sqrt(vA² + vB² − 2·vA·vB·cos θ) for angle θ between velocity vectors.
