{{ summary.heading }}
{{ summary.primary }}
{{ summary.detail }}
{{ badge.label }}
Camera Near {{ visualScene.nearValue }} Focus {{ visualScene.focusValue }} Far {{ visualScene.farValue }} {{ visualNumericMarker }}
Depth of field inputs
Start from portrait, video, product, macro, landscape, street, or wildlife focus planning values.
Choose the working units for distances and result displays.
Pick the closest camera format; use Sharpness target or Advanced for stricter output.
Use landscape for horizontal stills/video, portrait for vertical framing.
Choose how hard the final image will be inspected: screen, print, crop, or custom CoC.
Common full-frame planning uses about 0.030 mm; critical crops may need less.
mm
Enter the actual lens marking in millimeters.
mm
Enter the working f-stop, for example 1.8, 2.8, 5.6, 8, or 11.
f/
Use the focus distance, not the distance from the front of the lens hood.
Set a wall, backdrop, horizon, or product background behind the focus point.
Optional framing check; keep a realistic subject height to estimate vertical frame coverage.
Use 0 to ignore motion, or enter expected subject sway, breathing, or handheld set drift.
A wider ladder helps compare bokeh tradeoffs, diffraction risk, and hyperfocal strategy.
Use this to compare a wider aperture, another lens, or a changed camera position against the current setup.
Setting B uses the same sensor, sharpness target, subject size, and background plane.
f/
Use the physical lens marking in millimeters.
mm
Use the Setting B focus distance from camera to subject.
Tune the scene preview for teaching, screen sharing, or quick visual checks.
Metric Value Detail Copy
{{ row.metric }} {{ row.value }} {{ row.detail }}
Cue Status Planning note Copy
{{ row.cue }} {{ row.status }} {{ row.note }}
Aperture Near Far Total DOF Blur ratio Copy
{{ row.aperture }} {{ row.near }} {{ row.far }} {{ row.total }} {{ row.blur }}
Metric Current Setting B Change Copy
{{ row.metric }} {{ row.current }} {{ row.comparison }} {{ row.change }}
Bokeh preview Background blur is simulated over a generated photo; the sharp window and focus band stay tied to the calculation.
{{ panel.title }} {{ panel.setupText }}
{{ panel.apertureText }}
{{ panel.focusText }}
{{ panel.dofText }} {{ panel.blurText }}
{{ panel.deltaText }}
Frame item Value Detail Copy
{{ row.metric }} {{ row.value }} {{ row.detail }}
Marker Distance Detail Copy
{{ row.marker }} {{ row.distance }} {{ row.detail }}
{{ jsonOutput }}
Customize
Advanced
:

Focus has one exact plane, but photographs are judged across a range. Detail just in front of or behind the focus distance may still look sharp because the blur is small enough for the final viewing size. Depth of field names that acceptable-sharpness range, not a hard wall where sharpness suddenly starts or stops.

The judgment depends on the circle of confusion, usually shortened to CoC. A small blur spot on the sensor may still be seen as a point in a web image, but the same spot can look soft in a large print or tight crop. That is why sensor format, inspection size, and sharpness target can change the answer even when lens, aperture, and focus distance stay the same.

Common depth of field decisions and what changes them
Decision What changes the answer Common mistake
Portrait separation Wide aperture, close focus, longer lens, and background distance. Assuming blur strength also guarantees both eyes are sharp.
Product or macro detail Magnification, aperture, subject depth, and focus placement. Stopping down without checking diffraction, motion, or focus stacking needs.
Landscape or street focus Hyperfocal distance, near limit, aperture, and viewing target. Seeing infinity in the far limit and forgetting the foreground near limit.
Video close-up Subject sway, operator drift, sensor format, and inspection size. Planning from a still frame while the actor or camera keeps moving.
Camera, near limit, focus plane, far limit, sharp band, and blur zone in a depth of field diagram.

