Home/Robotics & Controls/Time-of-Flight (LiDAR) Distance Measurement

Formula & Calculator

Time-of-Flight (LiDAR) Distance Measurement

Calculates the distance to an object from the round-trip travel time of a light pulse, as used in LiDAR and laser rangefinders.

RoboticsSensorsCalculator

LiDAR Distance CalculatorTime-of-Flight · Ranging

d = (c · t) / 2
d = distance  ·  c = speed of light  ·  t = round‑trip time
⟹ Solved, c, t
m
m/s
s
Please fix the errors above.
Solve for:
Presets:
d
d: c: t:
✓ Copied!
Distance (d) Gauge
Short (< 10 m) Medium (10–100 m) Long (> 100 m)
d = (c · t) / 2  ·  c = 299,792,458 m/s (vacuum)  ·  t is round‑trip time

Interpretation

d = (c × t) / 2. Distance from time‑of‑flight measurement using light speed c. Used in LiDAR and laser rangefinders.

d = (c * t) / 2
Time-of-Flight (LiDAR) Distance Measurement

Variables

SymbolQuantityUnit
dDistance to the objectm
cSpeed of light in vacuum (or air, approximately)3e8 m/s
tRound-trip travel time of the light pulses

What it means

Time‑of‑flight sensors measure the time it takes for a light pulse (laser) to travel to an object and back. The distance is calculated using the speed of light c. This is the principle behind LiDAR. Understanding this is fundamental for 3D mapping and autonomous vehicle sensing.

Worked example

LiDAR Distance Measurement – Two Detailed Examples

Real‑World
Scenario: A LiDAR sensor measures a round‑trip time of light t = 1×10⁻⁹ s (1 nanosecond). The speed of light c = 3×10⁸ m/s. The distance d = (c × t) / 2 = (3e8 × 1e-9) / 2 = 0.3 / 2 = 0.15 m. This fine resolution is typical for short‑range LiDAR used in robotics and autonomous vehicles. The engineer uses this data to create a 3D point cloud of the environment for navigation and obstacle detection.
ParameterValue
c (m/s)300000000
t (s)1e-9
1d = (3e8 × 1e-9) / 2 = 0.3 / 2 = 0.15 m
Result 0.15 m ✓ Short distance
Scenario: A LiDAR sensor on an autonomous vehicle measures t = 3.33×10⁻⁹ s to a distant object. The distance is d = (3e8 × 3.33e-9) / 2 = 0.999 / 2 ≈ 0.5 m. This measurement is used to detect nearby obstacles. For longer distances, the time of flight increases proportionally. The autonomous driving system uses thousands of these measurements per second to build a real‑time map of the surroundings.
ParameterValue
c300000000
t3.33e-9
1d = (3e8 × 3.33e-9) / 2 ≈ 0.5 m
Result 0.5 m ✓ LiDAR distance
Insight: LiDAR (Light Detection and Ranging) uses the time‑of‑flight of laser pulses to measure distances. The formula d = c×t/2 is the same as for ultrasonic sensors but with the speed of light. LiDAR provides high‑precision, high‑speed distance measurements for 3D mapping.

Common mistakes

  • LiDAR Time‑of‑Flight distance: d = (c × t) / 2 – where c is the speed of light.
  • c: 3.00×10⁸ m/s – constant.
  • t: Round‑trip time – in seconds.
  • Units: d in metres.
  • Accuracy: Affected by timing precision – often uses pulse or phase measurement.

Applications

Time‑of‑flight (LiDAR) distance measurement, d = (c × t)/2, calculates the distance to a target by measuring the round‑trip time of a laser pulse. This is the principle behind LiDAR sensors used in autonomous vehicles, drones, and surveying. Engineers use it to generate 3D point clouds, to perform terrain mapping, and to detect obstacles. By using the speed of light c, this method offers high accuracy and long range. This formula is essential for modern perception systems in robotics and autonomous navigation.

  • 3D mapping and environmental sensing for autonomous vehicles
  • Obstacle detection and collision avoidance
  • Surveying and topographic mapping
  • Forestry and agriculture (canopy height measurement)
  • Augmented reality and depth sensing

Frequently Asked Questions

Q01What is the time‑of‑flight distance measurement formula for LiDAR?
A01

The distance to an object is d = (c · t) / 2, where c is the speed of light (≈3×10⁸ m/s) and t is the round‑trip time of a light pulse.

Q02What is the common mistake when using this formula?
A02

Forgetting to divide by 2, since the measured time is the round trip.

Q03What is the typical accuracy of LiDAR distance measurement?
A03

Millimeter‑level accuracy is common for high‑end LiDAR, while cheaper units may have centimeter accuracy.

Q04How does LiDAR compare to ultrasonic sensors?
A04

LiDAR has faster update rates, longer range, and better angular resolution. Ultrasonic is cheaper and works on transparent objects, but is slower and less accurate.

Q05What is the maximum range of a typical LiDAR?
A05

From a few meters (indoor robots) to hundreds of meters (autonomous vehicles).

Q06What factors affect LiDAR measurement accuracy?
A06

Ambient light, object reflectivity, and atmospheric conditions (fog, rain).

Q07How does a LiDAR determine the angle of the object?
A07

By using a rotating mirror or multiple lasers to scan the environment, measuring the angle of the emitted beam at the time of detection.

Q08What are the applications of LiDAR?
A08

Autonomous vehicles, robotics, surveying, archaeology, and atmospheric studies.

Q09What is the effect of sunlight on LiDAR?
A09

Strong sunlight can saturate the detector, reducing range or accuracy. Some LiDARs use narrow‑band filters to mitigate this.

Q10How do you calculate the distance from the time of flight?
A10

Measure the time between emission and detection of the pulse, then apply d = c·t/2.