Focus planning tool

Depth of Field Calculator: Free DoF Tool for Filmmakers & Photographers

See exactly how much of your shot stays sharp. Pick a sensor, a lens and a focus distance.

21 sensor presetsHyperfocalMetric or imperial

Result

50mm f/2.8 · Full Frame

Focus 3.00 m · CoC 0.030 mm

In focus

60.1 cmdeep

Sharp between 2.73 m and 3.33 m.

2.73 m3.33 m3.00 m
NearFarFocus
Near limit
2.73 m
Far limit
3.33 m
Hyperfocal
29.81 m
Sharp to infinity from
14.91 m

Depth per f-stop

50mm at 3.00 m

Sensor Sizes & Crop Factors

Reference table for common cinema and photography sensor formats, their crop factors, and circle of confusion values

Common Sensor Formats

SensorDimensions (mm)Crop FactorCoC (mm)
Full Frame36 × 241.0×0.030
Super 3524.9 × 18.71.4×0.019
APS-C (Canon)22.3 × 14.91.6×0.019
APS-C (Nikon/Sony)23.5 × 15.61.5×0.020
Micro 4/317.3 × 132.0×0.015
Super 1612.5 × 7.52.9×0.012
1" Sensor13.2 × 8.82.7×0.011
Medium Format43.8 × 32.90.79×0.043
iPhone 15 Pro (Main)9.8 × 7.33.7×0.007

How Depth of Field Works

Depth of field depends on three primary factors: aperture, focal length, and focus distance. Understanding these relationships helps you control how much of your scene appears sharp.

Aperture (f-stop)

A wider aperture (lower f-number) creates a shallower depth of field, isolating the subject from the background. A narrower aperture (higher f-number) increases DoF, keeping more of the scene in focus.

f/1.4 = very shallow → f/16 = very deep

Focal Length

Longer focal lengths produce shallower depth of field at the same aperture and distance. A 135mm lens has much less DoF than a 24mm lens at the same f-stop and subject distance.

24mm = deep DoF → 135mm = shallow DoF

Focus Distance

The closer you focus to the subject, the shallower the depth of field becomes. At macro distances, DoF can be as thin as a fraction of a millimeter.

0.5m = razor-thin → 50m = very deep

Depth of Field Formula

The approximate total depth of field can be calculated using:

DoF ≈ 2 × N × c × d² / f²

N = f-stop • c = CoC • d = distance • f = focal length

Hyperfocal Distance

The focus distance that maximizes depth of field from half H to infinity:

H = f² / (N × c) + f

Focus at H → sharp from H/2 to ∞

Near Focus Limit

The closest distance that appears acceptably sharp:

Dn = d × (H − f) / (H + d − 2f)

Far Focus Limit

The farthest distance that appears acceptably sharp:

Df = d × (H − f) / (H − d)

When d ≥ H, far limit = ∞

Frequently Asked Questions

Common questions about depth of field, circle of confusion, and hyperfocal distance