Several familiar choices pull the range in opposite directions. Opening the aperture gives stronger separation but leaves less room for focus error. Stopping down makes the focus band wider but may require more light, a slower shutter, higher ISO, or a decision about diffraction. Moving closer narrows the range quickly, which is why macro and close portrait work often demand stricter focus discipline than a landscape at the same f-number.

Hyperfocal distance is useful, but it is easy to overread. Focusing at or beyond the hyperfocal point can push the far limit to infinity under the chosen CoC, yet the foreground still begins at a near limit. A landscape can have infinity covered while a nearby rock or flower remains outside the acceptable range.

Depth of field is a planning estimate for geometry and viewing assumptions. It does not measure autofocus accuracy, lens field curvature, subject movement, stabilization, shutter speed, sharpening, diffraction, or how a viewer will judge the final image. The number is strongest when it is paired with test frames, magnified review, and a realistic idea of how the photograph will be shown.

How to Use This Tool:

Start from the camera setup you are most likely to shoot, then use the result tabs to decide whether the focus band is wide enough for the subject and final use.

  1. Choose a Setup preset when one is close to the job, or choose Custom when you want the current values to stay untouched. Presets load editable starting values for portraits, video close-ups, product work, macro, landscape, street focus, and wildlife.
  2. Set Units, Sensor format, Frame orientation, and Sharpness target. The sharpness target changes the CoC, so the near limit, far limit, and hyperfocal distance can change even with the same lens and aperture.
  3. Enter the actual Focal length marked on the lens, not the full-frame equivalent value. Add the working Aperture, the camera-to-subject Subject distance, and a Background distance that is behind the focus point.
  4. Use Subject height in frame when composition matters. The Framing tab reports field width, field height, angle of view, full-frame equivalent focal length, and vertical frame coverage.
  5. Open Advanced when the shot needs a tighter plan. Subject motion allowance checks whether focus tolerance covers expected sway or drift, Aperture ladder compares nearby f-stops, and Compare setup adds Setting B for another aperture, lens, or focus distance.
  6. Read the summary first, then open Focus Brief for near, focus, far, total depth of field, background blur ratio, and CoC. Use Planning Guide for warnings such as very thin focus tolerance, uncovered motion allowance, subtle background separation, or subject coverage above 100%.
  7. If the calculator asks you to check the camera setup, fix the first invalid value before interpreting the results.
    Common causes are a non-positive focal length or aperture, a subject distance too close to the focal length, a background distance at or in front of the subject, a negative subject height, or a custom CoC at zero or below.

Interpreting Results:

The most important fields are Near focus limit, Focus distance, Far focus limit, and Total depth of field. The focus distance is the exact plane you selected. The near and far limits are the estimated boundaries where blur stays within the chosen CoC. Values outside that range do not become instantly unusable, but the blur is no longer within the selected sharpness target.

A far limit of infinity means the focus distance has reached the hyperfocal condition for the current aperture, focal length, and CoC. It does not mean the whole scene is sharp. Check the near limit before relying on a foreground rock, product edge, or person near the camera.

Depth of field result cues and practical responses
Cue Boundary used here Practical response
Very thin focus tolerance Total depth of field is under 8% of focus distance. Stop down, back up, reduce focal length, or plan focus bracketing.
Moderate focus tolerance Total depth of field is at least 8% and under 25% of focus distance. Keep the critical detail on the focus plane and watch motion.
Strong background blur Background blur ratio is at least 8x CoC. Expect clear separation, but still judge lens character and background texture.
Subject exceeds frame Subject frame coverage is above 100% vertical. Back up, use a wider lens, or accept that the entered subject will crop.
Motion allowance uncovered The narrower tolerance around focus is less than the entered motion allowance. Increase the f-number, back up, or reduce focal length unless shallow blur matters more.

Use Bokeh Preview and Focus Map as planning aids, not as proof of final image quality. A high blur ratio does not guarantee pleasing bokeh, and a broad focus band does not guarantee a sharp file if the lens, shutter speed, focus method, or final enlargement cannot support the shot.

Technical Details:

