A time-of-flight (ToF) sensor measures distance by timing how long its own light takes to reach something and bounce back.1Terabee. Time-of-Flight principle Because light travels at a fixed, known speed, that travel time converts directly into distance.2Meskernel. Time Of Flight Distance Sensor Deep Dive: Principles, Use Cases & Interference Mitigation An ordinary camera records what a scene looks like, while a ToF sensor records how far away each part of it is. The same basic trick ends up in phones, robot vacuums, cars, and even devices that watch a person breathe without touching them.
How Timing Light Turns Into Distance
The light comes from a built-in laser or LED, usually flashed in short pulses.2Meskernel. Time Of Flight Distance Sensor Deep Dive: Principles, Use Cases & Interference Mitigation The sensor clocks the time from sending a pulse to receiving its reflection. Distance is then the speed of light times that time, divided by two, because the light went out and came back.2Meskernel. Time Of Flight Distance Sensor Deep Dive: Principles, Use Cases & Interference Mitigation
Light moves at about 300,000 kilometres per second, so an object 2.5 metres away returns its light in roughly 17 billionths of a second.3Wikipedia. Time-of-flight camera The hard part is not the maths. It is building a clock fast enough to tell such tiny delays apart.
A ToF camera measures that distance for each point in its image, not just one spot.3Wikipedia. Time-of-flight camera The result is a depth map, a picture where each pixel holds a distance instead of a colour. Those points can also be turned into a 3D cloud where each dot has its own position in space.4Wevolver. Revolutionizing Robotics with ToF Sensors for High-Accuracy 3D Imaging and SLAM
A single-point ToF sensor gives one distance, like a laser tape measure. A ToF camera has a grid of light-sensing pixels, each doing its own timing, and that grid is why it can sense shapes, hands, and the layout of a room. Many gadgets use the simple one-point type for jobs like detecting a nearby object.
ToF is sometimes confused with sonar or radar. Those use the same echo idea, but sonar times sound and radar times radio waves. Light is far faster than sound, which is why a ToF sensor can scan quickly and update many times a second.
Direct and Indirect ToF Measure Time in Different Ways
Direct ToF fires a short pulse and times its return directly, like a stopwatch on each pulse.5IEICE Transactions on Electronics. A Tutorial and Review of Automobile Direct ToF LiDAR SoCs: Evolution of Next-Generation LiDARs Some direct sensors use detectors sensitive enough to register a single particle of light, which helps in dim conditions.6SoutheastCon 2023. Modeling of Perimeter Gated SPAD-based Direct Time-of-Flight Sensor for Low Light LiDAR Applications This approach suits long-range jobs such as car LiDAR.5IEICE Transactions on Electronics. A Tutorial and Review of Automobile Direct ToF LiDAR SoCs: Evolution of Next-Generation LiDARs
Indirect ToF sends light that flickers on and off at a set rhythm. It then compares the rhythm of the returning light with what was sent, and the offset reveals the delay.7arXiv. Multipath Interference Suppression in Indirect Time-of-Flight Imaging via a Novel Compressed Sensing Framework That avoids timing each pulse separately, and it is common in compact phone and gadget cameras.
This has a limit. The shift in a repeating flicker repeats itself once the delay equals a full flicker cycle, so an object very far away can look the same as one nearby. Designers choose the flicker rate to match the range they need, and some sensors switch between two or more rates to resolve the ambiguity. The trade-off is that a faster flicker gives finer distance detail but a shorter range before the readings repeat.
Phone and gadget listings sometimes name dToF or iToF for direct and indirect. dToF generally reaches farther, while iToF is often chosen for close-range, detailed depth. For most buyers the label matters less than how the feature performs.
The Light Inside a ToF Sensor
Many ToF sensors use a tiny chip-sized laser that shines straight up from its surface. Its narrow colour of light and ability to flash very briefly make it better suited than an LED.8SPIE Proceedings. VCSELs as light source for time-of-flight sensors Cheaper or shorter-range devices can use an LED instead, which works but gives a less sharply defined burst of light.
A tiny laser’s light is concentrated in a narrow band of colour, so a filter in front of the detector can block most other light while letting the sensor’s own light through. That filtering is a major reason lasers are favoured where good performance in ordinary room lighting matters. The exact wavelength does not change accuracy in principle, since only the speed of light matters.9Lumileds. Infrared Illumination for Time-of-Flight Applications
Still, the choice of wavelength is a real trade-off. Sensors typically use infrared at either 850 or 940 nanometres.10Rutronik. VCSels for ToF applications: How VCSels deliver optimal results Silicon detectors are 50 to 100% more sensitive at 850, giving less noisy readings, especially in dim light.9Lumileds. Infrared Illumination for Time-of-Flight Applications But 850 can show as a faint red dot in the dark, while 940 is far harder for people to see.10Rutronik. VCSels for ToF applications: How VCSels deliver optimal results That is why 940 is preferred when the light shines on someone’s face.9Lumileds. Infrared Illumination for Time-of-Flight Applications
Sunlight matters too. At ground level it has a dip around 920 to 960 nanometres, where it is less than half its 850 level, so 940 handles outdoor use better.9Lumileds. Infrared Illumination for Time-of-Flight Applications
Where You Already Use ToF Sensors
Phones use depth data to separate a subject from the background for more natural portrait blur.11Tofsensors. How TOF Cameras Are Transforming Smartphone Photography in 2026 The phone uses the depth map to decide which pixels belong to the person, then blurs the background more as it gets farther away, imitating a large camera lens. Without depth data, the phone has to guess the outline from the picture alone, which is where odd cutouts around hair tend to come from.
Depth also speeds up autofocus and helps night portraits, where ordinary focus struggles.11Tofsensors. How TOF Cameras Are Transforming Smartphone Photography in 2026 Augmented reality apps rely on it to know room size, surfaces, and object distance.11Tofsensors. How TOF Cameras Are Transforming Smartphone Photography in 2026 These effects can work even in dim lighting, without heavy after-processing.12EE Times Europe. State-of-the-Art Photography and Immersive AR/MR Experiences: REAL3TM 3D ToF Imager with Longest Range in the Market
To check whether your phone has one, look on the spec sheet for ToF, 3D depth, or a LiDAR scanner. It is usually a small extra window near the rear cameras. Not every phone has one, since some estimate depth with software instead.
Cars and robots use it to see their surroundings. LiDAR, a laser ranging system built on time-of-flight, is key to driver-assistance features.5IEICE Transactions on Electronics. A Tutorial and Review of Automobile Direct ToF LiDAR SoCs: Evolution of Next-Generation LiDARs Robot vacuums, warehouse robots and drones use ToF for obstacle avoidance and mapping.13Sensorlidar. Time-of-Flight Sensors Guide for AMR, AGV & Robotic Arm Solutions The 3D points let the robot build a map and locate itself within it.4Wevolver. Revolutionizing Robotics with ToF Sensors for High-Accuracy 3D Imaging and SLAM A low-cost ToF camera paired with a small computer can also warn of nearby obstacles indoors, with possible uses such as guidance for blind people.14Revista Tecnología en Marcha. A low cost collision avoidance system based on a ToF camera for SLAM approaches
At home, TVs and projectors can use ToF for gesture control in place of a remote.15BigGo Finance. Saying Goodbye to Lost Remotes: How TOF Gesture Recognition Is Reshaping Smart TV and Projector Interaction Low-resolution ToF sensors can detect falls in indoor settings, which is useful in elderly care.16ECSA-11. ToF Sensor-Based Fall Detection for Elderly Care A phone’s ToF lens has measured the breathing rate of people sitting still with small error in a small trial.17PubMed. Non-contact Breathing Rate Detection Based on Time of Flight Sensor ToF cameras have also been tested for contactless heart and breathing rate monitoring.18Applied Sciences. Contactless Vital Sign Monitoring System for Heart and Respiratory Rate Measurements with Motion Compensation Using a Near-Infrared Time-of-Flight Camera These health uses are mostly trials, not medical devices.
When ToF Sensors Get It Wrong
ToF sensors are sensitive to ambient light, which is why they can struggle outdoors.19ISPRS Journal of Photogrammetry and Remote Sensing. Indoor and outdoor depth imaging of leaves with time-of-flight and stereo vision sensors: analysis and comparison The sensor is listening for its own pulse, and sunlight contains plenty of infrared arriving at the same time. Strong sun adds a flood of unwanted light to each pixel, which can swamp the faint returning signal. The result is noisier readings or, in the worst case, no reading at all for some points. Makers add optical filters, multiple flicker rates and smarter processing to separate their light from the sun’s.20Patsnap Eureka. How Time-Of-Flight Maintains Millimeter-Scale Accuracy In Sunlight?
Light can also reach a pixel by bouncing off several surfaces, not just the direct path, which distorts depth readings, especially near corners.21Image and Vision Computing. Modeling and correction of multipath interference in time of flight cameras In a corner, some light arrives after bouncing off both walls. It has travelled farther than the direct path, so the sensor mixes the two and reports a distance that is too long. The corner tends to look rounded or deeper than it really is. Edges where a near object meets the background can likewise blur into an in-between distance.22IEEE International Conference on Robotics and Automation (ICRA). Learning to Remove Multipath Distortions in Time-of-Flight Range Images for a Robotic Arm Setup
Shiny surfaces cause trouble too. In one test, a ToF camera’s error was about 1.5 millimetres on wood but 13.4 on stainless steel, because a mirror-like surface sends less light straight back to the sensor.23PubMed Central. Depth Errors Analysis and Correction for Time-of-Flight Cameras Heat matters as well: temperature drift is typically 0.5 to 2 millimetres per degree, adding up to several centimetres over a wide range.24Patsnap Eureka. Time-Of-Flight Calibration: Temperature Drift, Baseline And Factory Flow Built-in correction can shrink these errors sharply, in one car LiDAR by about 85%.25Electronics. A Triple Compensation Method for Correcting Temperature-Induced Distance Errors in SPAD-Based d-ToF LiDAR
You can get better readings by avoiding mirrors, glass, and polished metal when measuring. Flat walls work better than corners, and shade works better than direct sunlight for AR or measuring.
ToF Versus Ordinary Cameras and Stereo Depth
ToF delivers fast, accurate depth in suitable conditions, but at lower resolution.19ISPRS Journal of Photogrammetry and Remote Sensing. Indoor and outdoor depth imaging of leaves with time-of-flight and stereo vision sensors: analysis and comparison Stereo vision, which uses two cameras like two eyes, copes better with bright light and gives more detail.19ISPRS Journal of Photogrammetry and Remote Sensing. Indoor and outdoor depth imaging of leaves with time-of-flight and stereo vision sensors: analysis and comparison But stereo struggles on plain surfaces with no texture and needs more computing power.19ISPRS Journal of Photogrammetry and Remote Sensing. Indoor and outdoor depth imaging of leaves with time-of-flight and stereo vision sensors: analysis and comparison Some devices combine methods to cover each other’s weaknesses.
Some phones also guess depth from a single camera using AI. Those guesses can fail on unusual shapes, while ToF measures rather than guesses.
Is a ToF Sensor a Privacy Risk
ToF sensors output distance data rather than full-colour video, so they don’t record faces or room details the way a camera does, though depth data can still capture the shape of a face or body.26Tofsensors. TOF and Smart Home: From Touch Control to Contactless Interaction The lighter data can also be processed on the device instead of being sent to the cloud.26Tofsensors. TOF and Smart Home: From Touch Control to Contactless Interaction
Phones often pair ToF with regular cameras, so the privacy gain applies only to depth-only devices. When checking a gadget’s claims, see whether it has a separate camera and whether data is processed locally. A sensor-only device is the more private choice for bedrooms or bathrooms.
What’s Next for ToF Sensors
The industry wants sensors that work better in ambient light, see wider, and use less power.27STMicroelectronics. Performance with new sensors based on the world’s first optical metasurface technology To get there, some newer ToF sensors use ultra-thin flat lenses that collect more light in less space.27STMicroelectronics. Performance with new sensors based on the world’s first optical metasurface technology That means modules can be smaller, cheaper and more power-efficient across phones, factories and cars.28Metalenz. Metalenz and STMicroelectronics Deliver World’s First Optical Metasurface Technology for Consumer Electronics Devices

