Aperture, distance, focal length: what really matters
At the same framing, depth of field depends mostly on the f-number and the sensor size: a 35 mm from 2 m and an 85 mm from 5 m at f/2 give nearly the same depth on the subject. What changes is the background: the longer lens magnifies it, so it looks more blurred and closer.
Hyperfocal distance in practice
With a 24 mm at f/11 on full frame, the hyperfocal distance is about 1.8 m: focus there and everything from about 0.9 m to infinity is acceptably sharp. Stopping down further adds depth but diffraction softens the whole picture beyond f/16 on most sensors.
Small sensors and smartphones
A smartphone sensor is so small that its wide lens keeps almost everything sharp, which is why phones simulate background blur in software (portrait mode). Choose the smartphone format to see the real optical depth of field of a phone camera.
How it is calculated
The calculator uses the standard thin-lens formulas, with f the focal length, N the f-number, c the circle of confusion and s the focus distance: hyperfocal distance H = f² / (N·c) + f; near limit = s·(H − f) / (H + s − 2f); far limit = s·(H − f) / (H − s), or infinity when you focus at or beyond H — everything from H/2 to infinity is then acceptably sharp.
The circle of confusion is the sensor diagonal divided by 1442 — 0.030 mm on full frame, 0.020 mm on APS-C, 0.015 mm on Micro Four Thirds — the usual criterion for a print viewed at a normal distance. Example: 50 mm at f/2.8 focused at 3 m on full frame gives H ≈ 29.8 m and a sharp zone from 2.73 m to 3.33 m (60 cm), the same values as the reference DOFMaster tables, which our tests check.
The background blur is the size of the blur spot of a point behind the subject: f² × |d − s| / (N × d × (s − f)) for a point at distance d. The preview applies it to each layer of the scene at its real distance, which is why moving the background away changes the blur as much as the f-number does.