Depth of Field Calculator
Exactly how much of your scene will be sharp? Focal length, aperture, distance and sensor size decide it — this calculator turns them into near and far focus limits, in the open.
Enter your numbers
35mm-equivalent focal length 50.0 mm · Equivalent aperture f/1.8
Your results
Total depth of field
—
—
Enter your numbers.
Read this result with care: Results use standard circle-of-confusion values per format and the thin-lens model; printed or pixel-level viewing at 100% will look less forgiving than these figures. Focus distance is measured from the sensor plane.
How it works
Depth of field is worked out from the standard thin-lens geometry, using a circle of confusion (CoC) for each sensor format — the largest blur spot that still looks sharp at a normal viewing size:
All distances are computed in millimetres internally and shown in your chosen unit. The equivalent focal length and equivalent aperture translate your settings to full frame: multiply both by the crop factor and the depth of field (and framing) match. That is why a 25mm f/1.4 lens on Micro Four Thirds behaves, for depth of field, like a 50mm f/2.8 on full frame.
Watch how the depth splits around your focus point, because it is not fixed. At portrait distances it is nearly even — the 50mm example below puts about 48% of the depth in front of the focus point and 52% behind. Focus farther away and the balance stretches toward the textbook one-third/two-thirds, until at the hyperfocal distance the far limit runs off to infinity entirely. All distances here are measured from the sensor plane — the small circle-and-line mark on the camera body — not from the front element of the lens.
The category is assigned by comparing the unrounded focus distance with the hyperfocal distance, and the distances shown are rounded to two decimal places.
Worked example: a 50mm portrait at two metres
Full frame, 50mm at f/1.8, focused on a subject 2 metres away: the calculator puts the near limit at 1.92 m and the far limit at 2.08 m — a total depth of field of 0.16 m. Sixteen centimetres is the whole sharp budget: focus on the near eye and the far eye is already softening, which is precisely the look portrait photographers are buying with a fast 50.
Stop down to f/2.8 and the zone grows to 0.25 m; at f/5.6 it reaches 0.51 m — enough for a small group's staggered heads. Same lens, same distance, three different photographs, chosen with one ring on the lens.
Depth of field at 2 metres — full frame
Total depth of field for three common focal lengths at three apertures, focused at 2 m. Every cell is this calculator's own output:
| Focal length | f/1.8 | f/2.8 | f/5.6 |
|---|---|---|---|
| 35mm | 0.34 m | 0.53 m | 1.12 m |
| 50mm | 0.16 m | 0.25 m | 0.51 m |
| 85mm | 0.06 m | 0.09 m | 0.17 m |
Read down a column and the focal-length lever is obvious: at f/1.8 the 85mm keeps just 6 cm sharp where the 35mm keeps 34 cm.
Frequently asked questions
What is depth of field?
The zone in front of and behind your focus point that appears acceptably sharp. It stretches roughly one third in front of the focus point and two thirds behind it, and it grows as you stop down, use a shorter lens, or focus farther away.
What is hyperfocal distance?
The focus distance that maximises depth of field for a given aperture: focus there and everything from half the hyperfocal distance to infinity is acceptably sharp. Landscape photographers use it to keep both foreground and horizon in focus.
Why does sensor size change depth of field?
To frame the same shot, a smaller sensor needs a shorter focal length, and shorter focal lengths naturally produce deeper depth of field at the same f-number. The equivalent aperture — your f-number multiplied by the crop factor — is the fair comparison across formats.
Does a wider aperture always mean thinner depth of field?
At the same focal length and distance, yes. But magnification is what really drives it: step closer or zoom in and depth of field thins even at the same aperture, which is why macro photography has almost none to spare.
Why do my photos look softer than the calculator suggests when I zoom to 100%?
Because the circle of confusion behind these numbers assumes a normal print or screen viewed at a normal distance. Inspecting at 100% on a high-resolution sensor is a much stricter test — effectively a smaller circle of confusion — and it shrinks the zone that looks sharp. Treat the calculator's depth as 'sharp at ordinary viewing sizes'; pixel-peepers should stop down an extra stop or two.
Does stepping closer change depth of field even at the same aperture?
Yes, dramatically — magnification is the hidden variable. Halve the focus distance and depth of field falls to roughly a quarter, at any aperture. That is why a head-and-shoulders portrait at 85mm f/2.8 can have thinner depth than a full-length shot at f/1.8, and why macro work at life-size magnification measures depth in millimetres.
Embed this calculator
Add this free calculator to your own website — no signup needed, attribution appreciated. The embedded version is ad-free and links back to CalcKitHub. See all 27 embeddable calculators on the free widgets page.
Next steps
PSU Wattage Calculator
Add up your parts and get a recommended power supply size with honest headroom.
HardwareDrone Flight Time Calculator
Battery size, voltage and power draw, turned into realistic minutes in the air.
WidgetsFree Calculator Widgets
Embed any of these hardware calculators on your own site, free.
The equivalent-aperture idea, in plain English
F-number arguments fill photography forums because the f-number alone never tells the whole story. f/1.8 on a phone-sized sensor, f/1.8 on Micro Four Thirds and f/1.8 on full frame let the same amount of light through per unit area — but they do not produce the same photograph. Framing the same scene forces different focal lengths, and focal length is a depth-of-field lever just as strong as aperture.
The equivalent aperture cuts through it: multiply the f-number by the crop factor and you get the full-frame aperture that would give the same depth of field at the same framing. It is not a trick and it does not make smaller formats worse — deeper depth of field is exactly what you want for landscapes, video and group photos. It just lets you compare honestly, which is why this calculator shows it on every result.
How we calculate & limitations
Assumptions & limitations: Results use the standard circle-of-confusion values per format (full frame 0.029mm, APS-C 0.019-0.020mm, Micro Four Thirds 0.015mm, 1-inch 0.011mm, medium format 0.043mm) and the thin-lens model; printed or pixel-level viewing at 100% will look less forgiving than these figures. Focus distance is measured from the sensor plane. Lens breathing, field curvature and focus shift on real lenses can move the limits slightly.