Focus about one-third into the scene at f/8 to f/11 to keep both the foreground and the horizon sharp, and switch to manual focus so the camera doesn't refocus before the shot. Zoom in on a test frame to check. When a close foreground and a distant horizon can't both be sharp, use focus stacking.
You've composed the perfect landscape, with an interesting foreground, a compelling middle ground, and a dramatic background. You press the shutter. Back at your computer, you find that the foreground is sharp but the mountains are soft, or the mountains are sharp but your foreground rock is blurry.
Getting everything in focus from front to back is one of landscape photography's core challenges. It's completely solvable once you understand how focus and depth of field actually work.
This guide explains the principles in practical, non-mathematical terms and gives you techniques you can use right away. It's one of the most technical topics in the landscape guide, but the approach here keeps it simple.
The Landscape Focus Problem
In a typical landscape, you want sharpness from a rock 3 feet away all the way to mountains on the horizon. That's an enormous range for one focus distance to cover.
Focus on the rock and the mountains go soft. Focus on the mountains and the rock goes soft. The fix is to focus somewhere in between, at a distance that stretches depth of field over both.
That distance is the hyperfocal distance. When you focus there, everything from about half that distance to infinity looks sharp. Smaller apertures and wider lenses bring it closer, which is why landscape photographers reach for f/8 to f/11 and a wide angle.
The guide to getting subject and background in focus explains how aperture, focal length, and distance each change depth of field, with workflows for portraits and interiors too. The depth of field calculator gives you the exact hyperfocal distance for your lens. The methods below are the field techniques for landscapes.
Practical Methods for Sharp Landscapes
You don't need to memorize charts or do calculations in the field. These practical approaches work.
Method 1. The One-Third Rule
This is the simplest approach, and it works for most situations.
How it works. Focus about one-third of the way into your scene, measuring from the camera to the farthest subject.
Why it works. Depth of field extends roughly twice as far behind the focus point as in front of it. Focusing one-third of the way in puts the focus point where depth of field can reach both the foreground (one-third of the distance in front) and the background (two-thirds of the distance behind).
In practice. If the farthest thing you need sharp is a treeline about 60 feet away, focus about one-third of the way in, roughly 20 feet from the camera.
Its limits. This is an approximation. For critical work or tricky compositions (very close foregrounds), more precise methods help.
Method 2. The Double Distance Approach
This is a slight refinement of the one-third rule, made specifically for landscapes with a background at infinity.
How it works. Find your closest important foreground element and focus at double that distance.
Example. Your foreground rock is 4 feet away, so you focus at 8 feet. With an appropriate aperture, you'll have sharpness from about 4 feet to infinity.
Why it works. It approximates hyperfocal behavior without exact calculations.
Its limits. You still need an appropriate aperture. If you're using f/4 with a telephoto lens, this method won't give you front-to-back sharpness wherever you focus.
Method 3. Use a Hyperfocal Chart or App
For precise work, hyperfocal distance charts give exact values for your specific camera, lens, and aperture, and you can print one for your own lenses.
How to use one. Look up your focal length and aperture, and the chart gives you the hyperfocal distance to focus at.
Smartphone apps calculate hyperfocal distance instantly. Enter your camera's sensor size, focal length, and aperture, and you'll get the hyperfocal distance plus the near and far limits of sharpness. Popular apps include PhotoPills, DOF Calculator, and HyperFocal Pro.
The depth of field calculator finds the hyperfocal distance for your specific camera, lens, and aperture before you head out.
The advantage. You get precision when you need it.
Its limits. You have to stop and check a chart or app, which makes it impractical when things are moving fast.
Method 4. The Live View Test
Modern cameras let you check focus before you shoot.
- Compose your shot.
- Focus on your foreground element.
- Switch to live view and magnify the background.
- If the background isn't acceptably sharp, focus slightly farther.
- Check foreground sharpness at the new focus distance.
- Repeat until both foreground and background look sharp.
Why it works. You're confirming depth of field with your own eyes instead of calculating it.
Its limits. It takes time, which is hard when the light is fading quickly, and fine detail can be hard to see on the camera's LCD.
Method 5. Focus Stacking (For Maximum Sharpness)
When no single focus point gives you front-to-back sharpness, focus stacking combines several exposures.
- Keep the camera perfectly still (a tripod is essential).
- Take one exposure focused on the foreground.
- Take another focused on the middle ground.
- Take another focused on the background.
- Blend the sharp parts of each image in post-processing.
Software options include Photoshop, Helicon Focus, and Zerene Stacker.
Focus stacking makes sense in situations like these.
- Very close foreground elements
- Maximum quality requirements
- Situations where depth of field is physically insufficient
Its limits. It takes post-processing skill and still subjects. Any movement between frames (grass blowing, water moving) causes problems.
Setting Up for Maximum Depth of Field
Beyond focus placement, these settings and choices help you get the most depth of field.
Aperture Selection
| Aperture | What you get |
|---|---|
| f/8 to f/11 | Usually the sweet spot, with excellent sharpness and plenty of depth of field |
| f/13 to f/16 | More depth of field, with slight softening from diffraction |
| f/22 and smaller | Maximum depth of field, but diffraction noticeably softens the whole image, so use it only when you must |
The landscape settings guide explains why the f/8 to f/11 range works best.
Smaller apertures give you more depth of field but reduce overall sharpness. Find the balance point for your situation.
Focal Length Choice
Wide-angle lenses (16-35mm on full frame) give the deepest depth of field at any given aperture. They're the natural choice when front-to-back sharpness matters most. If you're shooting on a crop sensor, those same focal lengths give you a narrower field of view, which you can work out with the crop factor tool.
Standard lenses (35-70mm) offer moderate depth of field, which is enough for most landscapes without extreme foreground elements.
Telephoto lenses (70mm+) have inherently shallow depth of field, which makes front-to-back sharpness hard. You may need focus stacking for telephoto landscapes with close elements.
Focus Mode
Single-shot autofocus (AF-S/One-Shot) is the one to use. It locks focus when you half-press the shutter, so nothing changes unexpectedly.
Manual focus gives you maximum control for critical work. Use live view magnification to check exactly where the focus lands.
Avoid continuous autofocus modes for landscapes. They're designed for moving subjects and may shift focus at the wrong moment.
Focus Point Selection
Use a single autofocus point and place it deliberately. Don't let the camera choose, because it might pick the wrong subject.
For hyperfocal focusing, you may need to follow these steps.
- Point the camera at the focus distance you want.
- Half-press to focus.
- Recompose while holding focus (back-button focus helps here).
- Take the shot.
You can also use manual focus and place the focus point exactly where you need it.
Troubleshooting Common Focus Problems
Background Soft Despite Small Aperture
Likely cause. Your focus point is too close. Even at f/16, focusing on a foreground element 2 feet away may not render infinity sharp.
Solution. Focus farther into the scene, using the double-distance method or a hyperfocal chart.
Foreground Soft, Background Sharp
Likely cause. You focused too far away, probably on the distant subject or at infinity.
Solution. Focus closer. At the hyperfocal distance, infinity stays sharp while the foreground comes into the depth of field zone.
Overall Softness
Several things can cause it.
- Diffraction from a very small aperture (f/22+)
- Camera shake from a slow shutter without a tripod
- Poor lens quality or a dirty lens
- Focus missed entirely
Try these fixes.
- Open the aperture to f/11 and reassess
- Use a tripod for slow shutter speeds
- Clean the lens and check it for damage
- Verify focus using live view magnification
Can't Achieve Both Sharp Foreground and Background
Likely cause. The foreground is too close, or the aperture is too wide, for depth of field to span the range you need.
You have four options.
- Use a smaller aperture (accepting some diffraction softening)
- Use a wider focal length (more depth of field)
- Move back from the foreground element
- Focus stack several exposures
A Practical Workflow
Here's how to put all of this to work in the field.
Step 1. Compose Your Image
Decide on your foreground and background elements before you worry about focus.
Step 2. Estimate the Challenge
Work out how close your nearest element is and how far your farthest one is. That tells you whether this is a standard landscape (foreground at 5+ feet) or a challenging composition (foreground at 1-3 feet).
Step 3. Choose Your Approach
For standard compositions, use the double-distance method with f/8 to f/11.
For challenging compositions, use a hyperfocal app for precision, or plan to focus stack.
Step 4. Set Focus
Using your chosen method, focus at the calculated or estimated point.
Step 5. Verify
Use live view magnification to check both foreground and background sharpness before you shoot.
Step 6. Shoot and Review
After shooting, zoom in on the camera's LCD to check sharpness, looking at both near and far elements.
Step 7. Adjust If Needed
If the sharpness isn't good enough, adjust the focus distance, the aperture, or both, and shoot again.
When Perfect Sharpness Isn't Necessary
Not every landscape needs razor sharpness from front to back.
- Intentionally soft backgrounds can direct attention to foreground subjects.
- Atmospheric conditions (fog, haze) may soften distant elements naturally, wherever you focus.
- Artistic choices might emphasize one plane over the others.
- Viewing size affects how critical sharpness is, since web images are more forgiving than large prints.
Learn these techniques so you can get total sharpness when you want it, but don't feel you have to chase it blindly in every image.
Key Takeaways
- Focus one-third into your scene, between the foreground and infinity, to maximize depth of field from near to far.
- Use f/8 to f/11 for the best balance of depth of field and lens sharpness, avoiding f/16+ where diffraction reduces overall quality.
- Switch to manual focus for landscapes so your camera doesn't refocus between composition and shutter press.
- Use focus stacking (multiple shots at different focus distances blended in software) when close foreground elements and distant backgrounds exceed single-shot depth of field.













