Depth of field calculator
Enter the lens, the f-stop, the distance to your subject and the sensor, and see how much of the shot will be acceptably sharp. Metres or feet. Circle of confusion is calculated for you, or set your own.
Quick answer. Hyperfocal distance is H = f²/(N × c) + f, where f is the focal length, N the f-stop and c the circle of confusion. Focus at H and everything from about half of H to infinity is acceptably sharp.
Updated December 3, 2026
How to use it, for free, with no upload
- Pick the sensor you shoot on, or choose Custom and type its width and height.
- Enter the lens focal length, the f-stop, and the distance from the camera to the subject you are focusing on.
- Read the near and far limits. Everything between them looks acceptably sharp at normal viewing.
Also useful for: hyperfocal distance, shallow depth of field, how much is in focus, focus pulling prep, lens and aperture choice, cinematic blur.
What this tool does
- Covers film, Super 35, APS-C, Micro Four Thirds and custom sensors
- Shows depth in front of and behind the subject separately
- Hyperfocal distance included
- Your numbers stay in the page
The calculation uses the standard thin-lens formulas: hyperfocal distance H = f squared / (N times c) + f, near limit = s(H - f) / (H + s - 2f), far limit = s(H - f) / (H - s). Here f is focal length, N the f-number, c the circle of confusion and s the focus distance. Once the subject is at or beyond the hyperfocal distance, the far limit is infinity. The result is a guide to what looks acceptably sharp, not a hard edge: focus falls off gradually, and how sharp is sharp enough depends on screen size and viewing distance.
Questions
What is the circle of confusion?
It is the largest blur spot that still looks like a point at normal viewing. A smaller sensor needs a smaller one, because its image is enlarged more. This tool defaults to the sensor diagonal divided by 1500, a common convention, and you can type your own value to match a different standard.
Why does a bigger sensor give shallower depth of field?
To frame the same shot, a larger sensor needs a longer lens or a closer position. Both shrink depth of field at the same f-stop. This is a large part of why full frame and large-format cameras are associated with a softer background.
What does hyperfocal distance mean for filming?
If you focus at the hyperfocal distance, everything from about half that distance to infinity is acceptably sharp. It is useful for run-and-gun work and wide landscapes where you cannot pull focus.
Why does the far limit say Infinity?
When you focus at or beyond the hyperfocal distance, the sharp zone extends to infinity. Open the aperture, use a longer lens or move closer if you want a background that falls off.