Work out exactly how much of your scene will be in sharp focus before you press the shutter. Enter your focal length, aperture, the distance to your subject, and pick a sensor size, and this calculator returns the near focus limit, the far focus limit, and the total depth of field. It also shows the hyperfocal distance for your settings, which is the closest focus point that keeps everything from half that distance to infinity acceptably sharp. Depth of field grows with a smaller aperture, a shorter focal length, and a greater subject distance, so the numbers here help you plan portraits with soft backgrounds or landscapes that stay crisp front to back. The math uses the standard circle of confusion for each sensor format. Everything runs in your browser, so nothing you enter is sent anywhere.
It depends on focal length, aperture, subject distance, and sensor size through the circle of confusion. This tool combines all four to compute the near limit, far limit, and total sharp zone.
A narrower aperture, meaning a higher f-number, bends light through a smaller opening, which widens the range of distances that appear acceptably sharp.
Yes, sensor size sets the circle of confusion used in the math, so a smaller sensor at the same settings generally shows more apparent depth of field.
Work out exactly how much of your scene will be in sharp focus before you press the shutter. Enter your focal length, aperture, the distance to your subject, and pick a sensor size, and this calculator returns the near focus limit, the far focus limit, and the total depth of field.
Yes. Depth of Field Calculator is completely free, with no sign-up and no usage limits.
Yes. Depth of Field Calculator runs in any modern web browser. There is nothing to download or install.
Yes. Depth of Field Calculator runs entirely on your device in your browser, so nothing you enter is uploaded to a server.
Link this tool from a README, doc or site. The badge links back to this page.
[](https://yourhack.ai/depth-of-field-calculator)