Estimate near and far acceptable-focus limits from lens, aperture, focus distance, and sensor format.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The thin-lens model derives circle of confusion, hyperfocal distance, and near/far limits from the supplied inputs. At or beyond hyperfocal focus, the far limit is treated as infinity.
Focal length mm: 50 Aperture: 2.8 Subject distance m: 5
Near limit m: 4.29 Far limit m: 6.00 Total depth m: 1.71 Hyperfocal distance m: 29.81 Circle of confusion mm: 0.03 Crop factor: 1
Portrait photographers check blur, macro setups estimate narrow ranges, and landscapes choose focus near hyperfocal.