Contact us: +44 116 291 9092
 

When Hyperfocal focusing is no good

  |   Article, Articles and reviews, Lens, Personal views, Photography Ideas, Rumour lens article, tutorials   |   19 Comments

Hyperfocal focusing

Is there a simpler and better approach?



Over the years I’ve seen numerous guides and rules of thumb for different aspects of photography.

One that I remember from my earliest photography books, is the idea of maximising depth of field by setting your lens to a magic ‘hyperfocal distance’. Indeed older lenses, such as the one to the right, had all kinds of lines and numbers on them to aid focusing.

lens dof lines

Now, with digital SLRs, autofocus and high resolution sensors, you might wonder how things have changed?

Well, now you can get an app for your phone that will work out the appropriate distance setting…

…but, as I often ask of people on our courses, have you actually looked at how sharp your photos are when you trust to the magic numbers?

Remember to treat everything you read about the ‘best’ ways to do something in photography with due scepticism. Try things for yourself and let experiment triumph over dogma…

I’ll start with a brief overview.

Hyperfocal focusing – some background

First up, I know that almost any maths frightens off a lot of photographers, so I’m going to avoid too many numbers, wherever possible. I’ll include more detailed references for those wanting to follow up on the equations.

If you want to test what I’m saying, just take your camera outside, set it up on a tripod, follow some simple procedures for focusing and take some photos.

Then, after looking at the results, decide what you think is relevant, when you might want to use hyperfocal techniques and when not to.

Anyway, what is hyperfocal focusing, and why do so many people suggest its use?

When you focus your camera lens on an object, what’s behind the object and what’s in front of it are not focused so clearly. The depth of this zone of sharpness (front to back) is thicker for a small aperture (say f/11) than a wide aperture (say f/2.8). The precise thickness of this zone depends on what -you- decide is acceptably sharp. It’s also known as ‘depth of field’ or DOF

Lenses used to have ‘Depth of field lines’ inscribed on them to give an idea of how much DOF you got with each aperture setting. The four below are from my ‘junk box’ collection at 55mm, 70-150mm, 300mm and 500mm

depth of field markings on four lenses

It turns out that there are ways of calculating the thickness of this zone, but these depend on all kinds of factors and assumptions, such as how big a print you want to make, how good we think peoples’ eyes are at resolving detail and not just the more concrete numbers such as lens aperture setting, focal length and size of the camera sensor (or film) you are using.

The key idea is that there is an ‘optimal’ or hyperfocal distance (HFD) that for any lens/sensor and setting your focus to it will give you the thickest zone of sharpness that includes ‘infinity’.

Ah yes, infinity…

If you set your lens at infinity, then there is no concept of ‘further’ or ‘behind’ (further than infinity is still infinity)

You can think of just a ‘near point’ in this case, where focus becomes sharp enough for your needs, as you recede from a camera with the lens set at infinity. Everything beyond this near point is ‘sharp enough’.

Note that there are actually two definitions of Hyperfocal distance – very similar in practice. If you want to look at the history of this idea, the description on WP is quite comprehensive (moderate maths warning ;-).

Hyperfocal focusing assumes that if you focus at infinity, then you are in some way wasting some of that rear sharp zone, so focusing closer lets you use up some of it, and gain a closer ‘sharp enough’ point. You are trying to maximise depth of field and still include infinity.

In real life, there are no infinitely distant objects, so we equate ‘far away’ with infinity – just how far this is depends on your focal length (and sensor size too, but I’m going to keep this simple and just stick to FF/35mm/’FX’ for my experiments)

out of focus backgroundThere are all kinds of calculators, charts and even phone apps that will crunch the numbers and give you a hyperfocal distance setting.

One example I used during my testing was this one at Nikonians. You enter a few numbers and the magic distance pops up.

What concerns me is the arbitrary precision that many of these calculators provide.

When you get an HFD value of 32.45 feet or 9.89 metres, it’s all too easy for people to assume that we’re talking of something that is accurate to the centimetre.

I see this approach all over the place, in printer and lens reviews, where there is often the unstated view that more precise numbers equate with greater authority/relevance for the data.

