Phase Detection vs Contrast Detection: Autofocus Explained
Short answer: Phase detection autofocus measures the direction and distance of focus error in one step, which is why it locks onto moving subjects faster than contrast detection. Contrast detection hunts for the point of maximum contrast on the sensor, making it accurate but slower. Most modern mirrorless cameras combine both: phase detection pixels on the sensor speed up initial focus, contrast detection fine-tunes it. For action, sports, or wildlife, a camera with strong phase detection coverage is the better fit. For still life, landscape, or macro work, contrast detection alone can deliver excellent precision.
How phase detection autofocus works
Phase detection autofocus works by splitting incoming light into two separate images. The camera compares these two images and measures the distance between them. When the two images align perfectly, focus is achieved. If they are out of alignment, the camera can tell not only that focus is off, but also in which direction and by how much. This means the lens can be driven directly to the correct focus position in a single, decisive movement.
In a DSLR, phase detection modules are separate from the image sensor and receive light through the camera's reflex mirror. In a mirrorless camera, phase detection is implemented with masked pixels built into the sensor itself. These pixels are dedicated to autofocus and do not contribute to the final image. Because phase detection calculates focus error in one step, it does not need to move the lens back and forth searching for the best focus. That is why it is well-suited to continuous autofocus on moving subjects: the camera can keep updating the focus position as the subject moves, without the lag of a hunt-and-confirm cycle.
The quality of a phase detection system depends heavily on the number and arrangement of the focus points, which is covered in detail in our separate explanation of autofocus points and coverage. More phase detection points spread across the frame give the camera more opportunities to lock onto a subject that is not in the center of the image.
How contrast detection autofocus works
Contrast detection autofocus uses the image sensor itself to judge focus. It analyzes the contrast of adjacent pixels in a selected region of the frame. A sharp, properly focused image has high contrast at edges; a blurry image has low contrast. The camera moves the lens through a series of positions, measuring contrast at each step, and settles on the position where contrast peaks.
This method is inherently iterative. The camera must try a focus position, measure the result, and then decide where to move next. For a static subject, this is no problem: the camera can take its time and resolve to a very precise point, often more accurate than a phase detection module. For a moving subject, the process is a disadvantage. By the time the camera has found the peak contrast point, the subject may have moved, starting the process all over again.
That said, the gap between the two methods has narrowed as sensor technology has improved. Many cameras now read contrast information at very high speed, and firmware algorithms can predict subject movement between readings. But the fundamental difference remains: contrast detection is an optimization process that takes multiple steps, while phase detection is a single-step measurement.
Hybrid systems in modern cameras
Almost every interchangeable-lens camera sold today uses a hybrid autofocus system that combines both technologies. The phase detection pixels on the sensor deliver the initial fast focus acquisition and continuous tracking, and the contrast detection information is used to fine-tune accuracy, especially with very bright lenses where depth of field is thin.
The exact balance between phase and contrast performance depends on the manufacturer's implementation. Some systems prioritize raw speed, others prioritize precision. If you shoot video, the way the system behaves while continuously focusing is also important: some hunting or breathing in the focus can be visible in the footage. The manufacturers listed below all offer detailed technical documents on their respective hybrid systems.
When you compare cameras, pay attention to how the system behaves rather than just the number of focus points. A camera with fewer points but well-placed and well-implemented phase detection may track a subject more reliably than one with a larger advertised count but weaker algorithm behavior.
Which system do you need for your shooting?
For sports, wildlife, kids or any moving subject, you want a camera with a dense phase detection array on the sensor. It does not guarantee success, but it puts the odds in your favor by giving the camera the information it needs to compute focus quickly and repeatedly.
For landscape, architecture, still life and macro, contrast detection accuracy benefits you directly. A subject that holds still rewards a camera that takes an extra moment to resolve focus with maximum precision. Hybrid systems on modern cameras give you both, but you should check how easy it is to switch between continuous and single autofocus modes, and how the camera behaves in low light, which we cover in ISO sensitivity.
For video, take a close look at how the system handles subject tracking during recording. Focus peaking and magnification are valuable manual focus aids, but if you rely on autofocus while recording, the smoothness of the continuous tracking and the number of phase detection points across the frame matter considerably.
Hardware is only half of the equation: the processing power of the camera's image processor and the lens's focus motor also determine real-world speed and accuracy. A camera can have an excellent phase detection module, but a slow lens focus motor will negate the advantage.
Autofocus terminology, briefly
These terms appear in most camera spec sheets and reviews. They are worth knowing when you compare models, and you can dig deeper in our camera glossary index.
Continuous autofocus (AF-C on Nikon, AI Servo on Canon, AF-F on some mirrorless cameras): the camera keeps updating focus as the subject moves or as the camera or photographer moves.
Single autofocus (AF-S on Nikon, One Shot on Canon): the camera locks focus once and stops adjusting until you press the shutter again.
Autofocus point: a specific location in the frame where the camera can measure focus. Points can be phase detection, contrast detection, or both.
Subject tracking: the camera's ability to identify a subject (a face, an eye, an animal, a vehicle) and keep the active focus point on it as it moves around the frame.
Autofocus sensitivity: the lowest light level at which the camera's autofocus system can still function. A camera may be rated to autofocus at a certain light level, and the spec varies between models.
For more on how focus points interact with the frame you are composing, see autofocus points and coverage.
- AF-S / One Shot: locks focus once, good for still subjects.
- AF-C / AI Servo: continuously adjusts, essential for moving subjects.
- AE/AF lock: lets you hold focus and exposure settings independently.
- Back-button autofocus: assigns autofocus activation to a button on the back, separating it from the shutter release.
A practical comparison: phase vs. contrast
Speed: Phase detection is generally faster because it measures focus error directly. Contrast detection needs multiple attempts.
Accuracy: Contrast detection can be extremely precise with static subjects, because it optimizes directly on the image data. Phase detection calibration can drift slightly in a DSLR when the mirror or focusing screen is out of alignment.
Tracking moving subjects: Phase detection wins, especially for subjects moving toward or away from the camera, or across the frame. This matters in 4K video too, where continuous autofocus must keep up with the action.
Low light: Phase detection needs enough light to create a measurable parallax between its two images. Contrast detection can work with any light that produces a signal on the sensor, but gets slower in dim conditions. Modern hybrid systems combine both to handle dim scenes better.
Size and cost: A dedicated phase detection module in a DSLR adds size and mechanical complexity. Contrast detection uses no extra hardware. In mirrorless cameras, phase detection pixels occupy some sensor area, which slightly reduces the light collecting area of the sensor, but the tradeoff is considered acceptable nowadays.
What to pick for your use
| If you | Pick | Buying guide |
|---|---|---|
| You photograph sports, wildlife, or kids in action | A camera with dense phase detection coverage on the sensor | Best Mirrorless Cameras in 2026: 15 Picks Compared on Specs |
| You shoot mostly landscapes or still subjects on a tripod | A camera with precise single autofocus, phase or contrast, and a good tripod mount | Best Full-Frame Cameras in 2026: 15 Picks Compared on Specs |
| You record video of moving people or products | A camera with strong continuous autofocus and many phase detection points | Best 4K Cameras in 2026: 15 Picks Compared on Specs |
| You want a compact, lightweight camera with reliable autofocus for everyday use | A camera with hybrid autofocus, which is standard in most recent mirrorless models | Best Compact Cameras in 2026: 12 Picks Compared on Specs |
Questions
Is phase detection always better than contrast detection?
Not in every situation. Phase detection is usually faster and better at tracking moving subjects, but contrast detection can be more accurate with a completely still subject, because it optimizes directly on image contrast. Modern cameras combine both.
Does my camera need phase detection for video autofocus?
For continuous autofocus while recording video, phase detection is a substantial advantage. It allows the camera to respond quickly to subject movement, which is important for anything moving on screen. Contrast detection alone tends to hunt more visibly in video.
How many autofocus points do I need?
More points generally help track subjects that move around the frame, especially in continuous autofocus. But the arrangement and the quality of the points matter more than the raw count. A dense central cluster of phase detection points works better than a scattered pattern.
Can a DSLR with phase detection match a mirrorless camera for sports?
A DSLR phase detection module can be very fast and accurate, and some sports photographers still prefer the optical viewfinder and dedicated phase detection of a DSLR. But mirrorless cameras use phase detection on the sensor itself, with a much larger coverage area, and continuous autofocus in the live view image. The best choice depends on the specific camera and your habit of shooting through an optical or electronic viewfinder.
Does autofocus work in low light?
Both systems need some light to function. Phase detection uses a small amount of light to split and compare images, so it becomes unreliable in very dim scenes. Contrast detection works with any signal the sensor produces, but it is slower. Many cameras have a focus assist lamp or a programmable button to boost autofocus sensitivity temporarily.
Where can I find the official autofocus specifications for a camera?
The camera maker's website is the primary source. For example, Nikon publishes product pages for its Z series mirrorless cameras, and Canon publishes technology pages. The CIPA website also maintains a list of participating companies, but the individual maker's page is the best place to lookup the number and type of autofocus points.
Change log
- : First published.