How to Fix Camera Autofocus: A Troubleshooting Guide
Why your camera hunts, misses, or locks onto the wrong thing — and the settings and habits that fix it, in the order worth trying them.
Autofocus problems are frustrating precisely because the camera looks like it’s working — it beeps, it locks, it lets you take the shot — and then the photo is soft anyway. The good news is that most autofocus trouble comes from a handful of fixable causes: the wrong AF area mode, the wrong AF drive mode, a scene the camera can’t read, or a habit that’s working against you. This guide walks through them in the order worth checking, so you can diagnose what your camera is actually doing and fix it.
First, confirm it’s actually a focus problem
Before you change a single setting, rule out the impostors. A shot can look “out of focus” when the real culprit is camera shake from a slow shutter speed, or a depth of field so shallow that the eyes are sharp but the nose isn’t. Zoom in on your image and look closely: if a fine edge somewhere in the frame is genuinely crisp but your subject isn’t, that’s a focus placement problem. If nothingis sharp and there’s a directional smear, that’s motion, not focus. Our guide on why your photos are blurrybreaks the four causes apart in detail — it’s worth reading first so you don’t spend an afternoon fixing the wrong thing.
Choose the right AF area mode
The single biggest lever on modern cameras is the AF area mode — how much of the frame the camera is allowed to focus on. Every system names these differently, but they fall into three families:
- Single point— you place one small box exactly where you want focus. Most precise, and the right default for portraits, still life, and anything where you know exactly what should be sharp.
- Zone or group— a cluster of points covering a small area. A good middle ground for subjects that move a little or are hard to keep under a single point.
- Wide or auto area— the camera chooses from the whole frame. Convenient, but it will happily lock onto the nearest high-contrast object, which is often the background or a foreground distraction rather than your subject.
If your camera keeps focusing on the wrong thing, this is usually why. Wide-area mode is the reason so many photos are sharp on a doorframe behind someone’s head. Drop to a single point or small zone, put it on your subject, and most “wrong focus” problems disappear.
Single AF for still subjects, continuous AF for moving ones
Separate from where the camera focuses is how it holds focus. This is the AF drive mode, and getting it wrong quietly ruins shots.
- Single AF(AF-S, or One Shot on Canon) locks focus once when you half-press, then stops. Perfect for anything that stays put — portraits, landscapes, products, a plate of food.
- Continuous AF (AF-C, or AI Servo on Canon) keeps adjusting focus for as long as you hold the button, so it tracks a subject whose distance is changing. Use it for kids, pets, sports, wildlife, and traffic.
The classic mistake is shooting a running dog in single AF: the camera locks on where the dog was, and by the time the shutter fires the dog has moved out of that plane. If your subject moves at all, switch to continuous AF. Many cameras also offer an automatic mode that guesses between the two — it’s convenient, but choosing deliberately is more reliable.
Turn on eye and subject detection
If your camera has eye detectionor subject-tracking autofocus, use it — it’s the feature that has changed keeper rates the most in the last decade. Instead of you chasing a focus point around, the camera recognizes a face, an eye, an animal, or a vehicle and sticks to it as it moves through the frame. For portraits especially, eye AF is the difference between eyes that are tack-sharp and eyes that are “close enough.” Dig into your menus for face, eye, or subject detection and switch it on; on many bodies it works best paired with a wide-area or tracking mode so the camera has room to follow the subject. Reliable, confidence-inspiring detection is one of the things that separates the better bodies in our roundup of the best hybrid cameras for photo and video from older systems that make you do all the work.
Why autofocus fails in low light and on flat subjects
Autofocus works by finding contrast— a difference between light and dark that it can sharpen. When there isn’t enough of it, the camera hunts back and forth and never settles. Two situations cause almost all of this: dim light, and low-contrast subjects like a blank wall, a clear sky, or a solid-colored surface. Here’s how to help the camera:
- Give it an edge.Instead of aiming at a smooth surface, place your focus point on a line, a texture, or the boundary where two tones meet — then recompose if you need to.
- Add light. Even a little more light gives the sensor more contrast to read. Turn on a lamp, open a blind, or move your subject toward a window.
- Use the AF-assist lamp.Many cameras have a small light that fires briefly to help focus in the dark. Make sure it’s enabled — and note that some flashes and lens hoods can block it.
- Focus at the same distance.If you truly can’t lock on your subject, focus on something else the same distance away, then recompose without changing your position.
Try back-button focus
By default, a half-press of the shutter both focuses and prepares the shot, which means the camera wants to refocus every time you press it. Back-button focus separates the two jobs: you assign focusing to a button on the back of the camera, operated by your thumb, and leave the shutter to do nothing but take the photo. The payoff is control. You can focus once and recompose freely without the camera grabbing a new point. You can hold the button to track a moving subject and release it to lock. And you never accidentally refocus at the moment you fire. It feels strange for a day or two, then most people never switch back. Look in your custom-controls menu for a setting that removes AF from the shutter button and assigns it to a rear button such as AF-ON.
When it’s the lens, not the settings
If you’ve dialed in your modes and a particular lens still misses in a consistent way, the hardware may be involved. A lens that reliably lands focus slightly in front of or behindwhere you aimed — the same way, shot after shot — is showing front-focus or back-focus. Test it on a flat target shot at an angle and see where the sharp plane actually falls. Some cameras include AF micro-adjustment to shift that lens’s focus a notch; if not, a service center can calibrate the body and lens together.
More often, though, it’s something simpler. Dirty lens contacts — the metal pins where the lens meets the body — can cause erratic or slow focus; wipe them gently with a clean, dry cloth. A smudged or foggy front elementscatters light and robs the camera of the contrast it needs, so keep the glass clean. And if you have a physical AF/MF switch on the lens or camera, confirm it hasn’t been knocked to manual — it happens more than anyone admits.
The margin-for-error factor
One last thing worth understanding: your aperture decides how much room your focus has to be slightly off. Wide apertures like f/1.8 give beautiful background blur but a paper-thin plane of sharpness, so a tiny focus miss is obvious. Stop down to f/4 or f/5.6 and the sharp zone deepens, forgiving small errors. If you’re fighting to nail focus on a fidgety subject, closing the aperture a stop or two buys you margin. Our camera settings guide explains how aperture, shutter, and ISO trade off if you want the full picture.
The quick checklist
Next time focus fails, run through these in order and you’ll fix the large majority of problems:
- Confirm it’s focus, not shake or shallow depth of field.
- Set a single point or small zone and put it on your subject.
- Match the drive mode — single AF for still, continuous AF for moving.
- Turn on eye or subject detection if your camera has it.
- In low light, find an edge, add light, and enable the AF-assist lamp.
- Try back-button focus for more control over lock and tracking.
- Clean the lens contacts and front element, and check the AF/MF switch.
- Stop down a little to widen your margin for error.
Autofocus rarely fails at random. Work the list, notice which step fixed it, and the next time it’ll take you seconds instead of a lost afternoon.
Frequently asked questions
Why does my camera keep hunting back and forth without locking on?
Hunting almost always means the camera can't find enough contrast to focus on. It's most common in low light or on flat, smooth surfaces like a blank wall or clear sky. Aim your focus point at a hard edge or a line with contrast, add light if you can, and make sure any AF-assist lamp is switched on. If a single focus point struggles, a small zone can give the camera more to work with.
Should I use single or continuous autofocus?
Use single AF (AF-S, or One Shot on Canon) for anything that holds still — portraits, landscapes, products, food. The camera locks focus once and stops. Use continuous AF (AF-C, or AI Servo on Canon) for anything that moves — kids, pets, sports, cars, wildlife — so focus tracks the subject as its distance changes. Picking the wrong one is one of the most common causes of missed shots.
What is back-button focus and is it worth setting up?
Back-button focus moves focusing off the shutter button and onto a rear button pressed with your thumb, so the shutter only takes the photo. It lets you lock focus and recompose without the camera refocusing every time you press the shutter, and it lets you switch between locked and tracking focus with your thumb. It takes a day or two to adjust, but many photographers never go back.
Why does my camera focus on the background instead of my subject?
That usually means the active focus area is too wide, so the camera picks the highest-contrast thing it sees — often the background — instead of your subject. Switch to a single point or small zone and place it directly on your subject. If your camera has eye or subject detection, turn it on so it prioritizes faces and eyes over whatever is behind them.
How do I know if the problem is my lens and not my settings?
If the same lens consistently focuses slightly in front of or behind your subject across many shots and settings, you may have a front-focus or back-focus issue with that lens. Test it on a flat, angled target and check where the sharp plane falls. Some cameras offer AF micro-adjustment to correct it; otherwise a service center can calibrate the lens and body together.
Keep reading
Why Are My Photos Blurry?
Autofocus is one of four causes of soft shots.
Read the guideBest Hybrid Cameras for Photo and Video
Bodies with autofocus you can trust.
See camerasCamera Settings Explained
How aperture affects your margin for focus error.
Read the guideBest Mirrorless Cameras for Beginners
Beginner-friendly autofocus systems.
See picks