It’s this spurious numerical precision that can easily lull people into accepting what might be a helpful general technique as more of a law, written in stone. (WP article about False Precision)

Now, I know that there are photographers far happier in dealing with numbers, specifications and charts than exploring the personal/artistic/creative (i.e. vague and ill-defined) aspects of photography.

Even so, I’d still suggest that if you are going to use a technique such as hyperfocal focusing, then you should at least do a few experiments and realise the importance of the concept of ‘acceptable sharpness’.

It’s this term, that appears at the heart of all the definitions and equations that exposes the essentially subjective nature behind all those very precise numbers.

With ubiquitous presence of autofocus (AF), the detailed lens depth of field settings you used to get inscribed on the lens barrel are increasingly rare, so it actually becomes quite tricky to set a hyperfocal distance manually for many lenses. If you want to experiment with a particular HFD table or calculator, find something in your scene at the HFD and focus on that.

I should note that some people just assume that you should focus a third of the way into your scene, and that will give a suitable depth of field – this is almost always wrong, and invariably gives inferior results to using hyperfocal focusing. A while ago however, I found a different simple approach that fits very well with my own style of landscape work.

An alternative to HFD

First up I want to acknowledge my debt to the writings of Harold M. Merklinger of Halifax, Nova Scotia, Canada.

His books concerned with focusing view cameras have inspired my further experimentation with tilt/shift lenses on my dSLR and article on ‘how to focus with tilt‘. One problem (for some) is that he doesn’t shy away from including calculations and deriving equations for his various findings. I believe that this has unfortunately contributed to the lack of wider appreciation for some of his observations and suggestions.

In an elegantly simple demonstration (Depth of Field Revisited) he shows that:

By focusing your lens at infinity, the smallest object resolved in your image will effectively have the same width as the focal length divided by the aperture of your lens.

As ever, the details are a bit more complex than this, so do read the article and also see the links at the end of this one if you want more info about just why this works.

So, for a 90mm lens at f/10, this size is 90mm divided by 10, or 9mm.
For a 24mm lens at f/11 this is only 2.2mm (24 ÷ 11) or less than a tenth of an inch.

What do these numbers mean?

If I’m using a 24mm lens at f/11, focused at infinity, then 1 metre from the lens, I can resolve detail of a few millimetres, just as at 100 metres away I can resolve a few millimetres. Note that this doesn’t mean I can’t see things less than this size, just that they won’t be sharp.

Of course, with a real lens and camera, there is no way that I can really get a few millimetres resolution at 100 metres, but it does mean that I can get maximal sharpness for distant mountains, and still resolve blades of grass pretty close to the camera.

But – couldn’t I get even better sharpness of that nearby grass by using hyperfocal focusing?

Yes I could, but the distant mountains would lose detail.

In my large landscape prints I want lots of texture and sharpness in the background. If I’ve something in the foreground, then I generally don’t mind it not being quite so sharp.

Anyway, time to look at some examples (and please do try this for yourself!)

Some real life testing

Do remember that these are 21MP images reduced to web size, and the detail views are 100% crops with no more than default sharpening (RAW files processed in Adobe camera raw). More importantly, you’re seeing JPEG files in a web browser, so don’t get too picky over precise details (trying it yourself is always best).

The first set is taken with a Canon TS-E 24mm lens (no tilt or shift) at f/11. This is the street outside my house.

At f/11 the focal length divided by the aperture is 24/11, or just over 2mm

With all these images, move your mouse over the image to see a version with the focus set at infinity.

You’ll notice that the angle of view changes slightly too. Lens field of view changes when you alter focus.

HFD was given as 6.76 feet in the Nikonian calculator – I didn’t get my tape measure out.

hyperfocal distance calculator output

With this calculator, you have to enter an initial value, even if you just want the HFD

A cropped detail (100%) from the image above, looking down the road

A closer object.

At 24mm, I’m seeing some noticeable softness in the distance, using HFD setting. Before you think it’s too much, remember that this is a 100% crop from a 21 megapixel image.

What about a longer lens?

90mm

This time I’m using a Canon TS-E 90mm lens – another one that I know is very sharp.

