Autofocus through glass can fail when a camera locks onto a mark, reflection, or other detail instead of the scene beyond the window. Glass doesn’t always cause trouble, but it gives the camera more than one possible target.
The good news is that focus errors are often fixable before you take the picture. A smaller focus area and a clear subject outside can make a big difference.
Start by looking at what the camera might be seeing.
Why Autofocus Struggles Through Window Glass

Your camera doesn’t know that the mountain outside matters more than the fingerprints in front of it. It evaluates the detail within its active focus area, and a window can put several competing subjects in that area at once.
Marks on the pane can become the subject
Raindrops, scratches, and fingerprints can provide distinct edges close to the lens. If autofocus selects one of them, the window may look sharp while the view beyond it looks soft.
A large automatic focus area makes that choice more likely because it gives the camera more of the frame to consider. This can be useful when you want the rain itself to be sharp, but frustrating when you’re photographing a distant landmark.
Reflections add another layer of detail
A reflected seat, light, or pale shirt can overlap the landscape in the viewfinder. The camera may respond to the reflection, or its contrast may make the exterior detail harder to distinguish.
Low-contrast scenery adds another challenge. Fog, a blank sky, or a distant hillside in flat light may offer little detail for autofocus to use. As Shutterbug’s explanation of autofocus describes, contrast-detection systems assess image contrast while adjusting focus.
The first clue: a crisp fingerprint and a soft mountain. Zooming into the captured frame helps you spot that mistake.
Put the Focus Point on the Scene Outside
A small focus area gives you more control over what the camera evaluates. It won’t remove reflections, but it reduces the chance that a nearby window mark will dominate the focus decision.
Choose a distinct edge
Select single-point autofocus or a small flexible zone. Place it on a recognizable feature at the distance you want sharp, such as the edge of a building or a ridgeline.
Avoid placing the point across a raindrop. If a clear feature sits near one, move the camera or focus point slightly so the mark doesn’t overlap your target.
When the landscape is hazy and your camera keeps moving the lens back and forth, look for a darker edge against a lighter background, or choose a building at roughly the same distance as the feature you want to photograph. The guide to autofocus settings for travel photography covers other situations where narrowing the focus area helps.
Lock focus when the distance stays consistent
For a distant view that remains at roughly the same focus distance, acquire focus once and keep it there. You can use focus lock, switch to manual focus after autofocus has settled, or use back-button focus if your camera is configured for it.
This keeps the camera from refocusing on a reflection each time you take a picture. Remember to focus again when you change to a closer subject, such as a person on a platform or an exhibit behind glass.
Use Manual Focus When Autofocus Keeps Hunting
Manual focus gives you a way to choose the distant detail yourself. It’s especially useful when the scene stays at a similar distance and autofocus repeatedly catches marks on the pane.
Magnify a feature outside
Turn on live view and magnify a building edge or another detailed feature beyond the window. Rotate the focus ring slowly until that feature looks as crisp as possible, then return to the full composition.
Don’t rely on the infinity symbol alone. Some lenses can focus beyond the infinity mark, and the precise position can vary. A visible subject gives you a more reliable target than turning the ring to its limit.
Treat focus peaking as a guide
If your camera offers focus peaking, it can highlight edges that appear sharp. Watch for the colored highlights on the outside subject rather than on scratches or raindrops.
Peaking can also highlight reflections or exaggerate the appearance of sharpness, so magnified live view is useful for a closer look. The guide to using focus peaking through glass explains how to apply it to distant travel scenes.
After setting focus, avoid moving the ring as you adjust your grip. Check the image at magnification if you have time before the view disappears.
Reduce Reflections Before Changing Settings

