Depth of Field Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the lens focal length, the f-number, the focus distance and the circle of confusion for your sensor.
Result
Total depth of field (— = infinite)
Hyperfocal distance
- Near limit of sharpness
- Far limit of sharpness (— = to infinity)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.
Search Amazon for camera lenses. Visit Amazon
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Focal length, in mm: enter 1 or more.
- Aperture (f-number): enter 0.5 or more.
- Distance unit: choose Feet or Meters.
- Focus distance: enter 0 or more.
- Circle of confusion (about 0.03 for full frame), in mm: enter 0.001 or more.
- Read the result: Total depth of field (— = infinite); the panel also shows Hyperfocal distance, Near limit of sharpness and Far limit of sharpness (— = to infinity).
How this calculator works
Hyperfocal distance H = f² / (N × c) + f, with f the focal length, N the f-number and c the circle of confusion (all in mm). These are the standard thin-lens depth-of-field equations used in photographic optics.
Near limit = s (H − f) / (H + s − 2f); far limit = s (H − f) / (H − s) when s < H, otherwise sharpness extends to infinity. Depth of field = far − near. Distances in feet use 1 ft = 304.8 mm (exact, NIST SP 811).
The circle of confusion is a convention for what looks sharp in a print: about 0.03 mm is common for full frame; smaller sensors use smaller values.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Focal length | mm | |
| Aperture (f-number) | ||
| Distance unit (304.8: Feet; 1,000: Meters) | ||
| Focus distance | ||
| Circle of confusion (about 0.03 for full frame) | mm | |
| Hyperfocal distance | ||
| Near limit of sharpness | ||
| Far limit of sharpness (— = to infinity) | ||
| Total depth of field (— = infinite) |
Worked example
| Focal length | 50 mm |
|---|---|
| Aperture (f-number) | 8 |
| Distance unit | Feet |
| Focus distance | 10 |
| Circle of confusion (about 0.03 for full frame) | 0.03 mm |
| Hyperfocal distance | 34.3395 |
|---|---|
| Near limit of sharpness | 7.7651 |
| Far limit of sharpness (— = to infinity) | 14.0412 |
Total depth of field (— = infinite) 6.276
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the depth of field of a 50 mm lens at f/8 focused at 10 ft?
About 6.3 ft, from roughly 7.8 ft to 14.0 ft, with c = 0.03 mm.
What is hyperfocal distance?
The focus distance that makes everything from half that distance to infinity acceptably sharp.
Does a smaller aperture increase depth of field?
Yes. A higher f-number shrinks the hyperfocal distance and widens the sharp zone.