At f/8 the focal length divided by the aperture is 90/8 or just over 11mm.

The calculator gives an HFD of 133.1 feet (there’s that spurious precision again)

Detail from the far distance (look at the signage for differences).

Closer detail.

What do you think? Is this sharpness/softness that you’re bothered about?

I should note that although the street is several hundred feet long, the slight softening of the far end shops, when not focused at infinity, might be more pronounced if it was further away. The far end of the street is a good stand in for distant mountains at 24mm, but not quite so much at 90mm.

So, what do I use?

When I first tried setting hyperfocal distances on lenses for my Canon 1Ds, I realised just how little use the distance scales are on many modern lenses.

It’s difficult to manually set a HFD focus point with the scales on modern short focus lenses – whilst with longer lenses you are needing to focus some distance away. This is not only difficult to estimate, but also difficult to set on most distance scales.

Below is an old 500/8 long focus lens from the junk box. Look how small the DOF is, and imagine trying to set the calculated HFD of 2051.3 feet at f/16. I’d hope this would strike the user of any such calculator as daft, but at shorter focal lengths, the accuracy may not seem so out of place.

depth of field scale on 500mm lens

What follows is what I usually do for my landscape/outdoor photography.

I take the general approach of focusing on the most distant object I want sharp in the image and stopping down enough to get sharp enough detail throughout the image. By all means use AF to focus, but I usually then switch it off for a lot of my shots.

At 24mm, f/8-11 will do nicely, whilst at 90mm I’d be more likely to go a bit higher if I need the depth of field.

I’m likely to be taking quite different types of shot at 24mm and 90mm and I’d question the value of hyperfocal focusing for any lens much above 50-60mm.

Important caveats to this are:

  • If I want an object/person in the foreground to be the sharpest, then that is what I’ll focus on. This is where I may well open up the lens to reduce depth of field even more and make it a feature of the image I’m trying to create. The important thing is to think about where sharpness is important in your final image. If you’re doing a landscape with some very powerful foreground material that takes up a lot of the frame, then make it sharp.
  • I like sharp backgrounds – you may not – experiment!
  • In general, I don’t want to go much above f/16 lest the effects of diffraction start to soften the image.
  • If I’m using a longer lens, then I’m even more careful to get important things sharp, since limits to depth of field are often more noticeable at longer focal lengths

About that second point… You may see discussions of ‘diffraction limiting’ concerning lenses and digital sensors.

This is (IMHO) rarely of as much importance as the people that raise it would like you to believe. If I have the choice between f/5.6 and absolute best lens/diffraction sharpness and performance -or- f/16 and getting adequate depth of field for what I want to photograph, but a bit less peak sharpness, then f/16 gets it.

Once again – if you’ve worried about diffraction limits and how they are limiting your photography, then go outside and try a few test shots. See for yourself if it really matters. You may discover that an awful lot of ‘expert’ statements on forums, wilt rapidly under even moderate analysis and experiment.

Don’t automatically assume that just because someone has made 3000+ posts to a forum, that they actually know what they are talking about – maybe they just like saying it ;-)

BTW, you may notice I’ve only got examples here taken with a ‘full frame’ camera – not with a crop sensor one. If you were wondering how it applied to your camera, then I’ve one reply – go outside and see for yourself ;-)

A hint – If you’re using the non HFD approach, then the resolution is purely dependent on aperture and focal length. With smaller sensors you use shorter focal lengths for the same angle of view, so for the same aperture, the effective minimum resolution is better.

Details and some other experiments

Two books (PDF available) from Harold M. Merklinger (moderate maths warning)

One of the great things about digital photography is that you can just go out and try things – you had to be really keen to shoot a whole roll of film, of a brick wall, to test lens sharpness. With digital, you just do it and a few minutes later you can see what matters. Here are some of my more experimental articles.

Other areas of our site that may be of interest...

All the latest articles and photo news items appear on Keith's Photo blog .

We've a whole section of the site devoted to  Digital Black and White photography and printing. It covers all the specialist articles and reviews written by Keith Cooper.

There is a gallery of landscape photography and fine art prints.

 


