What is hyperfocal distance and when would you use it?

Hyperfocal distance
(Image credit: Digital Camera World)

When you take a photograph, you set the lens to focus on a particular point in the scene that is a specific distance from the camera. How sharp the areas in front of and behind this focusing distance is determined by the aperture value that is set. Large aperture values, like f/2.8 and f/4 will give a shallow zone of sharp focus, and small apertures such as f/16 or f/22 will give a deep zone of sharpness. This zone of sharp focus is called the depth of field, and the hyperfocal distance describes the optimum focus point that will maximise sharpness from the foreground right through to the background.

In practical terms, it’s always used with small apertures, and most photographers like to stay one stop back from their largest f-number. The reason is when a lens is closed right down to its minimum aperture setting, it doesn’t perform as well, and can actually give a less-sharp image. So if your minimum aperture on a lens is f/22, then f/16 is the best choice to use if you want to get a super-sharp photo with a big depth of field.

Hyperfocal lens markings

Lenses like this old-school Laowa 14mm prime lens have depth of field markings next to the focus distance scale, making it quick and simple to set the hyperfocal distance for any lens aperture. (Image credit: Laowa)

On older lenses with a full complement of barrel markings, you can set the hyperfocal distance in manual focus mode very quickly. Assuming you want to focus to infinity, just line up the outer f/16 marker with the infinity mark, and you can read off the closest distance that will be sharply focused with the inner f/16 mark. Even though the scene may look blurred in the viewfinder, the resultant shot will be sharp from the closest distance indicated right through to the infinity.

The snag in this simple and effective technique is that most modern lenses have dispensed with hyperfocal markings, and it's not really possible with zoom lenses at all, so how is it done with a shiny new optic? 

Well, one method is to use a smartphone app that will allow you to input your camera model, focal length and aperture value. With the data in, the result will tell the distance to manually set the focus to achieve maximum sharpness from front to back. But if that sounds like a lot of hassle, there’s an easier way that involves a couple of test shots and a little bit of focusing trial and error.

Modern hyperfocal shooting

There are apps for calculating the hyperfocal distance for zooms and modern lenses, but it's often simpler to use a few simple steps and some trial and error. (Image credit: Future)

The simple route is to use aperture priority mode, and after dialling in f/16 (or one stop back from your minimum aperture), focus about one-third of the way up the frame (or half way to the horizon, whichever is easiest to estimate). This is likely to be the back of your foreground detail on a classic landscape. Lock your focus here and take a test shot. Check the result on screen and zoom in on the detail to see if your horizon is sharp. Now check the immediate foreground (the closest part of the scene you want to be in focus) to see if it is sharp, too. If all is good, you’ve done it! 

Another way to check this on a DSLR is to use LiveView, as you’ll be able to see what is or isn’t sharp at the set aperture in real time, and can zoom in to the screen to check foreground and horizon details.

But if the close foreground is slightly soft, you’ll need to set the focus point a little nearer to the camera and reshoot before checking again. At the other end of the scale, if the horizon is soft, you’ll need to set the focus point a little further away. After a few test shots, you’ll have established the hyperfocal distance for your photo, and can rest easy, knowing that it couldn’t be any sharper! 

If you can’t get both the foreground and the horizon sharp at the same time, then your foreground detail is too close to the lens and you’ll have to either use your minimum aperture value to extend the depth of field (bearing in mind that the overall sharpness may suffer slightly), or you’ll need to recompose with your foreground further away from the camera. 

The only other way to solve such a problem is to use a focus stacking technique, where you take a series of shots at different focusing distances and blend them together in software to achieve a super-massive depth of field!

Read more:

Best cameras for landscapes
Best lenses for landscapes
Best tripods
Best camera backpacks
DCW Dictionary of photography

Jon Adams

Jon started out as a film-maker, working as a cameraman and video editor before becoming a writer/director. He made corporate & broadcast programmes in the UK and Middle East, and also composed music, writing for TV, radio and cinema. Jon worked as a photographer and journalist alongside this, and took his video skills into magazine publishing, where he edited the Digital Photo magazine for over 15 years. He is an expert in photo editing, video making and camera techniques.

Read more
Infographic explaining f/stops in photography
Photography cheat sheet: What are f-stops and how to understand them
The exposure triangle with pictogram examples of the effects aperture, shutter speed and ISO have on photographs
This is how I learned the exposure triangle and how I use it to shoot in manual mode
Portrait of woman with blonde hair and wearing a red jacket in front of a blurred background of red, green and gold bokeh, next to an inset roundel of a finger pointing to the AF-ON button on a Sony camera
I’m a photography expert, and I hated back-button focus at first; here’s why I now LOVE using it …
Mountain valley during sunrise. Natural summer landscape
9 landscape photography tips I think every photographer should know
A red squirrel drinking from a body of water, with an arrow in the middle, pointing right. To the right of the arrow the image is sharp, to the left it's blurry.
I still use the 'outdated' reciprocal rule to beat camera shake in my photos – here's why…
A bird highlighted in front of a shallow depth of field
"This one lens is the perfect choice for my wildlife photography goals"
Latest in Exposure
What is ISO in photography?
Superbike rounds a corner on a racetrack, with an inset roundel showing the exposure compensation dial on a Sony camera
I need to change my camera settings FAST, exposure compensation saves me every time – here's how...
Rear LCD of Nikon Z6 II showing live view with focus peaking activated, in front of a spread of scones and jam
Focus peaking completely changed the way I use my Nikon camera, here’s how
'Tiger dancer' performing Pulikali during India's Onam festival, with spiral of lights behind
Amazing 'tiger dance' photo was shot with pop-up flash and a slow shutter speed
Topplate Leica M-E at 1/500
1/500th is all I need for photography, maybe you do too?
Focus shift shooting
Focus-stack your close-up photos the easy way with Nikon’s Focus Shift Shooting mode
Latest in Features
Black and white image montage, three images showing scenes from the streets of Barcelona
“If you want to photograph a dynamic scene, you have to make do without a tripod”, I just love this cinematic night shoot!
Jacob Watson-Howland's image of a snowdrop in low-light, captured with a slow shutter speed to create a painterly abstract effect
“I didn’t bring a tripod. Big mistake.” Second attempt at low-light plant portrait lands young photographer prestigious award
Fujifilm X-T5 with lens attached
If the Fujifilm X-T6 launches with this one feature, I’m going to be the first in line
Meta AI suggesting comments for Instagram image
Instagram is testing AI that analyzes photos and generates comments… but isn't that the opposite of solving the bot problem?
Kalum Carter
Can you actually tell the difference between images taken on the Fujifilm X100F and GFX 50S II?
Selection of silver Sigma lenses, surrounding the 2025 Sigma logo
The Sigma rebrand has been quietly happening for years – and I think it’s a stroke of genius