Image Tools
Depth of Field Calculator
Near/far focus limits and hyperfocal distance for any lens, aperture & sensor.
Updated July 8, 2026
How to use the depth of field calculator
- 1Pick your sensor format, lens focal length, and aperture.
- 2Enter the subject distance.
- 3Read the near/far limits and watch the sharp-zone bar against your subject.
- 4For landscapes, focus at the hyperfocal distance and stop worrying.
Common uses
- Planning portrait apertures so both eyes land inside the focus zone
- Finding the hyperfocal distance for front-to-back sharp landscapes
- Understanding whether f/1.8 is usable or too thin at close range
- Comparing depth of field across camera formats before buying
Frequently asked questions
What actually controls depth of field?
Four things: aperture (wider = thinner), focal length (longer = thinner), subject distance (closer = thinner), and sensor size (larger = thinner at equivalent framing). Portrait bokeh is all four stacked: long lens, wide open, close subject, big sensor. Landscape sharpness is the reverse.
What is hyperfocal distance and why do landscape shooters care?
The focus distance that maximizes what's sharp: focus there and everything from half that distance to infinity falls within acceptable focus. A 24mm lens at f/8 on full frame has a hyperfocal around 2.4m — focus at that bush, not the mountains, and the whole scene is sharp.
Why does my phone struggle to blur backgrounds?
Tiny sensor with a short real focal length — both push depth of field enormous, which is why phone 'portrait mode' fakes blur computationally. The same physics is why phones nail sharp landscapes without trying.
What does 'acceptably sharp' actually mean?
Sharpness falls off gradually from the focus plane; the limits mark where blur exceeds the circle of confusion — the size a blur spot can reach before a normal-size print viewed normally shows it. Giant prints or heavy crops effectively shrink the zone; the numbers are a standard convention, not a cliff.
About this tool
The depth of field calculator computes exactly what will be sharp: enter sensor size, focal length, aperture, and subject distance, and read the near limit, far limit, total in-focus depth, and hyperfocal distance — with a visual bar showing the sharp zone relative to your subject. The four levers are all here to experiment with: wider apertures, longer lenses, closer subjects, and larger sensors each thin the zone. Focus at or past the hyperfocal distance and the calculator flags the landscape photographer's payoff: everything from half that distance to infinity is acceptably sharp. Standard circle-of-confusion values per sensor format.
Like most tools on UtilityBase, the depth of field calculator runs entirely in your browser — nothing you enter is uploaded or stored on a server. It's free to use with no account required. Browse more image tools here.
Was this tool helpful?
Related tools
Print Size Calculator
Can you print that photo at 8×10? Pixels → max print size and quality per size.
Image Tools
EXIF Viewer & Remover
See a photo's hidden metadata — including GPS location — and strip it all.
Image Tools
Aspect Ratio Calculator
Solve missing dimensions for 16:9, 4:3, and any custom aspect ratio.
Calculators
Image Resizer
Resize images to exact pixels — right in your browser, nothing uploaded.
Image Tools
Background Remover
AI background removal that runs on your device — no upload, no watermark, no limits.
Image Tools
Video Compressor
Shrink videos for Discord, email, or storage — without uploading them anywhere.
Image Tools