Buying anything from Amazon (not just what's listed) via any of the links below helps Keith and Karen keep the site going - thanks if you do!




 
  • Duncan Dunnit

    Hello, thank you for your website full of great information. A quick question, if I can please. what is the best auto-focus field for shooting panorama, normally I hold the camera as far as my head point at the ground and press autofocus, but now its got to the stage to try understand as to which would be the best auto focus field to set to do this. I normally shoot at 8mm, I shoot hdr, and a do the north south east west shots then put it all together in both photomatrix and PTgui, I do find though to get focus correct using the canon 8-15mm can be a real pain. I find my panos have got focal isses from time to time and would be very grateful for any tips. https://goo.gl/5i71pm is a pano I shot but feel the focus is not great.

    • kacoooper

      Manual focus… every time :-)

      AF changes far too much for my liking, especially if stacking in any way.

      The distance scales on any lenses I’ve got are more than good enough to set focus at infinity.

      • Duncan Dunnit

        Thank you very much for your response. Can i ask what fstop you normally consider shooting outside perhaps with a mountain range and the distance point of focus. I can understand were you not wanting to disclose this. Regands and thanks

  • David

    Really interesting. I’m going to try this out.

    • Thanks for that.
      Had been trying HFD without success using the formulaic methods/math.
      Eventually relented to using automatic Landscape mode to focus, with all focus points active, to get what I wanted in my picture, far and near, into focus – then turning autofocus off and putting camera into AV mode; better results for me.
      This came from simply thinking about why my crappy little sony DSC50 seemed to be getting better shots than my Canon 450D (yeah, I know, can’t afford a 5D or 1D yet) and came to the conclusion it was doing what I am now doing.
      This however basically substantiates what I was thinking but clarifies the actualitites of it for me; once again thanks, this will make a huge difference for me.

      Rgds.
      Pete.

  • Shame not more people know about this.

    I teach a bit of photography myself and I tell my students to remember Andy’s rule:
    Focus at furtherst point of interest and set to f13 – as in Studor13. On crop cameras everything from infiniity to less than 1 meter will be plenty in focus. (up to 35mm)

    I’ve posted on forums to show that at 18mm even peebles in the foreground are in focus but people just keep harping back to hyperfocus points and so on.

    You can lead a horse to water, but….

    Also loved your Epson 3880 review. Trying to get the wife to agree.

    Cheers from sunny Bohinj, Slovenia

  • HI Keith,

    Just read your Hyperfocal distance article, found it most interesting as I read all your tilt/shift articles also.

    You quote 6.76 feet as the hyperfocal distance on a 24mm @f11. I too have used all these tables and concluded the same as yourself, infinity objects are not sharp enough.

    Having experimented I now alter the Hyperfocal tables for a D700 full frame Nikon with a 24mm PCE lens mounted to be 14 feet at f11, which I believe is about 2 stops more of dof which I find does the trick.

    Regards
    Michael

    • Yes the tables are no substitute for getting out and experimenting!

  • ellery

    There is a trend to move away from every thing that looks sort of in focus which is great for a landscape is actually reads visually like a garble agrgal tower of babble when there are some much detail in focus – it also reads like you have no idea what you are trying to say to your viewer. Where is your point of view ie the in focus bit, the lack of a point for the viewing eye to settle could make this something no one views for more than 15 secs – okay normal people not MTV addicts.

    use this appropriately it could be magic used in the wrong place it makes a phlattt effect- my opion.

    • Trends are just that – to be noted and used/ignored as you will in your own personal view of what it is you want in a picture :-)

      There is nothing in the article about how you should compose your images – this is entirely up to you as the photographer. The point is to show that formulaic use of hyperfocal distance tables is rarely optimal.

      I’d also re-iterate that the key to this is to go out and experiment, to see what works for yourself.

      Don’t automatically trust experts or follow trends…

  • Don Green

    Just read your hyperfocal distance blog. As always, very useful. Is it worth mentioning that it is always worth setting your Microfocus adjustment (if you have one), as particularly with telephotos lenses, this could make quite a difference?

    • Yes – useful with closer objects and longer lenses.