Optics calculators
Depth of field calculator
Calculate near and far focus limits, depth of field and hyperfocal distance for your camera, lens, aperture and subject distance.
Acceptable focus range
1.724 m to 11.562 m
Canon EOS R50 · 18 mm · f/4.5 · 3 m
- Total depth
- 9.838 m
- In front of the subject
- 1.276 m
- Behind the subject
- 8.562 m
- Hyperfocal distance
- 4.045 m
Compare aperture settings
| Aperture | Near | Far | Depth |
|---|---|---|---|
| f/4.5 | 1.724 m | 11.562 m | 9.838 m |
| f/5 | 1.646 m | 16.93 m | 15.285 m |
| f/5.6 | 1.561 m | 38.236 m | 36.675 m |
| f/6.3 | 1.473 m | Infinity | Infinity |
| f/7.1 | 1.384 m | Infinity | Infinity |
| f/8 | 1.295 m | Infinity | Infinity |
| f/9 | 1.209 m | Infinity | Infinity |
| f/10 | 1.134 m | Infinity | Infinity |
| f/11 | 1.068 m | Infinity | Infinity |
| f/13 | 0.956 m | Infinity | Infinity |
| f/14 | 0.908 m | Infinity | Infinity |
| f/16 | 0.826 m | Infinity | Infinity |
| f/18 | 0.757 m | Infinity | Infinity |
| f/20 | 0.699 m | Infinity | Infinity |
| f/22 | 0.649 m | Infinity | Infinity |
Circle of confusion: 0.018 mm (sensor diagonal / 1500).
Sources for these settings
- Sensor dimensions: Canon source · Updated 2 Oct 2026
- Focal range: Canon USA source · Updated 7 Sep 2026
- Widest aperture: Canon USA source · Updated 7 Sep 2026
- Smallest aperture: Canon source · Updated 2 Oct 2026
- Minimum focus: Canon Europe source · Updated 5 Oct 2026
What these numbers mean
These are geometric estimates, not a sharpness test. The thin-lens model does not account for focus breathing, lens distortion or close-up magnification. Focus distance is entered from the camera’s sensor plane; the model approximates it as distance from the lens.
Depth of field uses a circle of confusion: a chosen acceptable blur diameter on the sensor. It is not a guarantee that a photograph will look sharp at every print size. Equivalent focal length compares framing; equivalent aperture compares depth of field at matched framing and distance, and does not change exposure.
Named zooms with variable aperture limits use their published endpoints. Intermediate limits stay unknown. Intermediate depth-of-field settings have unchecked lens limits.