Home Everyday Life Depth of Field Calculator

Depth of Field Calculator

Near and far focus limits and total depth of field, from focal length, aperture and focus distance.

Advertisement

How it works

Depth of field is the span that looks acceptably sharp, and it is set by aperture, focal length and how far away you focus. The circle of confusion decides what counts as sharp: 0.029 mm is the usual full-frame value, and smaller sensors use smaller numbers. Focus at the hyperfocal distance and everything from half that distance to infinity falls inside the zone. Longer lenses and wider apertures shrink the zone quickly, which is why a fast portrait lens isolates a face so easily.

Advertisement

Formula

hyperfocal H = f² ÷ (N × c) + f
near limit = s × (H − f) ÷ (H + s − 2f)
far limit = s × (H − f) ÷ (H − s), infinite once s reaches H
depth of field = far − near

Sources

Example

50 mm at f/8 focused at 3 m with c = 0.029 mm: H = 2,500 ÷ 0.232 + 50 = 10,826 mm, so 10.83 m. Near = 3,000 × 10,776 ÷ 13,726 = 2.36 m, far = 3,000 × 10,776 ÷ 7,826 = 4.13 m, and the depth of field is 1.78 m. Check: 4.13 − 2.36 = 1.77, a rounding difference.

Frequently asked questions

What is the circle of confusion?

The blur size that still counts as sharp. 0.029 mm is the standard full-frame value.

What is the hyperfocal distance?

The focus distance that keeps everything from half of it to infinity acceptably sharp.

Does sensor size matter?

Yes. Smaller sensors use a smaller circle of confusion, which deepens the zone for the same framing.

Does the aperture change depth of field?

Yes. Larger f-numbers deepen it, smaller ones narrow it.

Advertisement

Related calculators

Age Calculator

Exact age in years, months and days, plus days until your next birthday.

Date Difference Calculator

Days, weeks, months and business days between two dates.

Tip Calculator

Tip and split the bill between any number of people.

Discount Calculator

The price after a percent discount and how much you save.