Skip to main content

Depth of Field (DoF) Tablev1.0.0

Generates a depth-of-field table with apertures as columns and focus distances as rows; each cell reports near, far, and total DoF using H = f²/(Nc) + f. Apertures (f/1.4 to f/32) come from checkboxes, focus distances from a comma-separated list, and CoC from a sensor preset or custom value. Display modes show Total DoF, Near and Far Limits, or all three, with an optional hyperfocal row and configurable precision.

Optics
Cinematography
Reference

Documentation

Generate a depth of field (DoF) reference table for a chosen camera sensor and lens focal length, listing near limit, far limit, hyperfocal distance, and total DoF across every selected aperture and focus distance. Eliminate one-at-a-time calculations and produce a complete lookup grid suited to print or save for field reference.

  • Select the Camera Sensor / Film Format from the dropdown. The sensor size determines the circle of confusion used in every calculation. For unlisted sensors, choose Custom Circle of Confusion and enter the value in millimeters.
  • Enter the Focal Length in millimeters. Fractions (3/4), mixed numbers (1 1/2), decimals, and scientific notation are all accepted.
  • Choose a Distance Unit (feet, meters, inches, or centimeters). The unit applies to both inputs and outputs.
  • Tick or clear Apertures to Include. Each selected f-stop becomes a column. Standard full-stop values from f/1.4 through f/32 are available.
  • Enter Distances as a comma-separated list. Each value becomes a row. Any number of distances in any order is accepted.
  • Click Generate Table or wait for the auto-update. The table displays depth of field information for every combination of aperture and distance.
  • Open Settings to toggle the hyperfocal row, switch between Total DoF, Near & Far Limits, or all three values, and adjust decimal precision.
  • All settings persist locally and via URL query parameters, so a configuration can be shared by copying the page URL.

Each cell uses H = f² / (N × c) + f for hyperfocal distance, with the near limit Dn = s × (H - f) / (H + s - 2f) and the far limit Df = s × (H - f) / (H - s). When the focus distance reaches or exceeds the hyperfocal point, the far limit becomes infinity and the near limit settles at H/2.

Depth of field tables serve photographers, cinematographers, educators, and optical engineers who need quick, reliable focus zone references. A complete table eliminates repetitive single calculations and supports faster on-set decisions.

  • Landscape Photography: Determine which aperture keeps both foreground rocks at 5 feet and a distant mountain range acceptably sharp. Print the table and tape it to a lens hood for quick field reference.
  • Portrait Photography: Compare how shallow the depth of field becomes at f/1.4 versus f/2.8 when shooting headshots at 6 feet. Decide which aperture isolates the subject while keeping both eyes in focus.
  • Cinematography: Plan focus pulls by reviewing near and far limits at every marked focus distance on a lens barrel. Confirm that actors moving within a scene stay within the acceptable focus zone.
  • Education: Teach students how aperture, focal length, and subject distance interact to control depth of field. Generate tables across focal lengths to illustrate relationships visually.
  • Product Photography: Calculate the exact aperture needed to keep an entire product sharp at close range. Find the minimum f-stop that covers the product depth without diffraction softening.
  • Astrophotography: Verify hyperfocal distances for wide-angle lenses used in night sky photography. Confirm that stars at infinity and foreground elements remain within the depth of field at wide apertures.
  • Lens Comparison: Generate tables for multiple focal lengths to compare depth of field characteristics when choosing between lenses for a specific assignment.
Inputs, outputs, and what the Depth of Field (DoF) Table computes

The form above accepts the following inputs and produces the outputs listed below. This summary is rendered in the page so the parameters are visible to crawlers, assistive tech, and indexing agents that don't fetch the embedded tool frame.

Inputs

  • Camera Sensor / Film Format · default: Full Frame (35mm)
  • Custom Circle of Confusion (mm) (text input) · default: 0.029
  • Focal Length (mm) (text input) · default: 50
  • Distance Unit · default: feet
  • f/1.4 · default: 1.4
  • f/2 · default: 2
  • f/2.8 · default: 2.8
  • f/4 · default: 4
  • f/5.6 · default: 5.6
  • f/8 · default: 8
  • f/11 · default: 11
  • f/16 · default: 16
  • f/22 · default: 22
  • f/32 · default: 32
  • Distances (text input) · default: 3, 5, 7, 10, 15, 20, 30, 50, 100
  • Show hyperfocal distance row
  • Table display · default: Total DoF
  • Decimal Places · default: 2

Controls

Generate Table · Reset

Worked example

Generate a depth of field (DoF) reference table for a chosen camera sensor and lens focal length , listing near limit, far limit, hyperfocal distance, and total DoF across every selected aperture and focus distance.