Skip to main content
ExplainerCamera TechExplainer· 4 min read· in Shopping & Reviews

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 40%Accuracy-Focused Technicians 30%Hybrid System Developers 30%
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]

Phase detection calculates distance instantly, while contrast detection evaluates sharpness through trial and error.

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]

PDAF maintains a significant speed advantage over CDAF in well-lit environments.

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]

On-sensor autofocus allows mirrorless cameras to track subjects across the entire frame.

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

Source coverage

8 outlets

3 viewpoints surfaced

Speed-Prioritizing Engineers 40%Accuracy-Focused Technicians 30%Hybrid System Developers 30%
  1. [1]FstoppersHybrid System Developers

    Phase Detection Versus Contrast Detection Autofocus

    Read on Fstoppers
  2. [2]Vadzo ImagingSpeed-Prioritizing Engineers

    PDAF vs CDAF: Key Differences in an Embedded Camera

    Read on Vadzo Imaging
  3. [3]TelycamAccuracy-Focused Technicians

    Phase Detection vs Contrast Detection Autofocus

    Read on Telycam
  4. [4]NikonHybrid System Developers

    Autofocus Reinvented: The On-Sensor Advantage

    Read on Nikon
  5. [5]JM PeltierHybrid System Developers

    Contrast vs Phase Detection & Hybrid Autofocus

    Read on JM Peltier
  6. [6]Access NewswireSpeed-Prioritizing Engineers

    Phase Detection Autofocus versus Contrast Detection Autofocus for embedded camera design

    Read on Access Newswire
  7. [7]AI USB CamHybrid System Developers

    Hybrid Auto Focus: Combining the Best of All Worlds

    Read on AI USB Cam
  8. [8]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team

Comments

Stay informed

Every angle. Every day.

Get Shopping & Reviews stories with full source coverage and perspective breakdowns delivered to your inbox.