Depth of Field Calculator – Sharp Focus Range for Any Lens and Aperture

Use the free tool below: your data never leaves your browser — all work happens on your device, and nothing is uploaded to any server.

What depth of field really means

Depth of field is the zone in a photo that looks acceptably sharp, from the nearest sharp point to the farthest sharp point. It is not a hard wall: sharpness fades gradually on both sides of the focus point, and what counts as sharp depends on how large you view or print the photo. This calculator gives you the near limit, the far limit, and the total depth of field from your focal length, aperture, focus distance, and sensor, using the standard optical formulas. It is a planning tool for choosing settings before you shoot, not a promise about any single photo.

The sensor enters through the circle of confusion, the largest blur spot that still looks like a point at normal viewing size. A full-frame sensor allows a larger circle of confusion than a smaller sensor, because its image needs less enlargement for the same print. That is why the calculator asks for your sensor: the same lens and aperture give different depth-of-field numbers on different sensors, and ignoring the sensor gives numbers that do not match your camera.

A worked example

Take a 50 mm lens at f/2.8, focused at 3 m, on a full-frame camera. The hyperfocal distance is about 29.8 m, the near limit is about 2.72 m, and the far limit is about 3.34 m, giving a depth of field of about 0.62 m. That means a subject at 3 m is sharp, and objects from roughly 2.7 m to 3.3 m look sharp too, while things well outside that range blur. For a portrait, that zone is generous: the face is sharp and the background melts away.

Now stop down to f/8 at the same distance and focal length. The hyperfocal distance drops to about 10.5 m, and the depth of field grows to roughly 1.7 m, from about 2.3 m to 4.0 m. The background is still softer than the subject, but far less blurred, and a group of people standing in a row is more likely to be sharp. This trade-off is the heart of depth-of-field control: aperture buys depth, but it costs light, so you must balance it against shutter speed and ISO.

When the far limit becomes infinity

If you focus at or beyond the hyperfocal distance, the far limit becomes infinity, meaning everything from the near limit to the horizon looks acceptably sharp. That is why landscape photographers often focus at the hyperfocal distance rather than at infinity itself: focusing at infinity wastes half the depth of field behind the subject, where there is nothing to photograph, while focusing at the hyperfocal distance pulls the near limit as close as possible. The calculator shows the hyperfocal distance for every combination, so you can use it directly in the field.

Close focusing breaks the usual intuition. At macro distances, depth of field can be a few millimetres even at f/11, because distance dominates the formula. If you photograph insects or small products, expect to focus-stack, which means taking several photos at different focus distances and combining them, rather than hoping one aperture will cover the subject. The calculator will show you just how thin the zone is, so you can plan the stack instead of discovering the problem at home.

Checking sharpness in real photos

Remember that these are educational optical calculators. Depth-of-field figures are estimates, not guarantees of sharpness, and circle-of-confusion values are conventional reference values that vary by sensor and print size. Lens quality, diffraction at very narrow apertures, focus errors, and camera shake all affect real sharpness too. At f/16 and beyond, diffraction can soften the whole image even though the calculated depth of field grows, so most lenses are sharpest around f/5.6 to f/11.

Frequently asked questions

Why is depth of field deeper behind the subject than in front? The formula gives roughly one third of the zone in front of the focus point and two thirds behind it, though the exact split changes with distance. Focus slightly in front of the middle of your subject zone to use the zone well.

Does a crop sensor really change depth of field? At the same lens, aperture, and distance, the smaller circle of confusion gives a deeper calculated zone, but photographers usually step back or use a shorter lens on a crop sensor to match framing, which changes the result again. Compare like with like: same framing, not just same lens.

What aperture should I use for groups? Start around f/5.6 to f/8 for a single row of people, and go narrower for two rows. Check the calculator with your focal length and distance before the shoot, and test with a real group if the event matters.

Use the calculator above before important shoots, note the near and far limits for your lens and aperture, and check focus at 100 percent afterwards. Knowing your zone before you press the shutter is what turns depth of field from luck into a choice.

Related calculators

1 thought on “Depth of Field Calculator – Sharp Focus Range for Any Lens and Aperture”

  1. Pingback: Hyperfocal Distance Calculator - Focus from Half That Distance to Infinity

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top