Blucalculator Open Tool

Displacement Calculator

Calculate displacement using simple position change (Δx = x_f - x_i) or kinematics (Δx = v_i·t + ½at²). Includes direction, magnitude, and unit conversions.

Embed This Calculator

Copy the code and paste it into any webpage to embed this calculator.

WordPress users: add a Custom HTML block (not the Embed block) and paste the code there.

More embed options

Free to use. A small "Powered by Blucalculator" credit is appreciated but not required.

How to use this calculator

Choose between two calculation methods using the tab buttons at the top of the calculator.

Simple tab: Enter the initial position (x_i) and the final position (x_f) in meters. Displacement is calculated as Δx = x_f - x_i. Both values can be positive or negative (for example, positions to the left of the origin are negative). This method is straightforward for any situation where you know the start and end coordinates.

Kinematic tab: Enter the initial velocity (v_i in m/s), acceleration (a in m/s²), and time (t in s). The calculator uses the kinematic equation Δx = v_i × t + ½ × a × t² to find displacement. This method is for motion under constant acceleration, such as free fall, a car accelerating from rest, or a ball thrown horizontally.

After calculating, the results show the displacement (with sign indicating direction), magnitude, distance, and conversions to km and miles. The Position Diagram shows a number line with an arrow from x_i to x_f. The Position vs Time chart plots the motion trajectory.

Example: Car braking to a stop

A car starts at position x_i = 0 m, with initial velocity v_i = 25 m/s, and decelerates at a = -5 m/s². Time to stop: t = v_i / |a| = 25 / 5 = 5 s.

Select Kinematic tab: v_i = 25, a = -5, t = 5

Δx = 25 × 5 + 0.5 × (-5) × 25 = 125 - 62.5 = 62.5 m (forward)

Displacement can be zero even when distance is large. If you walk 200 m east and 200 m back west, your displacement is 0 m. Use the magnitude output (always positive) when you need the size of the displacement without its direction.


Displacement as a vector quantity

Displacement is one of the most fundamental concepts in kinematics. It is defined as the change in position of an object, and it is a vector quantity: it has both magnitude and direction.

Δx = x_f - x_i

The key distinction between displacement and distance:

  • Displacement is the straight-line vector from the starting point to the ending point. It does not depend on the path taken. It can be negative (for motion in the negative direction).
  • Distance is the total length of the path traveled. It is always non-negative. It counts every meter traveled, regardless of direction.

A marathon runner who runs 42.195 km and crosses the finish line at a different location from the start has a large distance (42.195 km) and a displacement equal to the straight-line distance from start to finish (typically much less).

A person who walks one lap around a 400 m track has traveled a distance of 400 m but has a displacement of exactly 0 m (they ended where they started).

This distinction matters in physics. Work done by a constant force depends on displacement, not distance. Speed is distance per time; velocity is displacement per time. Understanding which to use in each situation is a core kinematics skill.


1D and 2D displacement

In one dimension, displacement is simply Δx = x_f - x_i, a positive or negative number along a single axis.

In two dimensions, displacement becomes a two-component vector:

Δr = (Δx, Δy) = (x_f - x_i, y_f - y_i)

The magnitude of the 2D displacement vector is:

|Δr| = √(Δx² + Δy²)

And the direction angle measured from the positive x-axis:

θ = arctan(Δy / Δx)

2D displacement example

A hiker starts at coordinates (0, 0) m, walks to (300, 0) m, then turns and walks to (300, 400) m.

Distance traveled = 300 + 400 = 700 m

Displacement = from (0,0) to (300, 400): Δx = 300 m, Δy = 400 m Magnitude = √(300² + 400²) = √(90000 + 160000) = 500 m Direction = arctan(400/300) = 53.1° north of east

In three dimensions, a third component Δz is added, and the magnitude formula extends to √(Δx² + Δy² + Δz²).


The four kinematic equations for displacement

Under constant acceleration, four equations relate the five kinematic variables: displacement (Δx), initial velocity (v_i), final velocity (v_f), acceleration (a), and time (t). Any problem with constant acceleration can be solved with these four equations if three of the five variables are known.

Δx = v_i × t + ½ × a × t²
Δx = v_f × t - ½ × a × t²
Δx = (v_i + v_f) / 2 × t
v_f² = v_i² + 2 × a × Δx

The first equation is what this calculator uses. The fourth equation is useful when time is not known. The third equation (average velocity times time) works because with constant acceleration, the velocity increases linearly, and the average of the start and end velocities gives the true average velocity.

These equations only apply to constant acceleration. For variable acceleration, displacement must be found by integrating velocity: Δx = ∫v(t) dt. The area under the v-t graph gives displacement for any shape of velocity curve.


Displacement from a velocity-time graph

One of the most powerful techniques in kinematics is reading displacement directly from a velocity-time graph.

The key rule: Displacement equals the area under the v-t curve, between the two time values of interest.

