Phase Detection vs. Contrast Detection Autofocus: How On-Sensor Microlenses Dictate Speed and Accuracy
Modern mirrorless cameras rely on a combination of phase and contrast detection to lock focus. Understanding how these on-sensor technologies calculate distance and sharpness reveals why cameras hunt in low light and how hybrid systems capture fast-moving subjects.
By Hui Lin
Share this story
In short
- Phase Detection Autofocus (PDAF) calculates distance instantly by comparing two offset light beams, making it ideal for fast-moving subjects.
- Contrast Detection Autofocus (CDAF) evaluates pixel sharpness by moving the lens back and forth, offering high accuracy for static scenes.
- Mirrorless cameras embed phase-detection pixels directly on the sensor, eliminating the calibration errors common in older DSLR modules.
For an autofocus system to lock onto a subject, the camera must answer two physical questions: which direction to move the lens elements, and exactly how far to drive them. The binding constraint is light. The system must have enough illumination to either measure the phase difference between two incoming beams or evaluate the contrast of adjacent pixels.
When light drops below a critical threshold, the mathematical certainty of phase detection breaks down, forcing the camera to fall back on trial-and-error contrast evaluation. In 2026, the speed at which a camera answers those two questions dictates whether a fast-moving subject is captured sharply or lost to motion blur.[2][6]
Phase Detection Autofocus (PDAF) operates as a distance calculator, utilizing dedicated pixels on the image sensor to detect phase differences in incoming light. The system splits the incoming light through specialized microlenses, directing the beams to left-looking and right-looking pixel halves.
By comparing the parallax between these two offset images, the camera's image signal processor calculates the exact distance to the subject in a single measurement step. Because PDAF determines both the focus error and the correction direction simultaneously, it achieves focus lock without requiring the lens to sweep through various positions.[1][2]
This predictive capability makes PDAF exceptionally fast. Advanced systems can achieve focus in 0.1 to 0.3 seconds, which is fast enough to track erratic movement in sports or wildlife photography. During continuous autofocus tracking, the system updates phase difference measurements 30 to 60 times per second, adjusting the lens actuator in real time. This speed advantage is particularly critical in dynamic environments, such as unmanned aerial vehicles or robotics, where a 13-megapixel sensor like the Sony IMX258 relies on PDAF to eliminate focus hunting on moving subjects.[6][7]
Contrast Detection Autofocus (CDAF), by comparison, operates as a sharpness checker rather than a distance calculator. It does not require specialized half-masked pixels; instead, it analyzes the contrast of the captured image directly from the standard sensor pixels. The system operates on the principle that an image is sharpest when the contrast between adjacent pixels is at its maximum. To find that peak, the camera must move the lens elements step by step, continually evaluating whether the contrast is increasing or decreasing.[1][5]
Because CDAF relies on trial-and-error adjustments, it must intentionally drive the lens past the point of perfect focus and then reverse direction—a process known as hunting. This makes CDAF inherently slower than PDAF. However, because it evaluates the actual image data hitting the sensor, it is highly accurate for static subjects. In controlled environments, such as medical imaging or document scanning kiosks, CDAF ensures maximum sharpness without the risk of front-focus or back-focus errors that can occasionally plague phase detection systems.[2][3]
The transition from digital single-lens reflex (DSLR) cameras to mirrorless architectures fundamentally changed how these systems are deployed. Traditional DSLRs relied on a separate autofocus module located in the floor of the camera, utilizing a secondary mirror that diverted light away from the main sensor.
This split path reduced the light reaching the dedicated phase array by roughly 50 percent and introduced mechanical alignment errors. Mirrorless cameras embed the phase-detection pixels directly into the main image sensor, eliminating the secondary mirror and allowing autofocus coverage to extend across the entire frame.[4]
Removing the mirror box also granted optical engineers new freedoms. Nikon's Z mount, for instance, utilizes a 55-millimeter inner diameter and a remarkably short 16-millimeter flange focal distance. This geometry allows for lenses with maximum apertures as wide as f/0.95, flooding the sensor with light. Because the autofocus system reads the scene exactly the same way the exposure system does, mirrorless cameras can perform real-time face and eye detection, locking onto a subject's pupil and tracking it flawlessly even when obstacles temporarily obscure the view.[4]
As engineers at Vadzo Imaging note regarding embedded systems, "Selecting the wrong autofocus technology does not fail in the lab. It fails in the field." To maximize performance across all lighting conditions, modern cameras rely on Hybrid Autofocus. This approach combines the rapid acquisition of PDAF with the pinpoint accuracy of CDAF.
For example, a camera like the Sony a6500 utilizes 425 phase detection points to handle the heavy lifting—rapidly driving the lens to the correct ballpark—before handing off to 169 contrast detection points for final fine-tuning. This synergy ensures that the camera inherits the strengths of both technologies, using phase detection for speed and contrast detection to guarantee the subject lands exactly in focus.[5][6]
Jargon, explained
- Phase Detection Autofocus (PDAF)
- An autofocus method that calculates distance by comparing the parallax between two split beams of light entering the camera.
- Contrast Detection Autofocus (CDAF)
- An autofocus method that finds the sharpest focus by evaluating the contrast between adjacent pixels and moving the lens until contrast peaks.
- Microlens Array
- A layer of microscopic lenses placed over the camera's image sensor to direct incoming light into the individual pixel wells.
- Hybrid Autofocus
- A system that uses phase detection to quickly move the lens close to the subject, then switches to contrast detection for precise fine-tuning.
- Hunting
- The process where a camera lens moves back and forth past the point of focus to determine the sharpest contrast.
Common questions
Why does my camera hunt for focus in low light?
In low light, the camera cannot gather enough photons to calculate phase differences accurately, forcing it to fall back on contrast detection, which requires moving the lens back and forth to find the sharpest point.
What is the difference between phase detection and contrast detection?
Phase detection calculates the exact distance to a subject by comparing two offset light beams, while contrast detection evaluates image sharpness by moving the lens until the contrast between pixels is maximized.
Why are mirrorless cameras better at autofocus than DSLRs?
Mirrorless cameras embed phase-detection pixels directly onto the main image sensor, allowing them to track subjects across the entire frame without relying on a separate, mechanically aligned autofocus module.
Competing readings
Speed-Prioritizing Engineers
Focusing on the necessity of PDAF for dynamic, real-time tracking.
For engineers developing robotics, drones, and sports photography equipment, focus acquisition speed is the paramount metric. Phase Detection Autofocus is favored because it calculates the exact distance and direction in a single measurement, achieving focus in as little as 100 to 300 milliseconds. This predictive capability allows the system to update 30 to 60 times per second, maintaining a sharp lock on erratic subjects that would otherwise outpace the camera's mechanical adjustments.
Accuracy-Focused Technicians
Advocating for CDAF in controlled, static environments.
In fields like medical imaging, document scanning, and industrial inspection, the trial-and-error nature of Contrast Detection Autofocus is viewed as an asset rather than a liability. Because CDAF evaluates the actual image data hitting the sensor, it is immune to the front-focus and back-focus calibration errors that can affect phase detection systems. For these technicians, the slower acquisition speed is a worthwhile trade-off for mathematically guaranteed maximum sharpness.
Hybrid System Developers
Combining both technologies for versatile consumer and professional cameras.
Camera manufacturers recognize that neither PDAF nor CDAF is universally perfect across all lighting conditions and subject types. Hybrid system developers bridge this gap by layering both technologies onto a single sensor. By using phase detection to handle the heavy lifting of rapid focal shifts and contrast detection to perform the final microscopic adjustments, these systems deliver the speed required for video tracking alongside the precision needed for high-resolution portraiture.
- Speed-Prioritizing Engineers
- Focusing on the necessity of PDAF for dynamic, real-time tracking.
- Accuracy-Focused Technicians
- Advocating for CDAF in controlled, static environments.
- Hybrid System Developers
- Combining both technologies for versatile consumer and professional cameras.
Perspectives this story doesn't cover
- Smartphone Computational Photography Engineers
- Cinema Lens Focus Pullers
Sources
[1]FstoppersHybrid System DevelopersPhase Detection Versus Contrast Detection Autofocus
Read on Fstoppers →
[2]Vadzo ImagingSpeed-Prioritizing EngineersPDAF vs CDAF: Key Differences in an Embedded Camera
Read on Vadzo Imaging →
[3]TelycamAccuracy-Focused TechniciansPhase Detection vs Contrast Detection Autofocus
Read on Telycam →
[4]NikonHybrid System DevelopersAutofocus Reinvented: The On-Sensor Advantage
Read on Nikon →
[5]JM PeltierHybrid System DevelopersContrast vs Phase Detection & Hybrid Autofocus
Read on JM Peltier →
[6]Access NewswireSpeed-Prioritizing EngineersPhase Detection Autofocus versus Contrast Detection Autofocus for embedded camera design
Read on Access Newswire →
[7]AI USB CamHybrid System DevelopersHybrid Auto Focus: Combining the Best of All Worlds
Read on AI USB Cam →
[8]Factlen Editorial TeamSynthesis by Factlen editorial team
Read on Factlen Editorial Team →
More in Shopping & Reviews
See all →Camera Tech
How AI Autofocus and Global Shutters Are Revolutionizing Cameras in 2026
4 sources
Shutter Mechanics
Shutter-Plane Offset in Electronic Front-Curtain Mode Truncates Wide-Aperture Bokeh Discs
5 sources
Memory Card Tech
Advertised 300 MB/s Speeds Measure Burst Read Transfers: Why Mirrorless Cameras Abort Video Recording Without a V90 Write Floor
7 sources
Lens Quality
The MTF Chart's 10 lp/mm and 30 lp/mm Lines: How Lens Contrast and Resolution Dictate Perceived Sharpness
5 sources
Comments
Every angle. Every day.
Get Shopping & Reviews stories with full source coverage and perspective breakdowns, free every day.




