Quick Answer
Hyperfocal distance H = f² ÷ (N × c); near limit = H × s ÷ (H + (s − f)); far limit = H × s ÷ (H − (s − f)). A 50 mm lens at f/5.6 focused at 10 ft on full frame (c = 0.03 mm) has H = 48.8 ft and is sharp from 8.32 to 12.52 ft.
Embed this calculator
Adjust the size if needed, then copy the code below into your page or blog. The calculator will load in an iframe and stay updated automatically.
Table of Contents
- Depth of Field Calculator
- Quick Answer
- Related Calculators
- How This Depth of Field Calculator Works
- How to Use the Depth of Field Calculator
- Core Formulas
- Key Terms
- Worked Example
- Real-Life Examples
- Depth of Field vs Hyperfocal Distance
- Depth of Field by Aperture
- Common Mistakes to Avoid
- Frequently Asked Questions
- References & Sources
How This Depth of Field Calculator Works
A lens is in perfect focus at only one distance, but a little in front and behind still looks sharp, because a small blur spot (the circle of confusion) looks like a point to the eye. Depth of field is the range between the near and far limits where that blur stays below a set size. Enter the lens focal length, the f-number, the distance you focus at and your sensor size, and the calculator gives both limits and the total.
It also gives the hyperfocal distance: focus there and everything from half that distance to infinity is acceptably sharp, the trick landscape photographers use. The aperture table shows how stopping down widens the sharp zone. Save your usual lenses and compare two set-ups side by side.
Quick explanation:
- Hyperfocal: H = f² ÷ (N × c).
- Near limit: H × s ÷ (H + (s − f)).
- Far limit: H × s ÷ (H − (s − f)), infinity once s reaches H + f.
- More depth: smaller aperture, shorter lens, farther focus.
How to Use the Depth of Field Calculator
- Choose feet or meters.
- Enter the focal length printed on the lens and the f-number.
- Enter the distance you focus at.
- Choose your sensor’s crop factor, or enter your own circle of confusion.
- Press Calculate and read the near and far limits and the hyperfocal distance.
Core Formulas
- Circle of confusion (c): 0.03 mm ÷ crop factor (full frame 0.03 mm)
- Hyperfocal distance (H): f² ÷ (N × c), all in millimeters
- Near limit: H × s ÷ (H + (s − f))
- Far limit: H × s ÷ (H − (s − f)); infinity when s − f ≥ H
- Total depth of field: far limit − near limit
Key Terms
- Depth of field: the range of distances that look acceptably sharp.
- Circle of confusion: the largest blur spot that still looks like a point.
- Hyperfocal distance: the closest focus distance that keeps infinity sharp.
- f-number: focal length ÷ aperture diameter.
Worked Example
- A 50 mm lens at f/5.6 on full frame, focused at 10 ft (3,048 mm), c = 0.03 mm.
- H = 50² ÷ (5.6 × 0.03) = 14,881 mm = 48.8 ft
- Near = 14,881 × 3,048 ÷ (14,881 + 2,998) = 2,537 mm = 8.32 ft
- Far = 14,881 × 3,048 ÷ (14,881 − 2,998) = 3,817 mm = 12.52 ft
- Total depth of field = 4.20 ft
- Check against the Michigan Tech example: 38 mm, f/5.6, c = 0.05 mm, focused at 1,000 mm gives 843 to 1,229 mm, as in the guide.
Real-Life Examples
- Portraits: an 85 mm lens at f/1.8 focused at 6 ft keeps only 1.9 inches sharp.
- Landscapes: a 24 mm lens at f/8 has a hyperfocal distance of 7.9 ft; focus there for sharpness from 3.9 ft to infinity.
- Crop sensors: 35 mm at f/4 on a 1.5× crop, focused at 3 m, is sharp from 2.51 to 3.72 m.
- Video focus pulling: see how much room for error you have.
- Group photos: pick an aperture that keeps every row sharp.
Depth of Field vs Hyperfocal Distance
- Depth of field: the sharp zone around the distance you focus at.
- Hyperfocal distance: the focus distance that pushes the far limit to infinity.
- This calculator: gives both.
Depth of Field by Aperture
50 mm lens focused at 10 ft, full frame, c = 0.03 mm.
| Aperture | Near limit | Far limit | Total | Hyperfocal |
|---|---|---|---|---|
| f/1.4 | 9.52 ft | 10.53 ft | 1.01 ft | 195.3 ft |
| f/2 | 9.33 ft | 10.78 ft | 1.45 ft | 136.7 ft |
| f/2.8 | 9.08 ft | 11.12 ft | 2.04 ft | 97.6 ft |
| f/4 | 8.74 ft | 11.68 ft | 2.94 ft | 68.4 ft |
| f/5.6 | 8.32 ft | 12.52 ft | 4.20 ft | 48.8 ft |
| f/8 | 7.77 ft | 14.04 ft | 6.28 ft | 34.2 ft |
| f/11 | 7.16 ft | 16.55 ft | 9.38 ft | 24.9 ft |
| f/16 | 6.35 ft | 23.56 ft | 17.22 ft | 17.1 ft |
Common Mistakes to Avoid
- Using the equivalent focal length. Enter the real focal length on the lens.
- Expecting a hard edge. Sharpness falls off gradually.
- Ignoring print size. Large prints need a smaller circle of confusion.
- Stopping down too far. Diffraction softens the whole image.
- Measuring from the wrong place. Focus distance is from the sensor plane.
Frequently Asked Questions
Find H = f² ÷ (N × c), then near = H × s ÷ (H + (s − f)) and far = H × s ÷ (H − (s − f)). A 50 mm lens at f/5.6 focused at 10 ft is sharp from 8.32 to 12.52 ft.
The focus distance at which the far limit reaches infinity. Focus there and everything from half that distance to infinity is sharp.
The Michigan Tech guide gives 0.05 mm for 35 mm in general use and 0.03 mm for critical work. Divide by the crop factor for smaller sensors.
Yes. A larger f-number, such as f/11 instead of f/4, widens the sharp zone.
The smaller image is enlarged more, so it needs a smaller circle of confusion.
No. More of it usually lies behind the subject, and the share grows as you focus farther away.
No. Very small apertures add diffraction blur, which softens the whole picture.
Yes. Save each lens and setting by name in this browser.
Yes. Use Compare: keep as A.
Yes. Use Share link or Print.
References & Sources
| Source | Used For | Link |
|---|---|---|
| Michigan Technological University (C.-K. Shene), Digital Camera User Guide: Depth of Field | Hyperfocal distance H = f² ÷ (N × c); near = H × s ÷ (H + (s − f)), far = H × s ÷ (H − (s − f)); focusing at H gives sharpness from H/2 to infinity; maximum circle of confusion 0.05 mm for 35 mm (general use) and 0.03 mm for critical work; worked example 38 mm at f/5.6 focused at 1,000 mm: near 842 mm, far 1,229 mm. | https://pages.mtu.edu/~shene/DigiCam/User-Guide/995/EXPOSURE/EV-depth-of-field.html |
| MIT CSAIL (F. Durand), Computational Photography, Depth of field | Hyperfocal distance H = f²/(Nc) with N = f/D; focus at H and everything from H/2 to infinity is acceptably sharp; depth of field grows with a smaller aperture, a shorter focal length and a greater focus distance. | https://people.csail.mit.edu/fredo/comp-photo-book/09-optics-lenses-and-aberration-correction-07-depth-of-field.html |