Displacement Calculator
Calculate displacement, final position, or initial position using Δx = xf − xi — with unit conversion, a full step-by-step solution, and a labeled number-line diagram showing direction.
Try an example
Position–Displacement Number Line
The dots mark the initial and final positions, and the arrow shows the displacement — its length and direction are the real answer, with every value labeled directly on the line.
Step-by-Step Solution
Here's exactly how this answer was calculated, one step at a time.
Given: xi = 2 m, xf = 12 m
Step 1: Write the displacement formula
Displacement is the straight-line change in position, including direction — a positive result means net motion in the positive direction, a negative result means net motion in the negative direction.
Displacement (Δx) = Final Position (xf) − Initial Position (xi)Step 2: Convert to consistent base units
xi = 2 m = 2 m xf = 12 m = 12 mStep 3: Subtract initial position from final position
Δx = 12 − 2Step 4: Result in meters
Δx = 10 mStep 5: Convert to m
Δx = 10 m ÷ conversion factor = 10 mStep 6: Final answer
Displacement = 10 m
The result is:
10 m
Free Online Displacement Calculator
This displacement calculator finds the straight-line change in position between two points using the formula Δx = xf − xi, and it can also solve in reverse for the final position or the initial position. Enter any two known positions (or a position and a displacement) in any common unit, choose an optional time to see the resulting average velocity, and the calculator instantly converts everything, works through a complete step-by-step solution, and draws a labeled number-line diagram showing exactly where the object started, where it ended, and which direction it moved — so the whole answer is visible in one picture.
Unlike a distance calculator, which tracks total path length using velocity and acceleration, this tool is built around position: you tell it where something started and where it ended up (or how far it shifted), and it works out the rest — which makes it ideal for coordinate-based physics problems, number-line exercises, and anywhere direction genuinely matters.
What Is Displacement? (Definition and Formula)
Displacement is the change in an object's position, measured as a straight line from its starting point to its ending point, along with the direction of that change. It is a vector quantity — meaning it has both magnitude (how far) and direction (which way) — which is what separates it from distance, a scalar that only measures the total length of the path traveled.
The formula for displacement is:
- Displacement (Δx) = Final Position (xf) − Initial Position (xi)
- The SI unit of displacement is the meter (m), though kilometers, miles, and feet are also common depending on the scale of motion.
- Example: an object starts at position +2 m and ends at position +12 m → Δx = 12 − 2 = +10 m (positive direction)
Displacement vs Distance: What's the Difference?
This is one of the most commonly confused pairs of terms in introductory physics, and the difference matters a great deal. Distance is the total length of the path an object actually travels, and it is always positive, since it accumulates no matter which direction the object moves. Displacement only cares about the net change between the starting point and the ending point, ignoring whatever path was taken in between.
A classic example makes this clear: if you walk 20 meters east and then walk back 20 meters west to your exact starting point, you have covered a distance of 40 meters, but your displacement is zero, because your final position is identical to your initial position. This calculator computes displacement specifically — the net, direction-aware change in position — not total distance traveled.
Understanding Positive and Negative Displacement
Because displacement is a vector, its sign carries real meaning, not just magnitude.
- Positive displacement means the object ended up further in the direction chosen as positive (commonly right, east, or up) than where it started.
- Negative displacement means the object ended up further in the direction chosen as negative (commonly left, west, or down) than where it started.
- Zero displacement means the object returned to its exact starting position, even if it moved a great deal in between.
How to Find Final Position from Initial Position and Displacement
If you know where an object started and how far and which way it moved, you can rearrange the formula to find its ending position.
- Final Position (xf) = Initial Position (xi) + Displacement (Δx)
- Example: an object starts at −5 km and undergoes a displacement of +20 km → xf = −5 + 20 = +15 km
How to Find Initial Position from Final Position and Displacement
If you know where an object ended up and how far and which way it moved to get there, you can work backward to find where it started.
- Initial Position (xi) = Final Position (xf) − Displacement (Δx)
- Example: an object ends at 100 m after a displacement of −30 m → xi = 100 − (−30) = 130 m
Reading the Number-Line Diagram
The diagram above this section plots your positions directly on a number line, exactly the way most physics textbooks introduce one-dimensional motion. The blue dot marks the initial position, the amber dot marks the final position, and the indigo arrow above the line shows the displacement itself — its length represents the magnitude, and the direction it points shows whether the net motion was positive or negative. If a time is entered, the average velocity (displacement divided by time) is calculated and shown as well, since average velocity is itself defined in terms of displacement, not total distance.
Displacement and Average Velocity
Average velocity is defined using displacement, not distance: Average Velocity = Displacement ÷ Time (v_avg = Δx ÷ Δt). This is why the round-trip example above has an average velocity of exactly zero — even though real motion and real distance occurred, the net displacement was zero, so the average velocity comes out to zero as well. This is a key distinction from average speed, which is always calculated using total distance and is therefore always positive.
How to Use This Displacement Calculator
Choose what you want to find — Displacement, Final Position, or Initial Position — from the dropdown, then fill in the two values you already know, using positive numbers for positions on one side of your reference origin and negative numbers for positions on the other side. Optionally, enter the time taken to also see the resulting average velocity. The calculator instantly converts everything to a common base unit, applies the correct formula, and shows a signed result — plus a clear number-line diagram with every value labeled.
Scroll down for the complete step-by-step solution, which mirrors exactly how you'd solve it by hand: the formula first, unit conversion shown explicitly, then the subtraction or addition worked through to the final signed answer.
Worked Examples
Finding displacement: an object moves from +2 m to +12 m → Δx = 12 − 2 = +10 m.
Finding displacement with reversal: a car moves from +50 m to −10 m → Δx = −10 − 50 = −60 m.
Finding displacement on a round trip: an object starts and ends at 0 m → Δx = 0 − 0 = 0 m, even though real distance was traveled.
Finding final position: an object starts at −5 km and undergoes +20 km of displacement → xf = −5 + 20 = +15 km.
Real-World Applications of the Displacement Formula
The concept of displacement, and the idea of tracking net position change, comes up throughout physics, navigation, and engineering:
- Navigation and GPS — calculating the net change in position of a vehicle, ship, or aircraft between two points.
- Robotics — commanding a robotic arm or vehicle to move a precise net distance in a specific direction.
- Physics and kinematics — solving one-dimensional and projectile motion problems where direction is essential to the answer.
- Sports analytics — measuring a player's net position change on a field or court over time, as distinct from total distance covered.
- Structural and mechanical engineering — tracking the net displacement of a component under load, such as in materials testing.
Displacement in Kinematics: Connecting to Other Motion Equations
While this calculator focuses on the direct definition Δx = xf − xi, displacement is also produced by motion itself, following s = ut + ½at² when starting velocity and constant acceleration are known — the same equation used by the dedicated Distance Calculator. The two tools complement each other: the Distance Calculator works forward from motion (velocity, acceleration, time) to find how far something travels, while this Displacement Calculator works directly with position, which is useful whenever you already know where something started and ended, regardless of the path or motion in between.
Tips for Solving Displacement Word Problems
Displacement problems trip students up mainly around sign conventions, and a few habits prevent most mistakes:
- Choose a clear reference origin and positive direction before assigning any positions, and stick with that convention throughout the problem.
- Remember displacement is always Final minus Initial, never the other way around.
- Don't confuse displacement with distance — a return trip to the starting point always has zero displacement, regardless of the path length.
- Convert all positions to the same unit before subtracting.
- If the problem describes total distance walked, run, or driven, that is not the same value as the displacement unless the motion was in a single, unbroken direction.
Frequently Asked Questions
What is the formula for displacement? Displacement = Final Position − Initial Position, written Δx = xf − xi.
What is the difference between displacement and distance? Distance is the total path length traveled and is always positive; displacement is the net, straight-line change in position, including direction, and can be positive, negative, or zero.
Can displacement be zero even if an object moved? Yes — if an object returns to its exact starting position, its displacement is zero regardless of how far it actually traveled.
What does negative displacement mean? Negative displacement means the object's net position change was in the direction defined as negative, not that it moved 'less' than a positive displacement of the same magnitude.
How is average velocity related to displacement? Average velocity equals displacement divided by time (not distance divided by time), which is why a round trip has an average velocity of exactly zero.
Frequently Asked Questions
What is the formula for displacement?
Displacement = Final Position − Initial Position, written Δx = xf − xi. It measures the net, straight-line change in position, including direction.
What is the difference between displacement and distance?
Distance is the total path length traveled and is always positive. Displacement is the net change in position including direction, and can be positive, negative, or zero — even after real motion has occurred.
Can displacement be zero even if the object moved?
Yes. If an object ends up exactly where it started — like a round trip — its displacement is zero, even though the total distance traveled was greater than zero.
What does a negative displacement mean?
A negative displacement means the object's net position change happened in the direction defined as negative (for example, left, west, or down), not that the motion was somehow smaller.
How do I calculate average velocity from displacement?
Average Velocity = Displacement ÷ Time. This calculator computes it automatically whenever you enter an optional time value.
Is displacement the same as position?
No — position (x) is a single point's location relative to a reference origin, while displacement (Δx) is the change between two positions.