Depth of Field Calculator — Sensor Size, Aperture & Hyperfocal Distance
Calculate depth of field for any camera setup. Enter sensor size, focal length, aperture, and subject distance to find near/far focus limits and hyperfocal distance. Supports full-frame, APS-C, Micro 4/3, and more.
Depth of Field
Results update instantly as you type
Enter Values
Embed Code
Copy and paste this HTML snippet into any web page to embed this calculator directly.
<iframe src="http://127.0.0.1:54963/embed/everyday/depth-of-field-calculator?ref=embed" title="Depth of Field Calculator — Sensor Size, Aperture & Hyperfocal Distance" width="100%" style="max-width:600px; border:none; height:500px;" loading="lazy"></iframe>
Direct Link
Share this link to let others open the calculator in their browser.
Near Limit
9.10 ft
Far Limit
11.10 ft
Hyperfocal
101.01 ft
Total DOF
2.00 ft
The Formula
Depth of field is calculated using the hyperfocal distance formula. The hyperfocal distance (H) is the closest distance at which a lens can be focused while keeping objects at infinity acceptably sharp. From H, the near and far limits of acceptable sharpness are derived, defining the total depth of field.
Variable Definitions
Hyperfocal Distance
The distance at which everything from half that distance to infinity appears acceptably sharp. Focusing at this distance maximizes depth of field for landscape photography.
Focal Length
The focal length of the lens in millimeters. Longer focal lengths produce shallower depth of field at the same aperture and subject distance.
Aperture (f-number)
The lens aperture setting. Smaller f-numbers (wider apertures like f/1.4) produce shallower depth of field. Larger f-numbers (narrower apertures like f/16) increase depth of field.
Circle of Confusion
The maximum allowable blur spot size that appears sharp to the human eye at a given viewing distance and print size. CoC varies by sensor size — larger sensors have larger CoC values.
Subject Distance
The distance from the camera sensor plane to the subject being focused on.
How to Use This Calculator
- 1
Select your camera's sensor size from the dropdown for accurate circle of confusion values.
- 2
Enter your lens focal length (e.g., 50mm for a standard prime lens).
- 3
Set the aperture (f-number) you plan to use. Wider apertures (lower f-numbers) give shallower DOF.
- 4
Enter the distance to your subject and choose feet or meters.
- 5
Review the near and far focus limits to see what range will appear sharp in your photo.
Common Applications
- Planning a portrait shot by choosing the right aperture and distance for subject-background separation
- Determining the hyperfocal distance for landscape photography to maximize front-to-back sharpness
- Comparing depth of field across different sensor sizes (full-frame vs. APS-C vs. Micro 4/3) before buying gear
- Checking whether your entire group will be in focus at a given aperture and distance for event photography
DOF is the zone of acceptable sharpness between the near and far limits. Smaller apertures (higher f-numbers) increase DOF; longer focal lengths reduce it.
Understanding the Concept
Depth of field (DOF) is one of the most important creative tools in photography. It refers to the zone of acceptable sharpness in front of and behind the focus point. A shallow DOF isolates the subject from the background, ideal for portraits and macro photography. A deep DOF keeps everything sharp from foreground to infinity, essential for landscape photography. Four primary factors influence depth of field: aperture, focal length, subject distance, and sensor size. Wider apertures (smaller f-numbers like f/1.4) produce shallower DOF, while narrower apertures (larger f-numbers like f/16) increase DOF. Longer focal lengths compress perspective and reduce DOF, while shorter focal lengths increase it. Getting closer to your subject reduces DOF, and moving farther away increases it. Sensor size also plays a critical role: full-frame cameras achieve shallower DOF than crop-sensor cameras at the same aperture and framing due to their larger circle of confusion. The hyperfocal distance is a key concept for landscape photographers: by focusing at the hyperfocal distance, you maximize DOF from half that distance all the way to infinity. This technique is widely used to ensure foreground-to-background sharpness in landscape images. Understanding these relationships allows photographers to pre-visualize their images and choose the right settings to achieve their creative vision without trial and error.
Frequently Asked Questions
Sources & References
Related Calculators
Reviews
No reviews yet. Be the first to share your experience with Depth of Field Calculator — Sensor Size, Aperture & Hyperfocal Distance.
Write a Review
