PixelOkay
Photography / Focus tools
Tools
CAMERA & OPTICS WORKSPACE

Depth of Field Calculator Pro

Compose your focus with confidence. Explore near and far sharpness limits, find hyperfocal distance, and compare aperture choices before the shot.

◈ Instant calculations◈ No uploads◈ Custom camera formats

01 / OPTICAL SETUP

Camera & lens

36 × 24 mm · crop factor 1.00×
metres
Effective CoC: 0.0288 mm. This is a viewing criterion, not a sensor-pixel measurement.

02 / INSTANT RESULTS

Your focus zone

Calculated live
Total depth of field
—

Acceptably sharp zone

Near focus limit
——
Far focus limit
——
Hyperfocal distance
—

FOCUS VISUALIZER

Where sharpness lives

LOG DISTANCE
Near, focus, far and hyperfocal limits visualized on a logarithmic scaleFocus range diagram updates when settings change.
Acceptably sharp zone Focus point Hyperfocal

Illustrative distance scale, not a simulation of actual blur. Infinity extends beyond the displayed scale.

LENS INTELLIGENCE

Field of view & framing

Horizontal FoV—
Vertical FoV—
Frame width at focus—
35 mm equivalent—

Calculations use a conventional thin-lens model. Actual focus mechanics, lens breathing and crop modes may differ.

03 / CREATIVE EXPLORER

Explore every aperture

SAME LENS · SAME FOCUS

Compare sharpness across f-stops without changing your lens or distance. Select a row to use its aperture.

ApertureNearFarTotal DoFUse aperture

04 / FOCUS PLANNER

Keep two subjects sharp

Enter the distances to two subjects. Get a suggested focus point and minimum f-number to cover both.

05 / LANDSCAPE ASSISTANT

Foreground to infinity

Keep your closest foreground detail and the distant horizon acceptably sharp. Find a minimum aperture and hyperfocal focus point for your lens.

Uses the chosen circle of confusion. Small apertures can reduce fine detail through diffraction; actual lens performance may differ.

06 / COMPARISON

Saved setups

0 / 4

Save up to four camera configurations and compare results side by side. Stored on this device when browser storage is available.

No saved setups yet. Calculate a shot and select Save setup.

Portable setup backup

Transfer your saved setups between devices without an account. Imports add missing setups; nothing is overwritten.

METHOD & LIMITATIONS

How these numbers work

Hyperfocal distance

H = f² / (N × c) + f. Focus at H to include infinity within the acceptable-sharpness range. Near limit is approximately half of H at ordinary focus distances.

Sharpness boundaries

Near = s(H − f) / (H + s − 2f)
Far = s(H − f) / (H − s), where the far limit becomes infinite when focus distance reaches H.

What counts as sharp?

Circle of confusion (CoC) determines acceptable blur. The standard preset uses sensor diagonal ÷ 1500; critical detail uses ÷ 2500. These are viewing assumptions, not hard optical facts.

Thin-lens equations assume focused distance measured approximately from the optical reference plane. Results are estimates, especially for close-focus and macro photography, internal-focus lenses, focus breathing and large prints. The frame-width estimate ignores focus breathing and lens distortion. No camera file or personal setting is uploaded.

Using Depth of Field Calculator Pro

Estimate acceptable-sharpness and field-of-view ranges from entered sensor, lens and focus assumptions. Use the two-subject or landscape planner to compare a setup before saving or exporting it.

  1. Enter a sensor format, focal length, aperture and focus distance; review the circle-of-confusion convention used for the estimate.
  2. Check the near/far focus range, hyperfocal distance and field of view, then try the two-subject or foreground-to-infinity planner if needed.
  3. Compare scenarios, save up to four setups, and export CSV/JSON or a settings link for the selected camera assumptions.

Example: For a two-person interview, enter the camera and lens assumptions, place both subjects in the two-subject planner, then compare apertures until both fall within the selected acceptable-sharpness range.

Limits and privacy: Thin-lens and circle-of-confusion calculations estimate acceptable sharpness; they do not measure a particular lens, render bokeh or show actual focus falloff. Recommended intermediate f-numbers may not exist on a real lens. Browser storage is best effort with a session-only fallback; JSON backups can preserve four setups. Settings links contain the selected camera assumptions.

Frequently asked questions

Does this show the blur or bokeh from a real lens?

No. It calculates focus distances and field of view from entered assumptions; it does not render a lens image, aberrations or bokeh.

Are the recommended aperture values available on every lens?

No. The calculations can return intermediate values that a physical lens may not offer. Check the lens markings and test the actual camera setup.

What does the settings link contain?

It encodes camera and lens assumptions for a scenario. Do not share a link if those settings should remain private.

Related tools