IDEAFACTORYS LAB · Utility

Depth of Field Calculator

Hyperfocal distance and depth of field from f, N, s, and an editable circle of confusion.

Focal length, f-number, focus distance, and CoC

The common thin-lens formulas, consistent with Wikipedia Depth of field, are used after units are unified to millimetres: H = f² / (N × c) + f; near limit DN = (H × s) / (H + s − f); far limit DF = (H × s) / (H − s + f). If s ≥ H, the far limit is infinity. Total DoF is DF − DN when DF is finite. CoC presets use the common viewing/print convention “sensor diagonal ÷ 1500” (full-frame often rounded to 0.030 mm, APS-C about 0.019 mm, MFT about 0.015 mm). That is not a physical constant; c remains editable. This is a thin-lens approximation; error grows in macro, and it is not a lab measurement of a real lens. Sources: https://en.wikipedia.org/wiki/Depth_of_field and https://en.wikipedia.org/wiki/Circle_of_confusion .

CoC presets are a viewing/print convention, not a physical constant and not a brand-official value. The thin-lens approximation is less accurate in macro.

Hyperfocal distance and depth of field