You point your phone at a subject, but the image keeps shifting between sharp and blurry. Perhaps the camera focuses on the background instead of the object in front of you, or it refuses to make a very close subject look crisp.

These problems make more sense once you know what autofocus is trying to do. A phone camera does not simply make the whole scene sharp. It has to decide where to focus, adjust its optics for that distance, and determine whether the result is good enough. Low light, low contrast, movement, reflections, and subjects that are too close can all make that job harder.

Understanding those limits helps you tell the difference between normal autofocus behaviour and a camera that may actually have a problem.

Focus is about distance

A camera lens forms an image by directing light onto an image sensor. For a subject at a particular distance to appear sharp, the optical system has to be focused appropriately for that distance.

Phones normally handle this automatically. Autofocus is the system that estimates which part of the scene should be sharp and adjusts focus without requiring you to turn a focusing ring as you might on some larger cameras.

A useful mental model is to imagine the camera choosing a distance rather than choosing a general amount of sharpness. If it focuses on a person’s face two metres away, an object much closer to the lens may look blurred. If it focuses on the nearby object, the distant background may become less sharp.

How much of the scene appears acceptably sharp also depends on factors such as lens design, focus distance, and the camera’s aperture. Phone cameras often have substantial depth of field, especially with wider lenses, but that does not mean everything from the lens to the horizon can always be perfectly focused at once.

The camera first has to decide what you care about

Before adjusting focus, the camera system needs a target.

Modern camera apps can analyse the scene and may give priority to faces, people, objects, or the area you touch on the screen. The exact behaviour varies by phone, camera mode, and software. If the camera’s automatic choice does not match your intention, the result can look like an autofocus failure even though the lens successfully focused somewhere else.

Imagine photographing a flower through a gap in some leaves. The flower is your subject, but the leaves are larger in the frame and closer to the camera. The phone may initially focus on them. The flower then looks soft even though part of the picture is clearly sharp.

Tapping the subject in the preview can usually give the camera a clearer indication of where you want attention. The exact controls and whether focus remains locked afterward vary between camera apps.

This leads to an important troubleshooting question: is nothing sharp, or is the wrong thing sharp? If the background is crisp while your subject is blurry, target selection or subject distance may be the issue rather than a defective camera.

Autofocus needs useful visual information

A camera has an easier time judging focus when the target contains clear detail.

An edge between dark text and a light page gives the system an obvious visual structure to evaluate. A plain wall, a cloudless sky, or another area with little visible texture provides fewer clues. In such scenes, the camera may take longer to settle or move focus back and forth while searching for a convincing result. This repeated searching is often called focus hunting.

Phone autofocus systems do not all work in exactly the same way. Depending on the camera hardware, a device can use information from the image sensor and other sensing methods to help estimate focus. Manufacturers also combine hardware measurements with software scene analysis differently.

The practical lesson does not require knowing which method your phone uses: when the chosen target has little contrast or detail, try focusing on a clear edge or textured area at roughly the same distance.

For example, if a smooth painted object is difficult to focus on, an edge, printed label, or textured part of that same object may provide a better target.

Low light makes focusing harder

Autofocus can become less reliable in a dark room for the same broad reason that low-light photography is difficult: the camera has less useful light to measure.

When less light reaches the sensor, the image used for focusing can contain more noise and less clearly defined detail. A target that is easy to recognise in daylight may become a weak, uncertain pattern in dim conditions. The camera may then need more time to decide where sharp focus lies, or it may fail to settle where you expect.

This is separate from the exposure used for the final photograph. A phone can use night-mode processing to produce a bright final image, yet still face a difficult focusing decision before or during capture.

Adding light can therefore help in two ways: it makes the subject easier for the autofocus system to evaluate and gives the camera more light for the photograph itself. If practical, move the subject into better light or illuminate it before taking the picture.

Every camera has a nearest focusing distance

Moving the phone closer does not let you enlarge a subject indefinitely.

A lens has a limit to how close it can focus. If the subject is inside that minimum focusing distance, the camera cannot make it sharp simply by trying harder. Tapping the subject repeatedly will not change the optical limit.

This commonly appears when photographing small objects, printed details, food, or documents from extremely close range. You move the phone nearer to fill more of the frame, but the image becomes blurry. Move back a little and the camera suddenly finds focus.

Some phones have a dedicated macro capability or can switch to a different camera that focuses closer. Whether that happens automatically, requires a mode, or is available at all depends on the device. Switching cameras can also change perspective, image quality, and low-light performance, so a macro-labelled option is not a universal solution for every close subject.

