Settings

The circle of confusion is set from the sensor. All numbers are computed in your browser — nothing is uploaded.

Depth of field

Total depth of field
Near limit
Far limit
In front of subject
Behind subject
Hyperfocal distance

A depth of field calculator for photography. Choose your sensor size (full frame, APS-C, Micro Four Thirds, 1-inch, smartphone, or medium format) and the matching circle of confusion (CoC) is set for you. Then enter the focal length (mm), the f-number (aperture), and the focus distance, and it solves the near limit and far limit of acceptable sharpness, the total depth of field between them, how much of that depth falls in front of and behind the subject, and the hyperfocal distance (focus there and everything from half that distance to infinity is sharp). The focus distance can be entered in metres, centimetres, or feet. Stopping down (a larger f-number) and moving farther from the subject both increase depth of field; opening up (a smaller f-number) and moving closer make it shallower so the background blurs more. When the focus distance reaches or exceeds the hyperfocal distance, the far limit shows as ∞ (infinity). Use it to judge how much background blur you'll get for a portrait, which aperture keeps a landscape or product shot sharp front to back, or where the in-focus range falls for macro — all before you shoot. Every calculation runs in your browser; the numbers you enter are never sent to any server or API.

How to use

  1. Pick the sensor size you're shooting with (full frame, APS-C, etc.) — the circle of confusion is set for you.
  2. Enter the focal length (mm), the f-number, and the focus distance (m / cm / ft).
  3. Read off the near and far limits, the total depth of field, the front/behind split, and the hyperfocal distance (nothing is sent).

FAQ

Are the numbers I enter sent anywhere?

No. The depth of field and hyperfocal calculations all run in your browser. The values you enter are never sent to any server or API — everything stays on your device.

Do I have to enter the circle of confusion myself?

No. Choosing a sensor size sets a commonly used circle of confusion for that format automatically (for example 0.03mm for full frame, 0.019–0.02mm for APS-C, 0.015mm for Micro Four Thirds).

What is the hyperfocal distance?

It's the focus distance at which everything from roughly half that distance out to infinity appears sharp. When your focus distance reaches or passes the hyperfocal distance, this tool shows the far limit as ∞ (infinity).

How do I get more background blur?

A shallower depth of field blurs the background more. Use a smaller f-number (wider aperture), a longer focal length, or move closer to the subject. To keep everything sharp instead, stop down to a larger f-number and move farther away.