Classical depth of field math models a lens as a simple optical system with a chosen acceptable blur diameter. The equations are sensitive to focus distance because small focus changes at close range move the near and far limits quickly. That is why macro and close portrait work can have a focus band measured in millimeters or centimeters, while a stopped-down landscape may stretch many meters.

Sensor format affects the default CoC and the field-of-view estimate. It does not magically change the optics of the same physical lens. The actual focal length, aperture f-number, focus distance, and CoC drive the sharpness range; sensor width and height then determine framing measurements such as angle of view, field width, and subject coverage.

Formula Core:

The focus-limit equations use millimeters for focal length, focus distance, CoC, and derived distances. User-entered meters, centimeters, feet, and inches are converted to millimeters before the calculation.

H = f2Nc+f Dnear = s(H-f)H+s-2f Dfar = s(H-f)H-s when H>s Dtotal = Dfar-Dnear
Depth of field formula symbols
Symbol Meaning Mapped input or output
f Physical lens focal length. Focal length, in millimeters.
N Aperture f-number. Aperture.
c Circle of confusion on the sensor. Sensor format plus Sharpness target, or custom CoC.
s Camera-to-subject focus distance. Subject distance.
H Hyperfocal distance. Hyperfocal distance in Focus Brief and Marker Ledger.

For a full-frame 85 mm lens at f/1.8 focused at 2.2 m with a large-print CoC of about 0.021 mm, the hyperfocal distance is about 191 m. The near limit is about 2.18 m, the far limit is about 2.22 m, and the total depth of field is about 4.9 cm. The front and rear tolerance are only about 2.4 cm and 2.5 cm, so a small subject sway can matter.

Sharpness Targets:

Sharpness profiles scale the sensor format's baseline CoC. A smaller CoC makes the standard stricter and reduces the reported depth of field.

Sharpness target circle of confusion multipliers
Sharpness target CoC multiplier Meaning
Screen preview / forgiving 1.35 Allows a larger blur circle for smaller or more forgiving viewing.
Standard print / normal viewing 1.00 Uses the sensor format's baseline planning value.
Large print 0.70 Requires smaller blur circles for more demanding enlargement.
Critical crop / fine detail 0.50 Uses a stricter CoC for close inspection or heavy cropping.
Custom circle of confusion Entered value Uses the positive millimeter value supplied by the user.

Blur and Framing Estimates:

Background blur is estimated for one entered background plane by comparing image distance at the focus plane with image distance at the background plane. The result is shown as a sensor blur diameter and as a multiple of the selected CoC.

v(d) = fdd-f b = |f/Nvobject(vobject-vfocus)| blur ratio = bc
Framing and boundary calculations
Quantity Rule Interpretation limit
Far limit Reported as infinity when H is less than or equal to focus distance. The near limit still decides where acceptable sharpness begins.
Field width Subject distance times sensor width divided by focal length. An estimate for planning composition, not a calibrated lens profile.
Field height Subject distance times sensor height divided by focal length. Frame orientation swaps which sensor dimension is vertical.
Subject coverage Subject height divided by field height, multiplied by 100. Values above 100% mean the entered subject height exceeds the vertical frame.
Full-frame equivalent Physical focal length multiplied by the selected crop factor. Useful for framing comparison, not for the focus-limit formula itself.

Visible distances are rounded for readability after calculation. Metric output can switch between millimeters, centimeters, meters, and kilometers by size; imperial output switches between inches and feet. Infinite far limits remain explicit so they are not mistaken for a large finite distance.

Accuracy Notes:

The result is an optical planning estimate. It assumes classical depth of field equations, one selected CoC, and a geometric background blur estimate. Real images can differ for reasons the equation cannot see:

  • Autofocus error, manual focus drift, shutter speed, stabilization, and subject movement can waste a mathematically adequate focus band.
  • Diffraction, aberrations, field curvature, focus breathing, and sample variation can change apparent sharpness across the frame.
  • The bokeh preview visualizes relative blur strength. It does not model aperture blade shape, optical correction, highlight texture, or foreground blur character.
  • Close macro work can need focus stacking or specialized optics because ordinary depth of field formulas are only a planning guide at high magnification.

