What Depth of Field Really Is
A lens can only focus at one exact distance — everything else is varying degrees of blur. Depth of field is the zone around that focus plane where the blur is small enough that our eyes read it as sharp. "Small enough" is formalized as the circle of confusion: the largest blur spot still perceived as a point, about 0.03 mm on full frame, 0.02 mm on APS-C, smaller still on tiny sensors. Change the sensor and you change the definition of sharp — which is why this calculator corrects for sensor size instead of pretending one formula fits all.
Depth of field is the creative dial of photography. Shallow DoF isolates a subject against creamy bokeh; deep DoF renders a landscape tack-sharp from foreground flowers to distant peaks. Both are the same physics, run in opposite directions.
The Three Controls: Aperture, Focal Length, Distance
Aperture is the strongest lever most photographers touch: f/1.4 gives razor-thin focus, f/16 gives deep focus. Each stop down roughly doubles the depth of field. Focal length matters enormously — double the focal length and depth of field quarters (at the same distance and aperture), which is why telephoto portraits melt backgrounds while phone-camera wides seem sharp everywhere. Focus distance is the quiet giant: halve the distance and DoF quarters too. Macro photographers live inside this brutal math, where depth of field is measured in millimeters and focus stacking becomes mandatory.
Try it on the bench above: set 85mm f/1.8 at 10 feet, then drag the distance to 30 feet and watch the zone explode. Same lens, same aperture — utterly different image.
Hyperfocal Distance: The Landscape Superpower
The hyperfocal distance is the focus distance at which the far limit of depth of field lands exactly at infinity. Focus there, and everything from half the hyperfocal distance to infinity is acceptably sharp — the maximum possible depth of field for that aperture and lens. For a 24mm at f/8 on full frame, it is about 8 feet: focus at 8 feet and the zone runs from 4 feet to infinity.
The formula is H = f²/(N·c) + f, where f is focal length, N the f-number, and c the circle of confusion. You do not need to memorize it — the bench computes it live — but knowing it exists explains why wide lenses and small apertures are the landscape kit: both shrink H dramatically. In the field, the practical method is to focus roughly one-third into the scene, which approximates hyperfocal for typical landscape distances.
The One-Third / Two-Thirds Split
Depth of field is not centered on the focus point. Roughly one-third falls in front and two-thirds behind — the zone diagram above shows this asymmetry live. The split evens out toward 50/50 only at macro distances. This is why focusing on the horizon wastes half your depth of field on the sky (already at infinity) while the foreground goes soft: pull focus forward to about a third of the way into the important depth, and the zone redistributes where it matters.
Sensor Size and the Crop-Factor Truth
Here is the subtlety most calculators fumble: for identical aperture, focal length, and distance, sensor size changes nothing optically — but nobody shoots that way. In practice you frame the same subject, which on a smaller sensor means a shorter focal length or a greater distance, and those deepen depth of field. A Micro Four Thirds shooter at f/2.8 gets roughly the depth of field a full-frame shooter gets at f/5.6 for equivalent framing. Phone photographers get enormous depth of field "for free" from tiny sensors and short lenses — which is exactly why portrait mode is computational blur rather than optics. The bench handles all of this through each sensor's true circle of confusion.
Aperture vs. Sharpness: The Diffraction Trade
Stopping down increases depth of field but eventually softens everything via diffraction — light bending around the aperture blades. Most lenses peak around f/5.6–f/8; beyond f/11–f/16 (sooner on high-resolution sensors), diffraction visibly degrades fine detail even as DoF keeps growing. So "f/22 for maximum sharpness" is a myth: f/22 gives maximum depth of field at reduced overall sharpness. For landscapes, f/8–f/11 plus hyperfocal focusing is the sweet spot; reserve f/16+ for when you truly need the zone and accept the trade.
Portraits: Controlling the Melt
For creamy backgrounds, the recipe is long lens + wide aperture + close distance + separation: an 85mm at f/1.8, subject 10 feet away with the background 30 feet behind, dissolves distractions into bokeh. But watch the near limit — at f/1.4 and close range, depth of field can be under an inch, so focus on the near eye and accept that the far ear goes soft. For groups, stop down: f/4–f/5.6 keeps two rows of faces inside the zone. The bench's near/far readouts tell you exactly how much room your subjects have to lean.
When One Shot Isn't Enough: Focus Stacking
Macro and extreme near-far landscapes defeat single-shot depth of field — physics caps the zone no matter the aperture. Focus stacking shoots a bracket of focus distances and blends the sharp slices in software, delivering impossible depth from foreground to infinity. Many cameras now bracket automatically; the technique pairs naturally with this calculator, which tells you how far apart to space the slices (overlap each frame's far limit with the next frame's near limit).
Circle of Confusion, Demystified
The circle of confusion sounds like philosophy but it is just print math. When a point of light is slightly out of focus, it renders as a small disc — the circle of confusion. If that disc is tiny enough, your eye reads it as a sharp point at normal viewing distance. The standard assumes an 8×10-inch print viewed from about 10 inches by someone with average vision, which works out to roughly 0.03 mm on full frame. Smaller sensors enlarge their images more to reach the same print size, so their acceptable disc shrinks proportionally: 0.02 mm for APS-C, 0.015 mm for Micro Four Thirds, down to about 0.006 mm for a phone sensor. Pixel-peep at 100% on a high-resolution sensor and you will see blur the standard calls "sharp" — the standard predates 60-megapixel files, so treat the calculator's zone as the generous definition and stop down a touch more when critical sharpness matters.
Phone Cameras and Computational Bokeh
Phone cameras live at the extreme end of the depth-of-field spectrum: tiny sensors, short focal lengths, and enormous inherent depth of field. A phone at f/1.8 has roughly the depth of field of a full-frame camera at f/11 or smaller for the same framing — which is why everything from your coffee to the mountains looks sharp, and why portrait mode exists. Portrait mode is not optics; it is a depth map estimated from dual cameras or machine learning, with blur painted on synthetically. It has improved enormously, but it still struggles with glasses, hair wisps, and complex edges where true optical blur would be perfect. Understanding real depth of field helps you see through the simulation: when the phone nails it, it is imitating exactly the physics this calculator models.
Putting It All Together
The workflow: pick your sensor, set the lens and aperture you want to shoot, dial the distance, and read the zone. If the far limit will not reach your background, either stop down, shorten the lens, or focus at the hyperfocal distance the bench displays. Depth of field stops being guesswork the moment you can see the numbers move — drag the dials above until the behavior is in your fingers, then take it outside.