When a close-up will not focus, the simplest test is to move the phone farther away. If the subject becomes sharp, you were probably asking that camera to focus closer than it can.

Movement can keep changing the correct focus

Autofocus is not necessarily a one-time action. During preview and video, a phone can continue adjusting focus as the scene changes.

If a child runs toward the camera, the correct focus distance is changing. The camera has to detect that change, estimate the new focus, move or adjust the focusing mechanism, and evaluate the result. A fast or unpredictable subject can move again before that process fully catches up.

Camera software may try to track a selected face or object, but tracking behaviour varies by device and mode. Motion also creates a separate problem: even when focus is correct, a moving subject can blur during the exposure. Motion blur and missed focus are not the same thing.

You can often tell them apart by looking at stationary details near the subject. If a stationary object at the same distance is sharp while the moving subject is smeared, motion during the exposure may be the main cause. If the whole distance plane looks soft while something nearer or farther is sharp, focus is a more likely explanation.

Glass and reflections can confuse the target

Photographing through a window adds another possible focus distance: the glass itself.

Dust, water drops, scratches, reflections, or printed markings on the window can give the camera strong nearby detail. The autofocus system may choose that detail instead of the scene beyond it. A similar problem can occur with transparent containers, display cases, or reflective surfaces.

Tapping the distant subject can help, but the camera still needs enough visible detail to evaluate it. Changing your angle may also reduce a strong reflection that competes with the subject.

This is another case where the camera may be focusing correctly on a target you did not intend.

A dirty lens can look like bad focus

Not every soft photograph is an autofocus problem.

Fingerprints, oil, condensation, or dirt on the camera cover glass can scatter light and reduce contrast. The result may look hazy, smeared around bright lights, or generally soft even when the optical focus is correct.

Before changing settings, gently clean the camera cover with a suitable soft, clean cloth. Also check whether a case, lens protector, or accessory is obstructing the camera area or adding unwanted reflections. Accessories and protectors vary, so do not assume one is responsible without testing the camera after removing the suspected obstruction when it is safe and practical to do so.

A useful clue is that focus problems often affect one distance more than another, while contamination on the cover glass can reduce image clarity across much of the scene.

Multiple phone cameras can behave differently

A phone with several rear cameras does not have one lens that simply changes magnification. It may contain separate camera modules with different lenses and sensors.

Those cameras can have different focusing capabilities. One may focus closer than another, perform better in low light, or use a different autofocus arrangement. The phone may also switch between cameras or combine information from them depending on zoom level, lighting, subject distance, and software design.

Because of this, a focus problem that appears at one zoom setting may not appear at another. That does not automatically mean one camera is damaged. You may have moved into a different camera’s operating range or into conditions where the phone chooses a different capture strategy.

Exact switching behaviour is manufacturer- and model-dependent, so it is more useful to observe what happens than to assume a particular zoom button always maps to one physical camera.

A practical way to troubleshoot focus

When the camera will not focus where you want, change one condition at a time.

First, make sure the camera cover is clean and unobstructed. Then tap a clearly detailed part of the intended subject. If the subject is very close, move the phone back and try again. If the scene is dark, add light or move somewhere brighter. For a moving subject, try a moment when it is more stationary so you can separate autofocus difficulty from motion blur.

Also compare distances. Try a detailed object nearby and then a detailed object farther away. If the camera can focus normally at some distances but not at an extreme close range, that can be normal optical behaviour. If one camera consistently cannot produce a sharp image at any reasonable distance in good light while other cameras can, restarting the camera app or device is a reasonable software check; persistent problems may justify device-specific support or inspection.

Avoid judging focus from digital zoom alone. Enlarging a preview or crop also enlarges normal image softness, noise, and processing artifacts, which can make a correctly focused image look worse than it does at ordinary viewing size.

Focus problems are usually easier to solve once you identify the cause

Phone autofocus has two jobs that are easy to confuse: deciding what should be sharp and adjusting for how far away that subject is. Difficult scenes can interfere with either job.

Low light and low-detail surfaces give the camera weaker information. Very close subjects can exceed the lens’s focusing range. Movement keeps changing the required distance. Glass and reflections can offer the camera a more obvious target than the one you intended. Dirt on the camera cover can make a focused image look soft.

The most useful response is therefore not to tap the screen repeatedly without changing anything. Check what is actually sharp, give the camera a detailed target, improve the light, move back from very close subjects, and rule out a dirty or obstructed lens. Those simple tests turn an apparently unpredictable camera problem into a much clearer question about target, distance, light, or motion.