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
- 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
The short answer
- 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.
- Modern cameras use Hybrid Autofocus, utilizing PDAF for rapid focal shifts and CDAF for precise fine-tuning.
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]
Contrast Detection Autofocus (CDAF), by comparison, operates as a sharpness checker rather than a distance calculator.
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.
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 →
Comments
More in Shopping & Reviews
See all →Health Data Privacy
FTC Rescinds 2021 Health App Breach Policy: How the 2024 Rule Update Made It Obsolete
5 sources
Harness Biomechanics
Front-Clip vs. Back-Clip Dog Harnesses: How Attachment Points Alter Canine Biomechanics and Pulling Force
6 sources
5G Hardware
Sub-6 GHz vs. mmWave 5G: How Frequency Band Dictates Range, Penetration, and Peak Speed
7 sources
Smartphone Architecture
Comparing the iPhone Duo and iPhone 18 Pro: Screen Real Estate, Thermal Constraints, and the $3,000 Price Tag
7 sources
Every angle. Every day.
Get Shopping & Reviews stories with full source coverage and perspective breakdowns delivered to your inbox.




