What depth of field is
Depth of field is the zone in front of and behind your focus point that still looks sharp in the photo. When you focus on a person two metres away, the person is sharp, but the wall a metre behind them may be soft, and the flowers half a metre in front may be soft too. The distance between the nearest sharp point and the farthest sharp point is your depth of field.
Three things control it. A wide aperture like f/1.8 gives a shallow zone, so only a thin slice is sharp. A long focal length like 85 mm gives a shallow zone too. A close focus distance gives a shallow zone as well. Change any one of them and the zone grows or shrinks, which is why the same scene can look completely different at f/2 and at f/11.
How to use the calculator
Type your focal length in millimetres, which is printed on your lens, like 50 for a 50 mm lens. Type your aperture as a plain number, like 2.8 for f/2.8. Type your focus distance in metres, which is how far your subject is from the camera. Then pick your sensor size: full frame for most pro cameras, APS-C for most crop-sensor cameras, and Micro Four Thirds for Olympus and Panasonic cameras.
The tool shows your near limit, your far limit, and the depth between them, plus the hyperfocal distance. The bar under the result shows where your depth sits on a scale to two metres. If the far limit says infinity, your focus is past the hyperfocal distance, and everything from the near limit to the horizon is sharp.
Worked example
Take a 50 mm lens at f/2.8, focused on a person 3 metres away, on a full-frame camera. The hyperfocal distance is 30.84 metres. The near limit is 2.74 metres and the far limit is 3.32 metres, so the depth of field is 0.58 metres, about 58 cm. The person is sharp, but anything more than about 30 cm behind them starts to soften.
Now stop the same lens down to f/8 at the same distance. The hyperfocal distance drops, the near limit moves to about 2.54 metres and the far limit to about 3.66 metres, so the depth grows to about 1.11 metres on an APS-C sensor, and even more on full frame. That is the trade: a smaller aperture gives you more sharpness, but it lets in less light, so you need a slower shutter or a higher ISO.
Who uses this calculator
Portrait photographers use it most, because they want the eyes sharp and the background soft. They pick a wide aperture and check that the depth covers the face but not the wall behind. Landscape photographers use it the other way: they want the flowers in front and the mountains behind both sharp, so they pick a small aperture and focus at the hyperfocal distance.
Beginners use it to learn why their photos look different from what they expected. If a group photo has the front row sharp and the back row soft, the depth of field was too shallow, and this tool shows which setting to change. Street photographers use it to set a zone in advance, so they can shoot fast without refocusing for every shot.
Honest limitations
This calculator uses the standard formula and the usual circle of confusion for each sensor size: 0.029 mm for full frame, 0.019 mm for APS-C, and 0.015 mm for Micro Four Thirds. Real lenses are not perfect, and the circle of confusion is a convention, not a law of physics, so two lenses with the same numbers can look a little different.
Sharpness also depends on how big you print or view the photo. A photo that looks sharp on a phone can look soft on a large print, because the print shows more detail. The tool also assumes a simple lens model, so it does not account for focus breathing or the way some lenses change focal length as you focus closer. Use the numbers to plan, then check the result on your camera screen.
Frequently asked questions
Why is my background still sharp at f/2.8? Because you are focused far away, or your lens is wide. A 24 mm lens at f/2.8 focused at 5 metres has a hyperfocal distance of only 2.51 metres, so everything past 1.66 metres is sharp to infinity. Move closer, or use a longer lens, to melt the background.
What is the hyperfocal distance? It is the focus distance that makes everything from half that distance to infinity sharp. Focus there for the deepest possible field, which is why landscape photographers use it.
Does sensor size change depth of field? Yes, a smaller sensor uses a smaller circle of confusion, so the same lens and aperture give a deeper field on APS-C than on full frame. That is why the calculator asks for your sensor size.
Should I always use f/8 for landscapes? Not always. f/8 to f/11 is a good start, but going to f/16 or f/22 can soften the whole image through diffraction. Check the depth first, then pick the widest aperture that covers what you need.
También disponible en español: Calculadora de Profundidad de Campo de Fotografía – Gratis en Línea
