Depth of Field Calculator — Free DoF Tool for Filmmakers & Photographers
Calculate depth of field, hyperfocal distance, and near/far focus limits for any camera and lens combination. Supports cinema and photography sensor formats.
Total Depth of Field
87.0 cmNear Limit
2.63 m
Far Limit
3.50 m
Hyperfocal
20.81 m
Sharp from 10.41 m to ∞
Sensor Sizes & Crop Factors
Reference table for common cinema and photography sensor formats, their crop factors, and circle of confusion values
Common Sensor Formats
| Sensor | Dimensions (mm) | Crop Factor | CoC (mm) |
|---|---|---|---|
| Full Frame | 36 × 24 | 1.0× | 0.030 |
| Super 35 | 24.9 × 18.7 | 1.4× | 0.019 |
| APS-C (Canon) | 22.3 × 14.9 | 1.6× | 0.019 |
| APS-C (Nikon/Sony) | 23.5 × 15.6 | 1.5× | 0.020 |
| Micro 4/3 | 17.3 × 13 | 2.0× | 0.015 |
| Super 16 | 12.5 × 7.5 | 2.9× | 0.012 |
| 1" Sensor | 13.2 × 8.8 | 2.7× | 0.011 |
| Medium Format | 43.8 × 32.9 | 0.79× | 0.043 |
| iPhone 15 Pro (Main) | 9.8 × 7.3 | 3.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.
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.
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.
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