Photography

Depth of Field Calculator

Calculate depth of field from focal length, aperture, and subject distance. Shows near/far focus limits and hyperfocal distance for your sensor size.

Quick Answer

Depth of field depends on focal length, aperture, distance, and sensor size. Wider apertures (lower f-numbers) give shallower DoF. Longer focal lengths compress DoF. Closer subjects have thinner DoF. Smaller sensors increase DoF.

Camera Settings

Presets:

Results

601 mm

Total Depth of Field

2.73 m

Near Focus Limit

3.33 m

Far Focus Limit

29.81 m

Hyperfocal Distance

About This Tool

The Depth of Field Calculator computes the zone of acceptable sharpness in front of and behind your focus point. Understanding DoF is essential for portrait photographers who want creamy bokeh, landscape photographers who need everything sharp from foreground to infinity, and macro photographers working with paper-thin focus planes.

What Controls Depth of Field

Three camera settings affect DoF: aperture, focal length, and subject distance. Wider apertures (f/1.4, f/2) produce shallower depth of field with blurry backgrounds. Longer focal lengths compress the scene and reduce DoF. Moving closer to the subject also reduces DoF. Sensor size plays a role too, because smaller sensors have a deeper DoF at equivalent framing due to their shorter actual focal lengths.

Hyperfocal Distance

The hyperfocal distance is the focus distance that maximizes DoF from half that distance to infinity. Landscape photographers use this technique to get everything sharp. If your hyperfocal distance is 4 meters, focusing at 4 meters makes everything from 2 meters to infinity acceptably sharp. This is far more effective than just focusing at infinity, which wastes DoF in front of the focal plane.

Circle of Confusion

Depth of field calculations depend on the circle of confusion (CoC), which defines the maximum blur spot that still appears sharp. The CoC depends on sensor size, viewing distance, and print size. This calculator uses standard CoC values for each sensor format. For critical applications like large prints, you may want to use a stricter (smaller) CoC value.

Practical Tips

For portraits with blurred backgrounds, use a wide aperture (f/1.4 to f/2.8) and get close to your subject. For sharp landscapes, use f/8 to f/11 and focus at the hyperfocal distance. Going beyond f/16 introduces diffraction softening on most cameras, so the extra DoF comes at the cost of overall sharpness. Focus stacking is the solution when you need extreme DoF without diffraction penalties.

Frequently Asked Questions

What is depth of field in photography?
Depth of field is the range of distances in a photo that appear acceptably sharp. A shallow DoF means only a thin slice is in focus (great for portraits), while a deep DoF means most of the scene is sharp (great for landscapes). It's controlled by aperture, focal length, subject distance, and sensor size.
How does aperture affect depth of field?
Wider apertures (smaller f-numbers like f/1.4 or f/2) produce shallower depth of field. Narrower apertures (larger f-numbers like f/11 or f/16) produce deeper depth of field. Each full stop of aperture roughly doubles or halves the DoF. Most lenses are sharpest between f/5.6 and f/8.
What is hyperfocal distance and when should I use it?
Hyperfocal distance is the closest focus distance that keeps infinity acceptably sharp. Focusing at this distance maximizes the depth of field from half the hyperfocal distance to infinity. Landscape photographers use it constantly to ensure foreground and background are both sharp without focus stacking.
Does sensor size really affect depth of field?
Yes, but indirectly. A smaller sensor uses a shorter focal length to achieve the same field of view, which increases DoF. A Micro Four Thirds camera at 25mm f/2.8 has the same field of view as a full-frame at 50mm f/2.8, but roughly twice the DoF. This is why phone cameras have everything in focus.
What is diffraction and when does it matter?
Diffraction is the bending of light at the aperture edges that softens the entire image. It becomes noticeable at small apertures: around f/11 on APS-C and f/16 on full frame. While smaller apertures increase DoF, the diffraction softening can offset the benefit. For maximum overall sharpness, stay between f/5.6 and f/11.

Was this tool helpful?