ThisCalculator

Everyday

Net Displacement Calculator: How to Find It

Updated · Standard formula, shown below

Net displacement 141.42 m
Direction (deg from +x)
0.8 deg
Result
Number of legs
2
You entered
Leg 1 distance
100 m
You entered

This calculator works out the net displacement from a series of straight-line movements you enter. You give it each leg’s distance and direction (or angle), and it returns the straight-line distance from start to finish, plus the overall direction. The result is the single vector that replaces all the individual steps.

Formula

For each leg i, break the movement into x and y components:

  • xi = di · cos(θi)
  • yi = di · sin(θi)

Sum all x components to get total X, and all y components to get total Y. Then:

Net displacement = √(X² + Y²)

Direction = atan2(Y, X) (in degrees, measured counterclockwise from the positive x-axis)

Variables: di is the length of leg i (in meters, feet, miles, etc.), θi is its angle measured from the positive x-axis (east) in degrees. The result is in the same unit you used for the leg distances.

Worked Example

Using the default values: two legs, each 100 m, at 0° and 90°.

  1. Leg 1: x = 100·cos(0°) = 100, y = 100·sin(0°) = 0
  2. Leg 2: x = 100·cos(90°) = 0, y = 100·sin(90°) = 100
  3. Total X = 100 + 0 = 100, Total Y = 0 + 100 = 100
  4. Displacement = √(100² + 100²) = √(20000) ≈ 141.42 m
  5. Direction = atan2(100, 100) = 45°

So walking 100 m east then 100 m north leaves you 141.42 m from the start, at a bearing of 45° (northeast). The calculator shows 141.42 m and 45.0°.

What Net Displacement Actually Means

Displacement is a vector: it has both magnitude (how far from the start) and direction (which way). It is different from distance, which is a scalar that just adds up all the path length. If you walk a 400 m lap around a track and finish where you started, your distance is 400 m but your net displacement is zero. The calculator above finds the displacement for any combination of straight-line legs, whether you are plotting a hike, checking a robot’s path, or solving a physics homework problem.

Angles are measured from the positive x-axis (east) going counterclockwise. So north is 90°, west is 180°, south is 270°. If you prefer compass bearings (clockwise from north), subtract the result from 90° or convert accordingly.

How to Use the Calculator Correctly

  • Enter the number of legs first. The calculator shows fields for each leg’s distance and angle.
  • Use the same unit for all distances (meters, feet, miles – the result will be in that unit).
  • Angles must be in degrees. If you have them in radians, multiply by 180/π.
  • For a leg that goes left or down, use a negative distance or an angle greater than 180° – both work, but be consistent.
  • If a leg has no direction (e.g., a random walk), you cannot use this simple method; you would need vector addition with probabilities.

Common Mistakes and How to Avoid Them

  • Mixing units: If one leg is in meters and another in feet, the result is meaningless. Convert everything to one unit first.
  • Using compass bearings directly: A bearing of 45° (northeast) is the same as an angle of 45° from east, but a bearing of 135° (southeast) is 135° from east as well – actually that works. But a bearing of 270° (west) is 180° from east, not 270°. Always convert: angle_from_east = (90° – bearing) if bearing is in degrees clockwise from north.
  • Forgetting that displacement is not distance: The result is always less than or equal to the total path length. If you get a larger number, check your input.
  • Rounding too early: Round only the final answer, not intermediate sums, to avoid small errors.

When to Use Net Displacement vs. Total Distance

Use net displacement when you need to know where something ends up relative to where it started: navigation, robotics, physics problems about resultant vectors, or checking if a trip actually gets you closer to a goal. Use total distance when you care about fuel consumption, wear and tear, or the length of a path (like a road trip or a running route). Many real-world tasks need both – a delivery driver cares about total distance for gas, but also about net displacement to know if they are heading back toward the depot.

For example, a drone flying 500 m north, then 300 m south has a total distance of 800 m but a net displacement of 200 m north. The calculator would show 200 m at 90°.

Limits of This Formula

This calculator assumes each leg is a straight line with a constant direction. It does not handle curved paths, elevation changes, or 3D movement. For 3D, you would add a z-component to each leg and use the same Pythagorean approach in three dimensions. Also, angles are measured in a flat plane; on a sphere (like Earth’s surface over long distances), you would need great-circle calculations instead. For typical local navigation (under a few kilometers), the flat approximation is fine.

Frequently Asked Questions

What is the difference between net displacement and total distance traveled?

Net displacement is the straight-line distance from the starting point to the ending point, with direction. Total distance is the sum of all the lengths of the path you actually took. They are equal only if you move in a straight line without changing direction.

Can I use this for a car trip with turns?

Yes, if you break the trip into straight segments and know the distance and direction of each. For a road trip with many turns, you would need to input every segment. For a rough estimate, you could use the overall start and end coordinates instead.

How do I convert compass bearings to the angles this calculator uses?

If your bearing is measured clockwise from north (0° at north, 90° at east), convert to an angle from east using: angle = (90° – bearing). For example, a bearing of 135° (southeast) becomes 90° – 135° = –45°, which is the same as 315°. You can enter –45° or 315°; both give the same components.

What if my movement is in 3D (like a drone going up and forward)?

This calculator is for 2D only. For 3D, you need to add a vertical component to each leg and compute the magnitude as √(X² + Y² + Z²). You would also need a vertical angle for each leg.

Why is my result smaller than the total distance I entered?

That is normal. Displacement is the shortest distance between start and end, so it can never be larger than the total path length. If you walk out and back along the same line, the displacement can be zero even though you walked a long way.

Can I use negative distances?

Yes, a negative distance is equivalent to reversing the direction. For example, a leg of –50 m at 0° is the same as +50 m at 180°. Both will give the same net result. Just be consistent in how you enter the data.

Related

Formula used
in n | Number of legs | - | 2 | 2
in d1 | Leg 1 distance | m | 100 | 0
in a1 | Leg 1 angle (deg from +x) | deg | 0 | 0
in d2 | Leg 2 distance | m | 100 | 0
in a2 | Leg 2 angle (deg from +x) | deg | 90 | 0
out disp | Net displacement | m | sqrt((d1*cosd(a1)+d2*cosd(a2))^2 + (d1*sind(a1)+d2*sind(a2))^2) | 2
out dir | Direction (deg from +x) | deg | atan2(d1*sind(a1)+d2*sind(a2), d1*cosd(a1)+d2*cosd(a2)) | 1

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.