For common shapes:

  • Constant velocity (rectangle): Δx = v × Δt (base × height)
  • Uniformly accelerating from rest (right triangle): Δx = ½ × t × v_f
  • General acceleration (trapezoid): Δx = ½ × (v_i + v_f) × t

For areas below the time axis (negative velocity, meaning backward motion), the displacement contribution is negative. You subtract those areas from the positive areas to find net displacement.

Reading a v-t graph

A car travels at 20 m/s for 5 s, then brakes uniformly to rest over the next 4 s.

Phase 1 (rectangle): Δx₁ = 20 × 5 = 100 m Phase 2 (triangle): Δx₂ = ½ × 4 × 20 = 40 m Total displacement = 100 + 40 = 140 m

Distance = 140 m (same, since no backward motion)


Displacement in projectile motion

Projectile motion is a classic application of displacement with two independent components. Horizontal and vertical motions are analyzed separately.

Horizontal component (no air resistance, constant velocity):

Δx = v_x × t = v₀ cos(θ) × t

Vertical component (constant downward acceleration g = 9.81 m/s²):

Δy = v_y × t - ½ × g × t² = v₀ sin(θ) × t - ½ × g × t²

The range (horizontal displacement when the projectile returns to its launch height, Δy = 0) is:

R = v₀² × sin(2θ) / g

Range is maximized at θ = 45°. At this angle, sin(2θ) = sin(90°) = 1, giving the maximum range for any given launch speed.

Projectile example

A ball is launched at v₀ = 20 m/s at θ = 30°.

v_x = 20 cos(30°) = 17.32 m/s v_y = 20 sin(30°) = 10 m/s

Time of flight: 0 = 10t - 4.905t² → t = 10/4.905 = 2.04 s

Range: Δx = 17.32 × 2.04 = 35.3 m Maximum height: Δy_max = 10²/(2 × 9.81) = 5.1 m


Displacement in simple harmonic motion

In simple harmonic motion (SHM), the displacement varies sinusoidally with time:

x(t) = A × cos(ωt + φ)

Where A is the amplitude (maximum displacement from equilibrium), ω is the angular frequency in rad/s, and φ is the initial phase angle.

The velocity is the derivative of displacement: v(t) = -Aω sin(ωt + φ)

The acceleration is: a(t) = -Aω² cos(ωt + φ) = -ω²x(t)

Key feature: acceleration is proportional to displacement and directed toward equilibrium. This is the defining property of SHM.

Displacement is maximum (±A) when velocity is zero. Displacement is zero when velocity is maximum (±Aω). Energy alternates between elastic potential energy (½kA²) and kinetic energy (½mv²), with the total always constant.


Displacement sensors in engineering

Displacement is one of the most commonly measured quantities in engineering. Several sensor technologies are used.

Linear Variable Differential Transformers (LVDTs): Electromagnetic sensors that measure linear displacement with high precision (micrometers). Used in aerospace, automotive testing, and machine tools. They are contact-based but frictionless (the core floats magnetically).

Optical encoders: Measure displacement through counting pulses from a slotted disc or scale. Very high resolution (nanometers). Used in CNC machine tools, robotics, and semiconductor manufacturing.

Laser interferometers: Measure displacement by counting interference fringes of laser light. Resolution below 1 nanometer. Used in precision metrology and calibration laboratories.

Ultrasonic sensors: Measure distance (and by extension displacement) using the time of flight of sound pulses. Non-contact, moderate accuracy (millimeters). Used in parking sensors, level measurement, and robotics.

Potentiometers: Simple resistive sensors where resistance changes proportionally with displacement. Low cost, moderate accuracy. Used in consumer electronics, pedal position sensing, and educational applications.

In all engineering displacement sensors, the key specifications are resolution (smallest detectable change), accuracy (closeness to true value), range (maximum displacement), and linearity (how well the output follows a straight-line response across the range).


Displacement, velocity, and acceleration: the calculus connection

In calculus-based physics, displacement, velocity, and acceleration are connected through differentiation and integration. This relationship is more fundamental than the kinematic equations (which assume constant acceleration).

For any motion, velocity is the derivative of displacement with respect to time:

v(t) = dx/dt

Acceleration is the derivative of velocity with respect to time (the second derivative of displacement):

a(t) = dv/dt = d²x/dt²

Running these in reverse: displacement is the integral of velocity over time:

Δx = ∫ v(t) dt

Velocity is the integral of acceleration over time:

v(t) = v₀ + ∫ a(t) dt

For constant acceleration (a = constant), integrating directly gives the kinematic equations. For variable acceleration, such as a rocket burning fuel, or a car with a non-constant throttle, the integrals must be evaluated numerically or analytically from the specific acceleration function.

Variable acceleration example

A particle has acceleration a(t) = 3t m/s² (increasing with time). Starting from rest at x = 0:

