Depth of Field Calculator

Use the Depth of Field Calculator to estimate near and far focus limits, total depth of field, and the hyperfocal distance for any combination of focal length, aperture, sensor format, and subject distance. The calculator is for everyday studio and product photography on full-frame and Canon APS-C cameras, with metric and imperial units.

PhotoRobot Depth of Field Calculator

Estimate near & far focus limits, total DoF and hyperfocal distance.

Settings

mm

Slider covers the typical studio range (16–300 mm). For wider or longer lenses, type any value (4–1200 mm) into the field above.

Aperture f/16
cm
Distance measured from

Measured from the focal-plane mark ⦵ on the camera body, the same reference lens specs use for minimum focus distance. The calculator converts it to the lens-to-subject distance (thin-lens equation), and near/far limits are shown from the sensor mark too. See the diagram.

mm

Only to show the distance from the front of the lens; it does not change the DoF. Canon RF: 20 mm flange + lens length from the spec sheet (EF: 44 mm). Zoom lenses get longer as you zoom.

Results

Total depth of field
34 cm
Near limit 86 cm
Far limit 120 cm
In front of subject 14 cm
Behind subject 20 cm
Hyperfocal distance 531 cm
Lens to subject (used in formula) 95 cm
Circle of confusion 0.030 mm

Standard thin-lens DoF model: H = f²/(N·c) + f. Values may differ slightly from real lenses due to diffraction, focus breathing and individual lens design.

Lens or sensor mark: where do you measure subject distance from?
Two ways to measure subject distance Side view of a camera, lens and product. The orange dimension runs from the focal-plane mark on the camera body, which marks the sensor, to the subject (S). The black dimension runs from the lens's optical center to the subject (u). The gap between sensor and optical center is v, so S equals u plus v. sensor optical center subject S · from the sensor mark v front of lens u · from the lens

Sensor mark (S). The ⦵ symbol on the top of the camera body marks the sensor plane. Lens specifications measure the minimum focus distance from it, and it is the easiest point to measure from on a PhotoRobot setup with a tape.

Lens (u). Depth of field formulas need the distance from the lens's optical center to the subject. When you pick Sensor mark, the calculator splits S into u + v with the thin-lens equation 1/u + 1/v = 1/f: u = S/2 · (1 + √(1 − 4f/S)). Near and far limits and the hyperfocal distance are then shown from the sensor mark as well.

The difference matters at product distances: a 105 mm lens at f/16 with the sensor mark 918 mm from the subject gives 4.8 cm of depth of field. Entering the same 918 mm as a distance from the lens would show 6.5 cm, about a third too much.

The conversion assumes a thin lens. Real lenses focus internally and their optical center is not exactly where the diagram shows it, so treat results close to the minimum focus distance (macro) as estimates. A thin lens cannot focus closer than 4 × the focal length from the sensor (1:1). If you measured from the front of the lens, add the sensor mark to front of lens length to get S.

What is hyperfocal distance — and why does it matter for studio work?

Hyperfocal distance (H) is the closest distance at which a lens can be focused while still keeping objects at infinity acceptably sharp. Focus exactly on H and depth of field stretches from H/2 all the way to ∞ — the trick landscape photographers use to keep both the foreground and the horizon sharp.

For studio and product photography it's mostly an indicator: as long as your subject distance is far smaller than H (which it usually is — H grows with focal length squared and shrinks only with aperture), DoF stays symmetric-ish around the subject. When the subject distance approaches H, the far limit runs to infinity and the calculator will show ∞.

Practical takeaway for product/jewelry work: focus on the front-most detail you need sharp and use the "Near limit" / "Far limit" rows above (or the Depth of Field Chart) to confirm the rest of the object fits inside DoF.

Additional Depth of Field Resources

For additional resources on calculating depth of field for PhotoRobot customers, refer to the following user manuals. Find information on depth of field in regards to PhotoRobot recommended cameras, understanding camera resolution, and in terms of PhotoRobot studio lighting.