Depth of Field Calculator: Realtime DoF for Any Camera

Calculate depth of field, hyperfocal distance, and near/far focus limits in real time. Supports all sensor sizes with 1/3 stop aperture precision.

Parameters

f/2.8
50 mm
3.00 m

Results

Total Depth of Field

Subject distance must be greater than the focal length.
Near Far Subject

Near Limit

Far Limit

Hyperfocal

Circle of Confusion: 0.030 mm
Utilities Studio

Want this utility on your website?

Customize colors and dark mode for WordPress, Notion or your own site.

Frequently Asked Questions

What is depth of field?

Depth of field (DoF) is the range of distance in a scene that appears acceptably sharp in the final image. It is determined by aperture, focal length, subject distance, and sensor size.

What is the hyperfocal distance?

The hyperfocal distance is the closest focusing distance at which objects at infinity are still acceptably sharp. Focusing at this distance maximises the depth of field for a given aperture and focal length.

Why does a larger aperture (smaller f-number) reduce DoF?

A wider aperture collects light over a larger area of the lens, which increases the size of the circle of confusion for out-of-focus points. This narrows the zone of acceptable sharpness — the depth of field.

How does sensor size affect depth of field?

Larger sensors use a larger circle of confusion threshold, which effectively increases the apparent DoF for the same field of view. However, when comparing equivalent fields of view, larger sensors generally produce shallower DoF because they require longer focal lengths.

# Understanding Depth of Field in Photography and Cinema

Depth of field is one of the most powerful creative tools available to photographers and cinematographers. A shallow depth of field isolates subjects from distracting backgrounds, while a deep depth of field keeps an entire landscape sharp from foreground to horizon. This calculator gives you precise control over both.

# The Three Variables That Control DoF

Variable Increase → Effect on DoF
Aperturef/1.4 → f/16Wider aperture = shallower DoF
Focal Length24mm → 200mmLonger focal = shallower DoF at same distance
Subject Distance1m → 10mFurther subject = deeper DoF

# The Hyperfocal Distance: Maximum Sharpness

When you focus at the hyperfocal distance, everything from half that distance to infinity appears acceptably sharp. Landscape photographers use this technique to ensure both a foreground rock and distant mountains are in focus simultaneously.
Practical tip
For street photography, set your focus to the hyperfocal distance and shoot without looking through the viewfinder. With a 35mm lens on APS-C at f/8, the hyperfocal distance is roughly 4 metres — everything from 2m to infinity will be sharp.

# Sensor Size and the Circle of Confusion

The circle of confusion (CoC) is the threshold that defines "acceptable sharpness" for a given sensor format. A Full Frame sensor has a CoC of 0.030mm; a smartphone sensor uses ~0.006mm. Smaller CoC values mean stricter sharpness criteria and, consequently, shallower perceived depth of field.
0.030 mm Full Frame
0.019 mm APS-C
0.006 mm Smartphone

# DoF in Cinema: Focal Length vs. Sensor

Cinematographers shooting on Super 35 (close to APS-C) frequently use longer focal lengths to compress perspective, which also narrows DoF and creates the characteristic "cinematic look". The combination of a fast prime (f/1.4–f/2.8) and a 85mm+ focal length at portrait distances is the classic recipe.

The Focus Distribution Rule

Pro Technique
For a subject at 3 metres with a 50mm lens at f/2.8 on Full Frame: near limit ≈ 2.73m, far limit ≈ 3.33m, total DoF ≈ 60cm. The back zone is always larger than the front zone — roughly 2:1 ratio for most real-world distances.

Bibliographic References