Depth of Field Calculator

This depth of field calculator shows how much of your scene will be sharp for a given lens, aperture and focus distance. Choose your camera's sensor, from full frame and APS-C to Micro Four Thirds, 1-inch and medium format, or enter your own circle of confusion, then set the real focal length, the f-number and the subject distance in meters or feet. It gives the near and far limits of sharp focus, the total depth of field split into the part in front of and behind the subject, and the hyperfocal distance that keeps everything from half that distance to infinity acceptably sharp. A table compares every whole stop from f/1.4 to f/16 so you can pick an aperture at a glance. Photographers can paste a shot list and every setup is calculated at once. It is free and runs entirely in your browser.

50 mm lens focused at 3 m on full frame

ApertureNear (m)Far (m)Depth (cm)Hyperfocal (m)
f/1.82.833.203748.2
f/2.82.743.325831.0
f/42.643.478321.7
f/5.62.523.7111915.5
f/82.364.1217610.9
f/112.184.802617.9
f/161.946.594655.5

When to use it

  1. Check whether f/1.8 keeps both eyes sharp in a close portrait.
  2. Find the hyperfocal distance for a landscape at 24 mm and f/11.
  3. Choose an aperture that keeps a whole group photo in focus.
  4. Compare depth of field between a full-frame and an APS-C body.
  5. Plan apertures for every setup on a shoot's shot list.

How to Use

  1. Choose your sensor or enter a circle of confusion.
  2. Enter the lens's real focal length and the aperture.
  3. Enter the subject distance and choose meters or feet.
  4. Read near, far and hyperfocal distances, or paste a shot list for batch mode.

Features

  1. Near and far limits of focus
  2. Hyperfocal distance
  3. Six sensor presets and custom circle of confusion
  4. Meters or feet
  5. f/1.4 to f/16 comparison table
  6. CSV shot list
  7. 100% client-side

FAQs

What is depth of field?

The range of distances in front of and behind the focus point that look acceptably sharp in the final image.

What is the hyperfocal distance?

The closest focus distance that keeps infinity acceptably sharp. Focus there and everything from half that distance to infinity is in focus.

Does a smaller sensor give more depth of field?

At the same framing and f-number, yes, because it uses a shorter focal length. At the same focal length and distance it gives less, because its circle of confusion is smaller.

Why is my real result shallower?

The calculation assumes a print viewed at normal distance. Viewing at 100% on screen needs a smaller circle of confusion, which shrinks the depth of field.

Is anything uploaded?

No. All calculations run in your browser.

Technical Details

The circle of confusion is the sensor diagonal ÷ 1500 (0.029 mm for full frame, 0.019 mm for APS-C, 0.014 mm for Micro Four Thirds), the standard for an 8 × 10 inch print viewed at about 25 cm, or a custom value. The hyperfocal distance is H = f²/(N × c) + f for focal length f, f-number N and circle c. Focused at distance s, the near limit is s(H − f)/(H + s − 2f) and the far limit is s(H − f)/(H − s), or infinity once s reaches H. Depth of field is far minus near, split into the part in front of and behind the subject. A table repeats the calculation across whole stops from f/1.4 to f/16.

Calculators & Converters

Calculators & Converters

  • Gear Ratio and RPM Calculator
  • Engine Displacement Calculator
  • Compression Ratio Calculator
  • Horsepower, Torque and kW Calculator
  • Wheel Offset and Backspacing Calculator
  • Motorcycle Sprocket and Chain Calculator
  • 2-Stroke Fuel Mix Ratio Calculator
  • EV Charging Time and Cost Calculator