Advanced Tips:

  • Keep Focal length as the physical lens marking. Full-frame equivalent is useful for framing comparison, but the focus-limit formula uses the actual millimeter value.
  • Use Sharpness target as an output standard, not a style choice. Large print and Critical crop tighten the CoC and can turn a comfortable focus band into a thin one.
  • Enter Subject motion allowance when filming close-ups, portraits, products, or wildlife. A focus band that looks acceptable at rest may not cover sway, breathing, or operator drift.
  • Set Background distance to the actual wall, trees, backdrop, or horizon you care about. Background blur ratio is only meaningful for that entered plane.
  • Use Aperture Ladder before changing lenses. Stopping down one or two common f-stops often changes near and far limits more predictably than guessing from the bokeh preview.
  • Turn on Compare setup when testing a different aperture, lens, or distance. The Setup Compare rows make it easier to see whether extra depth costs too much background separation.

Worked Examples:

Portrait headshot. A full-frame camera with an 85 mm lens at f/1.8, focused at 2.2 m under the Large print target, reports a Total depth of field near 4.9 cm. The Focus Brief puts the near limit around 2.18 m and the far limit around 2.22 m. That is enough for a deliberately shallow portrait, but the Planning Guide should make you check subject sway and eye placement before shooting wide open.

Tabletop product. A 70 mm lens at f/5.6 focused 80 cm from a small product can still report only about 2 cm of total depth of field under the Critical crop target. If Subject frame coverage is above 100% vertical and the front edge is soft, back the camera up, use a smaller aperture, reduce subject magnification, or plan focus stacking instead of assuming f/5.6 is already deep enough.

Landscape check. A 24 mm lens at f/8 focused at 3 m on full frame can push the far limit far into the scene, but the Near focus limit may still sit around 1.6 m under a large-print target. If the foreground is closer than that, focus farther does not solve the problem. The useful follow-up is to compare the Aperture Ladder or change focus distance until the near limit covers the foreground.

Input warning. If a background is entered at 2.0 m while the subject distance is 2.2 m, the background blur estimate cannot describe a plane behind the subject. Move Background distance beyond the focus distance, then check Background blur plane and Background separation again.

FAQ:

Why did the depth of field change when only the sharpness target changed?

The sharpness target changes the CoC. Screen preview uses a more forgiving value, while Large print and Critical crop use stricter values. A stricter CoC pulls the near and far limits closer to the focus distance.

Should I enter equivalent focal length or the lens marking?

Enter the actual focal length on the lens. The calculator uses Sensor format and crop factor separately for framing and full-frame equivalent reporting.

Why does the far limit sometimes say infinity?

Infinity appears when the focus distance reaches or passes the hyperfocal condition for the current focal length, aperture, and CoC. Check Near focus limit before assuming the foreground is covered.

Does a high background blur ratio mean the bokeh will look good?

No. Background blur ratio measures blur diameter relative to the selected CoC at the entered background plane. Pleasing bokeh also depends on lens design, aperture shape, aberrations, background texture, and highlight placement.

What should I fix when the setup warning appears?

Check for a positive focal length and aperture, a subject distance farther than the focal length, a background distance behind the subject, a non-negative subject height and motion allowance, and a positive custom CoC if Custom circle of confusion is selected.

Glossary:

Circle of confusion (CoC)
The maximum sensor blur spot that still counts as acceptably sharp for the chosen viewing target.
Hyperfocal distance
The focus distance where the far focus limit reaches infinity under the selected focal length, aperture, and CoC.
Focus plane
The exact subject distance where the lens is focused.
Bokeh
The visual character of out-of-focus areas, which is related to blur amount but also depends on lens rendering.
Subject frame coverage
The entered subject height as a percentage of the estimated vertical field at the focus distance.