This depth of field calculator shows how much of your scene will be sharp for a given lens, aperture and focus distance. Choose your camera's sensor, from full frame and APS-C to Micro Four Thirds, 1-inch and medium format, or enter your own circle of confusion, then set the real focal length, the f-number and the subject distance in meters or feet. It gives the near and far limits of sharp focus, the total depth of field split into the part in front of and behind the subject, and the hyperfocal distance that keeps everything from half that distance to infinity acceptably sharp. A table compares every whole stop from f/1.4 to f/16 so you can pick an aperture at a glance. Photographers can paste a shot list and every setup is calculated at once. It is free and runs entirely in your browser.
| Aperture | Near (m) | Far (m) | Depth (cm) | Hyperfocal (m) |
|---|---|---|---|---|
| f/1.8 | 2.83 | 3.20 | 37 | 48.2 |
| f/2.8 | 2.74 | 3.32 | 58 | 31.0 |
| f/4 | 2.64 | 3.47 | 83 | 21.7 |
| f/5.6 | 2.52 | 3.71 | 119 | 15.5 |
| f/8 | 2.36 | 4.12 | 176 | 10.9 |
| f/11 | 2.18 | 4.80 | 261 | 7.9 |
| f/16 | 1.94 | 6.59 | 465 | 5.5 |
The range of distances in front of and behind the focus point that look acceptably sharp in the final image.
The closest focus distance that keeps infinity acceptably sharp. Focus there and everything from half that distance to infinity is in focus.
At the same framing and f-number, yes, because it uses a shorter focal length. At the same focal length and distance it gives less, because its circle of confusion is smaller.
The calculation assumes a print viewed at normal distance. Viewing at 100% on screen needs a smaller circle of confusion, which shrinks the depth of field.
No. All calculations run in your browser.
The circle of confusion is the sensor diagonal ÷ 1500 (0.029 mm for full frame, 0.019 mm for APS-C, 0.014 mm for Micro Four Thirds), the standard for an 8 × 10 inch print viewed at about 25 cm, or a custom value. The hyperfocal distance is H = f²/(N × c) + f for focal length f, f-number N and circle c. Focused at distance s, the near limit is s(H − f)/(H + s − 2f) and the far limit is s(H − f)/(H − s), or infinity once s reaches H. Depth of field is far minus near, split into the part in front of and behind the subject. A table repeats the calculation across whole stops from f/1.4 to f/16.