Reflections can remain visible even when focus is correct. They’re often strongest when the interior behind you is brighter than the view outside, especially after dark.
Block light around the lens
Hold your lens close to the window without pressing a hard lens barrel against it. A dark jacket or cloth around the lens can shield it from room light, provided the location allows it and the fabric stays out of the frame.
On a train, leave a small gap between camera and glass. Contact can pass carriage vibration into your camera. Switch off your flash, and dim a bright phone screen or overhead light where permitted.
Move before reaching for a filter
Shift slightly sideways and watch where the reflection travels. At an observation deck, moving away from the junction between two panes may give you a clearer view through one window.
A circular polarizing filter can reduce some reflections from glass. Canon’s guide to lens filters explains how polarizers affect reflected light.
Rotate the filter while watching the scene. Its effect depends on the angle, and it also reduces the light reaching the camera. In a dim cabin, that loss may require a slower shutter speed or higher ISO. Some window glass can also produce uneven dark areas or colored patterns with a polarizer, so compare the view with and without it.
Choose Shutter Speed for a Moving Train
Correct focus won’t freeze the passing landscape. Nearby trees and buildings move across the frame faster than distant mountains, so they generally need a faster shutter speed.
Start around 1/500 second for nearby scenery and move toward 1/1000 second on faster routes. These are starting points rather than guarantees: the train’s speed, the distance to your subject, and your focal length all affect the result.
Let Auto ISO raise sensitivity when the light falls. A sharp, slightly noisy frame often gives you more to work with than a clean frame blurred by movement.
An account of photographing Switzerland’s Landwasser Viaduct offers a useful example. A frame at 1/160 second looked acceptable on the camera screen, but its stone edges appeared soft on closer inspection; a later frame at 1/1000 second and a higher ISO looked sharper. The back-button focus guide describes that comparison and separates focus distance from motion blur.
For distant scenery, focus once and hold that distance if the view allows. Take a short burst as a gap opens between trackside objects, then inspect a frame when the immediate opportunity has passed. The guide to train window photography has more advice on working around carriage reflections and vibration.
Adapt Your Approach to the Window
Different travel settings call for different compromises. The best focus technique depends on how quickly the subject moves and how much control you have over the light behind you.
Airplane and hotel windows
On a plane, choose a clear area of the window and focus on a defined feature, such as the edge of a wing or a cloud bank. Keep the lens close without pressing it against the pane, and shade it with a dark garment if cabin reflections intrude.
At a hotel window, you may have more time to turn off interior lights and inspect the view. At night, protect important exterior highlights when setting exposure. RAW capture can offer more editing flexibility, but it can’t recover detail that was badly clipped.
Museums and observation decks
For an object behind a display case, put a small focus point on an edge at the object’s distance. If a reflection covers that edge, move slightly and try again.
Don’t press your lens against a case or block other visitors’ views. Keep your microfiber cloth for your own equipment unless staff explicitly permit cleaning the window. Cleaning your lens won’t remove scratches in the glazing.
At a busy observation deck, make your exposure and step aside. You can return when fewer visitors appear in the reflected background.
Diagnose Softness Before Retaking the Photo
Zoom into the captured image and inspect the detail you intended to photograph. The pattern of softness can tell you which adjustment to make.
If a fingerprint or raindrop is sharp but the landscape isn’t, focus probably landed on the window. Move the focus point to a clear exterior edge or focus manually.
If the distant subject has directional streaks, movement may be the issue. Raise the shutter speed, especially when shooting from a train. Stabilization can help with camera shake, but it can’t freeze scenery moving across the frame.
A reflection can also wash over an otherwise sharp subject. In that case, changing focus won’t remove it. Adjust your position or block more interior light instead.
Look at the whole frame, too. A crisp center with smeared edges may point to the window, the lens, or the shooting angle rather than a misplaced focus point. Try another patch of glass and compare the results.
Frequently Asked Questions
Can autofocus work through a window?
Yes. Autofocus can work through clear glass when it can identify suitable detail on the intended subject. A small focus area helps you direct it toward that detail rather than a mark on the pane.
Does a polarizing filter help autofocus?
A polarizer may reduce reflections that obscure the view, but it doesn’t tell the camera which subject to focus on. Its light loss can also make exposure harder in a dim interior. Try blocking cabin light or changing position before adding one.
Should I focus on the window or the view?
Choose the window when a raindrop or scratch is your subject. For a distant landmark, focus on a feature outside at approximately the same distance as the landmark. Then inspect the captured image at magnification.
Make the Next Frame Count
Keep the camera close to the pane, find a clear edge beyond it, and give the focus point a precise target. If the scene stays distant, hold that focus rather than asking the camera to acquire it again for every frame.
Before the train reaches the next bend, place the point on the dark edge of a church tower against the sky.
