Depth of field (DOF) is the distance range in front of your camera where objects appear acceptably sharp. Everything inside this zone looks in focus; anything in front of the near limit or behind the far limit gradually turns blurry.
Photographers use DOF creatively:
This depth of field calculator lets you predict near focus distance, far focus distance, total DOF, and hyperfocal distance based on your camera settings. It is especially helpful when you want to plan shots before you are on location.
The tool relies on four main variables that control depth of field:
The default values of f/2.8, 50 mm, and 5 m are typical for a full‑frame environmental portrait or general‑purpose scene. You can adjust them to match your lens and shooting distance.
Internally, the calculator works with distances in millimetres to keep the formulas consistent. Three key quantities are used: the circle of confusion, the hyperfocal distance, and the near and far focus limits.
The circle of confusion is the largest blur spot that still appears sharp to a viewer at a typical viewing distance. This calculator uses common approximate values:
c = 0.03 mmc = 0.02 mmc = 0.015 mmThe hyperfocal distance is the focus distance at which everything from half that distance out to infinity is acceptably sharp (for a given aperture and sensor size). The formula is:
where:
H is the hyperfocal distancef is the focal length of the lensN is the f‑number (aperture)c is the circle of confusion for the chosen sensor sizeLet s be the focus distance to your subject (in the same units as H). The near and far limits that define the depth of field are calculated as:
The total depth of field is then simply:
DOF = Df − Dn
If s is greater than or equal to H, the far distance is treated as infinity, which is what you want for many landscape photos.
After you click the calculate button, the tool will display four main values:
To use this information in the field:
Imagine you are shooting a portrait on a full‑frame camera with a 50 mm lens at f/2.8, and your subject is 5 m away. Enter:
The calculator will return approximate values such as:
This tells you that your subject at 5 m sits roughly in the middle of a 1.4 m wide sharp zone. The background much farther away will be noticeably blurred, which is usually flattering for portraits.
If you stop down to f/8 and keep the other values the same, the calculator will show a much larger depth of field. Both the near and far limits move farther apart, so more of the environment comes into focus. You can use this to include more context in the scene while still keeping your subject sharp.
For the same framing and aperture, smaller sensors tend to produce more depth of field. The table below summarises typical behaviour when you keep composition similar.
| Sensor size | Typical CoC used | Relative depth of field | Practical implications |
|---|---|---|---|
| Full‑frame (35 mm) | 0.03 mm | Shallowest DOF for the same framing and f‑number | Excellent for strong background blur and subject isolation. |
| APS‑C | 0.02 mm | More DOF than full‑frame at same framing | Easier to keep subjects sharp at moderate apertures. |
| Micro Four Thirds | 0.015 mm | Greatest DOF for the same framing | Very convenient for travel and landscape work where you want more of the scene in focus. |
To compare systems fairly, match the angle of view and subject distance, then try equivalent f‑numbers. For example, a 50 mm lens at f/2.8 on full‑frame gives a similar field of view to around 35 mm f/2 on APS‑C or 25 mm f/1.4 on Micro Four Thirds, but the resulting depth of field will still be different.
This depth of field calculator is designed as a practical planning aid, not a substitute for test shots. It makes several simplifying assumptions:
Because of these factors, always confirm critical focus on your camera’s display, especially for macro work, very shallow DOF portraits, or important commercial shoots.
Here are some quick ways to get value from the tool:
By iterating between your settings and the calculated results, you can quickly find a combination that balances background blur, subject sharpness, and available light for the scene in front of you.