v(t) = ∫ 3t dt = 1.5t² x(t) = ∫ 1.5t² dt = 0.5t³

At t = 4 s: v = 1.5 × 16 = 24 m/s, x = 0.5 × 64 = 32 m

The standard kinematic equation Δx = v₀t + ½at² cannot be used here because acceleration is not constant.


Displacement in GPS and navigation

Global Positioning System (GPS) technology is fundamentally a displacement measurement system. A GPS receiver determines its position by measuring the travel time of radio signals from multiple satellites. The difference between two GPS positions gives a displacement vector in three dimensions.

Modern GPS receivers achieve position accuracy of about 3-5 m under civilian conditions. Differential GPS (DGPS) and Real-Time Kinematic (RTK) GPS improve this to centimeter-level accuracy by using a reference station at a known location.

In vehicle navigation: the GPS module measures position at regular intervals (typically 1 Hz or higher). The displacement between consecutive measurements divided by the time interval gives velocity. Accumulated displacement gives the route taken. This is why GPS can show your speed, direction, and total distance traveled.

In sports science: GPS vests worn by athletes measure their displacement and derive velocity and acceleration. Coaches use this data to monitor training load, sprint speeds, and distances covered. Modern sports GPS can measure peak sprint speed (up to 12 m/s for elite footballers) and total high-speed running distance per match.

For inertial navigation (aircraft, submarines, spacecraft), displacement is calculated by integrating accelerometer readings twice. Small errors in the accelerometer measurements accumulate over time, causing drift. This is why GPS is periodically used to correct inertial navigation systems. The accuracy of the displacement estimate degrades over time without external correction.

Frequently Asked Questions

What is the difference between displacement and distance?

Displacement is a vector quantity representing the straight-line change in position from start to end, including direction. Distance is a scalar representing the total path length traveled. If you walk 5 m east and then 5 m west, your displacement is 0 m but your distance traveled is 10 m. Displacement can be negative; distance is always non-negative.

Can displacement be negative?

Yes. Displacement is negative when the final position is less than the initial position (in 1D). For example, if x_i = 10 m and x_f = 3 m, then Δx = 3 - 10 = -7 m, meaning the object moved 7 m in the negative direction (backward or left, depending on your coordinate system).

What is the displacement of a round trip?

The displacement of a complete round trip is always zero because the final position equals the initial position. A car that drives from home to work and back has traveled a distance equal to twice the commute, but its displacement is 0 m. This is why displacement and distance are equal only for one-way journeys in a straight line.

How do you calculate displacement in 2D?

In 2D, displacement is a vector with x and y components: Δx = x_f - x_i and Δy = y_f - y_i. The magnitude is √(Δx² + Δy²) and the direction angle is θ = arctan(Δy/Δx). For example, if you move 3 m east and 4 m north, displacement magnitude = √(9+16) = 5 m at 53° north of east.

What is the difference between displacement and position?

Position specifies where an object is located relative to a reference point (origin). Displacement is the change in position: Δx = x_f - x_i. You can have a large position (far from origin) but zero displacement (if you return to where you started), or a large displacement from a small initial position.

What is the kinematic equation for displacement?

The kinematic displacement equation for constant acceleration is Δx = v_i × t + ½ × a × t², where v_i is initial velocity, a is acceleration, and t is time. Other kinematic equations also give displacement: Δx = (v_i + v_f)/2 × t, or v_f² = v_i² + 2aΔx (rearranged as Δx = (v_f² - v_i²)/(2a)).

How do you find displacement from a velocity-time graph?

Displacement equals the area under the velocity-time (v-t) graph. For a rectangle (constant velocity), area = v × t. For a triangle (uniform acceleration from rest), area = ½ × base × height = ½ × t × v_f. For complex shapes, break the area into simpler geometric shapes and sum them. Areas below the time axis (negative velocity) represent negative displacement.

What is displacement in simple harmonic motion?

In simple harmonic motion (SHM), displacement varies sinusoidally with time: x(t) = A × cos(ωt + φ), where A is amplitude, ω is angular frequency, and φ is phase angle. The displacement oscillates between -A and +A. Velocity is the derivative: v = -Aω sin(ωt + φ), which is maximum when displacement is zero and zero when displacement is maximum.

What is displacement in projectile motion?

In projectile motion, displacement has two independent components. Horizontal: Δx = v_x × t (constant velocity, no acceleration). Vertical: Δy = v_iy × t - ½ × g × t² (uniform downward acceleration g). The total displacement vector magnitude is √(Δx² + Δy²). Range (horizontal displacement when projectile returns to original height) is R = v₀² sin(2θ) / g.

What units is displacement measured in?

The SI unit of displacement is the meter (m). Other common units include centimeters (cm), kilometers (km), feet (ft), and miles (mi). Because displacement is a vector, the unit always comes with a direction specification (e.g., "5 m east" or "+5 m"). In physics equations, consistent SI units ensure correct results.

Related Calculators