Most of the methods of calculating hyperfocals are based around film technology and printing. But modern cameras have better resolution than 35mm film or a standard printed photograph. It seems a bit of a waste to spend thousands on a 40 megapixel camera and then take a picture as if you were doing a 8 megapixel print. You might as well have bought a 10 megapixel camera from 2006. The aim is to get the shortest hyperfocal distance while maintaining the maximum resolution at infinity. Since I haven't seen anything equivalent online and a thread last year didn't suggest anything like this, here you are:
The following is based upon a whole bunch of maths and spreadsheets, and some interesting observations on hyperfocals that come out of them. The end result is a simplified method of calculating hyperfocals that I think fits in with the way photographers do things. It uses circles of confusion in the underlying maths but converts them into megapixels and crop factors (which are less scary).
At the hyperfocal focal distance the overall amount of blur at infinity is a mixture of the depth of field plus diffraction plus the characteristics of the lens. This looks at the depth of field and diffraction together, while most books and websites only look at one of these things. The errors in the lens are not included.
If a lens is focussed at the hyperfocal distance with the correct aperture the amount of blur at infinity is split almost exactly equally between diffraction and the out of focusness of the lens due to depth of field. At the hyperfocal distance where the lens is focussed, the blur is only due to diffraction, which is constant for a given aperture. If you are trying to get the shortest hyperfocal distance with the maximum resolution at infinity then this happens at the same aperture for all focal lengths. Higher or lower apertures than this will increase the hyperfocal distance, either by decreasing the depth of field or by increasing diffraction. When you put this together with the way cameras work with a Bayer filter and assume that a camera/computer can convert the RAW green pixels into a full resolution image then you get this:
Required aperture for the shortest hyperfocal with full resolution at infinity is 43.2 divided by the crop factor divided by the square root of the number of megapixels.
eg A 16MPix FF camera needs an aperture of 43.2 / 1 / Squareroot of 16 = 10.8 then round this to the nearest aperture setting.
This is the same aperture for all focal lengths, the lens makes no difference. You only have to work this out for your camera once.
The focus point to give the right level of blur at infinity is (using Effective focal length as actual focal length * crop factor) :
Effective focal Length divided by 50 all squared times the number of megapixels times 1.975
This can be simplified to be this (because no one can estimate distances that accurately):
Hyperfocal distance = (Effective focal length /50) X (Effective focal length/50) X Megapixels X 2
The clever bit is by dividing the focal length by 50, you get "stops" at about 17mm, 24mm, 35mm, 50mm, 85mm, 100mm, 140mm, 200mm, etc
Every stop doubles the distance if they are bigger than 50 or halves it at if it is less. So now you have a distance of 2 X Megapixels which you then double or halve as many times as you have stops away from 50. Easy.
A 100mm lens (2 stops up) on a 24 megapixel FF sensor will have a hyperfocal of (24 X 2) X 2 X 2 = about 200m at f/9
What this will give you is the resolution of your camera at infinity, theoretically twice the resolution of your camera at the hyperfocal distance and the resolution of your camera again at half the hyperfocal distance. This should give you much better post-processing options than guesswork and also help with calculating focus stacking.
Also, if you want the camera resolution at a closer distance and are happy to have half the resolution at infinity, you can go a stop of aperture up from the earlier calculation. It halves the hyperfocal distance and the resolution, but remember you had twice the resolution at the focus distance anyway so the subject at the new hyperfocal distance is still at full resolution.
This method won't make good pictures in itself and may make all your pictures look the same. It won't necessarily make good art. It won't make a lens that is bad at a particular focal length/aperture/distance combination any better so you need to know what your lens is like. But knowledge is power. It doesn't cost anything to click your camera onto f/9 with about a 10m focus (for a 24MPix FF camera with a 24mm lens) to take an extra picture with everything in focus once the blurry arty ones with lower apertures are done.
I have tested this method methodically by changing focus distances and apertures and it worked for me. Give it a try and let me know what you think.
Note- For light at 555nm (peak sensitivity of the human eye and near the edge of green light) use 43.2 and 1.975 . Pure green is about 530 nm (which gives 45.3 and 1.866) but I think it is better to have a more leeway so more light is in focus.
Andrew Harrington
The following is based upon a whole bunch of maths and spreadsheets, and some interesting observations on hyperfocals that come out of them. The end result is a simplified method of calculating hyperfocals that I think fits in with the way photographers do things. It uses circles of confusion in the underlying maths but converts them into megapixels and crop factors (which are less scary).
At the hyperfocal focal distance the overall amount of blur at infinity is a mixture of the depth of field plus diffraction plus the characteristics of the lens. This looks at the depth of field and diffraction together, while most books and websites only look at one of these things. The errors in the lens are not included.
If a lens is focussed at the hyperfocal distance with the correct aperture the amount of blur at infinity is split almost exactly equally between diffraction and the out of focusness of the lens due to depth of field. At the hyperfocal distance where the lens is focussed, the blur is only due to diffraction, which is constant for a given aperture. If you are trying to get the shortest hyperfocal distance with the maximum resolution at infinity then this happens at the same aperture for all focal lengths. Higher or lower apertures than this will increase the hyperfocal distance, either by decreasing the depth of field or by increasing diffraction. When you put this together with the way cameras work with a Bayer filter and assume that a camera/computer can convert the RAW green pixels into a full resolution image then you get this:
Required aperture for the shortest hyperfocal with full resolution at infinity is 43.2 divided by the crop factor divided by the square root of the number of megapixels.
eg A 16MPix FF camera needs an aperture of 43.2 / 1 / Squareroot of 16 = 10.8 then round this to the nearest aperture setting.
This is the same aperture for all focal lengths, the lens makes no difference. You only have to work this out for your camera once.
The focus point to give the right level of blur at infinity is (using Effective focal length as actual focal length * crop factor) :
Effective focal Length divided by 50 all squared times the number of megapixels times 1.975
This can be simplified to be this (because no one can estimate distances that accurately):
Hyperfocal distance = (Effective focal length /50) X (Effective focal length/50) X Megapixels X 2
The clever bit is by dividing the focal length by 50, you get "stops" at about 17mm, 24mm, 35mm, 50mm, 85mm, 100mm, 140mm, 200mm, etc
Every stop doubles the distance if they are bigger than 50 or halves it at if it is less. So now you have a distance of 2 X Megapixels which you then double or halve as many times as you have stops away from 50. Easy.
A 100mm lens (2 stops up) on a 24 megapixel FF sensor will have a hyperfocal of (24 X 2) X 2 X 2 = about 200m at f/9
What this will give you is the resolution of your camera at infinity, theoretically twice the resolution of your camera at the hyperfocal distance and the resolution of your camera again at half the hyperfocal distance. This should give you much better post-processing options than guesswork and also help with calculating focus stacking.
Also, if you want the camera resolution at a closer distance and are happy to have half the resolution at infinity, you can go a stop of aperture up from the earlier calculation. It halves the hyperfocal distance and the resolution, but remember you had twice the resolution at the focus distance anyway so the subject at the new hyperfocal distance is still at full resolution.
This method won't make good pictures in itself and may make all your pictures look the same. It won't necessarily make good art. It won't make a lens that is bad at a particular focal length/aperture/distance combination any better so you need to know what your lens is like. But knowledge is power. It doesn't cost anything to click your camera onto f/9 with about a 10m focus (for a 24MPix FF camera with a 24mm lens) to take an extra picture with everything in focus once the blurry arty ones with lower apertures are done.
I have tested this method methodically by changing focus distances and apertures and it worked for me. Give it a try and let me know what you think.
Note- For light at 555nm (peak sensitivity of the human eye and near the edge of green light) use 43.2 and 1.975 . Pure green is about 530 nm (which gives 45.3 and 1.866) but I think it is better to have a more leeway so more light is in focus.
Andrew Harrington
Last edited: