Depth of Field Calculator

Calculate your exact camera focus limits, hyperfocal distance, and Depth of Field.

Optical Standard Equations
Camera & Lens Parameters
Camera Body
Sensor size determines the Circle of Confusion (CoC), a critical variable for calculating DoF.
Lens Settings
Use actual focal length, not the full-frame equivalent. Longer lenses and smaller f-stops create shallower DoF.
Focus Point
The distance from the camera's image sensor to the subject you are focusing on.
Total Depth of Field
--
Front: -- | Behind: --
Hyperfocal Distance
--
Focus here for max depth
Near Focus Limit
--
Sharpness begins here
Far Focus Limit
--
Sharpness ends here

Focus Range Limits

A visual representation of what is in focus (Near Limit to Far Limit).

Depth of Field Distribution

Shows the percentage of sharp area in front of the subject versus behind the subject.

Aperture vs. Depth of Field Curve

How your DoF would change if you adjusted the aperture while keeping other settings the same.

The Optical Mathematics

The exact optical formulas used to calculate your focus limits.

Hyperfocal Distance (H) = f2 ÷ (N × c) + f
  • Focal Length (f): --
  • Aperture (N): --
  • Circle of Confusion (c): --
  • Subject Distance (s): --
Limit Equations:

Near Limit: Dn = s(H - f) ÷ (H + s - 2f)

Far Limit: Df = s(H - f) ÷ (H - s) *(If s ≥ H, Far Limit is Infinity)*

Total DoF: Df - Dn

1. What is a Depth of Field Calculator?

A Depth of Field calculator is an indispensable optical tool used by photographers and cinematographers to determine the exact range of distance in a scene that will appear acceptably sharp. In any photograph, there is technically only one microscopic plane of absolute, critical focus. However, objects slightly in front of and slightly behind this plane still look perfectly sharp to the human eye. This zone of acceptable sharpness is known as the Depth of Field (DoF).

Rather than guessing and checking the back of your camera screen (chimping), a calculator uses rigorous optical physics to give you precise measurements. Whether you are a landscape photographer trying to get both foreground rocks and distant mountains in focus, or a portrait photographer wanting to melt the background into beautiful bokeh, knowing your exact camera focus limits ensures you nail the shot every time.

2. How to Use the DoF Calculator (Visual Guide)

Using our interactive tool is simple but requires knowing your camera gear. Here is a step-by-step visual guide to inputting your metrics accurately:

  1. Select Your Measurement System: Choose between Meters/Centimeters or Feet/Inches using the toggle at the top. This dictates how your subject distance is inputted and how your results are displayed.
  2. Choose Your Sensor Size: The physical size of your camera's digital sensor affects the optical math. Select your format from the dropdown (e.g., Full Frame for Canon 5D or Sony A7, APS-C for Fuji X or Sony A6000). This automatically sets the "Circle of Confusion."
  3. Enter Focal Length: Look at your lens. If you are using a 50mm prime, enter 50. If using a 24-70mm zoom, enter the exact focal length you are zoomed to. Note: Enter the physical focal length written on the lens, do not calculate the full-frame equivalent.
  4. Set Aperture (f-stop): Enter the f-number you plan to shoot at (e.g., 2.8, 5.6, 8, 11).
  5. Estimate Subject Distance: This is the distance from your camera sensor (indicated by a line with a circle through it on your camera body) to the subject you are focusing on.

Hit calculate, and the tool instantly generates your hyperfocal distance, near limit, far limit, and interactive visual charts outlining your sharp zone.

3. Understanding the Core Inputs: Aperture, Focal Length, Distance

Depth of field is controlled by a delicate balancing act of three primary physical variables. Changing any one of them alters your final image drastically.

  • Aperture (f-stop): This is the size of the opening inside your lens that lets light in. A wide aperture (small number like f/1.4 or f/2.8) creates a very shallow DoF. A narrow aperture (large number like f/11 or f/16) creates a very deep DoF.
  • Focal Length: The longer the focal length of the lens (e.g., 200mm telephoto), the shallower the apparent depth of field at a given distance. Conversely, ultra-wide lenses (e.g., 14mm) inherently have massive depth of field.
  • Subject Distance: The closer you physically move your camera to the subject you are focusing on, the shallower your depth of field becomes. This is known as the proximity effect. If you focus on a flower 5 inches away, your DoF might be millimeters. If you focus on a tree 50 feet away with the same settings, your DoF expands to several feet.

4. Sensor Size and the Circle of Confusion (CoC) Explained

The most confusing aspect of DoF mathematics is the Circle of Confusion (CoC). The CoC is a technical measurement that dictates how much a point of light can blur on a camera sensor before a person with standard 20/20 vision looking at an 8x10 print from 10 inches away considers it "unsharp".

Because smaller camera sensors (like Micro Four Thirds or smartphones) require their images to be magnified much more to reach an 8x10 print size compared to a Full Frame sensor, their allowable blur spot (the Circle of Confusion) must be smaller. Therefore, smaller sensors have a smaller CoC value (e.g., 0.015mm for MFT vs 0.030mm for Full Frame).

Important: Sensor size affects DoF indirectly. To frame a subject exactly the same way on a crop-sensor camera as you would on a full-frame camera, you either have to step further back (changing subject distance) or use a wider lens (changing focal length). Both actions increase your depth of field.

5. The Mathematical Formulas Behind Depth of Field

For the mathematically inclined, a depth of field calculator doesn't guess; it uses standard optical geometry. Here are the core DoF formulas utilized by optical engineers worldwide.

Formulas:

Variables: f = focal length, N = f-stop, c = CoC, s = subject distance.

Hyperfocal Distance (H): (f × f) ÷ (N × c) + f

Near Limit: (s × (H - f)) ÷ (H + s - 2f)

Far Limit: (s × (H - f)) ÷ (H - s)

If the subject distance (s) is greater than or equal to the hyperfocal distance (H), the formula for the Far Limit results in a negative number or division by zero, which optically translates to Infinity.

6. What is Hyperfocal Distance and Why Does it Matter?

For landscape and astrophotographers, the hyperfocal distance calculator feature is the most valuable tool on this page. The hyperfocal distance is the closest distance you can focus on while keeping objects at infinity acceptably sharp.

The Golden Rule: When you focus your lens exactly at the hyperfocal distance, everything from half that distance all the way to infinity will be in focus.

For example, if you are shooting a landscape at 24mm, f/8, your hyperfocal distance might be roughly 2.4 meters. If you set your lens focus to 2.4 meters, everything from 1.2 meters away from your camera all the way to the moon will be acceptably sharp. This ensures maximum front-to-back clarity in grand scenic shots.

7. Macro Photography vs. Landscape: DoF Variations

The behavior of depth of field changes drastically depending on the genre of photography, largely due to subject distance.

  • Macro Photography: When shooting tiny insects at a 1:1 magnification ratio, your subject distance is mere inches. At these proximity levels, DoF becomes razor-thinβ€”often just a fraction of a millimeter. Even stopped down to f/16, you may not get an entire bug in focus, necessitating techniques like "focus stacking".
  • Landscape Photography: When shooting a mountain range, your subject distance is effectively infinity. At this range, depth of field is immense. Even at wider apertures like f/4, the sheer distance means almost everything will fall within the zone of acceptable sharpness.

8. Real-World Photography Scenarios and Examples

Let's look at three practical examples of photographers using this calculator to plan their shoots.

πŸ“Έ Scenario 1: Clara (Portrait Photography)

Clara is shooting a headshot outdoors and wants a completely blurred background. She is using a Full Frame camera.

Settings: 85mm | f/1.8 | 2m away
Calculated DoF: 0.09 meters (9 cm)
Insight: Clara's DoF is extremely shallow (less than 4 inches). She must ensure she focuses perfectly on the subject's eye, as the tip of the nose or the ears might begin to fall out of focus!

⛰️ Scenario 2: Liam (Landscape Photography)

Liam wants sharp flowers in the foreground and a sharp mountain in the back. He has an APS-C camera.

Settings: 16mm | f/11 | Focus at 1.1m
Calculated DoF: 0.58m to Infinity
Insight: Liam used the calculator to find his Hyperfocal distance (1.16m). By focusing his lens at roughly 1.1m, everything from 0.58m in front of him all the way to the distant peaks will be perfectly sharp.

🐜 Scenario 3: Maya (Macro Photography)

Maya is photographing a tiny spider on a leaf using a dedicated macro lens on a Full Frame body.

Settings: 100mm | f/8 | 0.3m away
Calculated DoF: 0.002 meters (2 mm)
Insight: Even at f/8, her depth of field is barely 2 millimeters! Maya realizes she must stop down to f/16 or use a focus-stacking rail to get the entire spider in focus.

9. Depth of Field Distribution: Front vs. Behind

A common misconception is that depth of field is distributed symmetrically (50% in front of the subject, 50% behind). This is almost never true.

For typical portrait and street photography distances, DoF extends roughly 1/3 in front of the focal point and 2/3 behind it. This is why, when shooting a group of people in rows, you should always focus on the front row, not the middle row.

However, as you focus closer (macro), the ratio shifts toward 50/50. Conversely, as you focus further away, the ratio skews dramatically. If you focus at the hyperfocal distance, the distribution is roughly 0% in front (well, half the distance) and infinite % behind!

10. How to Maximize or Minimize Your Depth of Field

To Maximize Depth of Field (Everything in Focus):

  • Use a narrower aperture (higher f-number like f/8, f/11, f/16).
  • Use a wider lens (e.g., 14mm, 24mm).
  • Step further away from your subject.
  • Focus at the calculated hyperfocal distance.

To Minimize Depth of Field (Blurry Background / Bokeh):

  • Use the widest aperture your lens allows (lower f-number like f/1.4, f/1.8, f/2.8).
  • Use a telephoto lens (e.g., 85mm, 135mm, 200mm).
  • Get as physically close to your subject as possible.
  • Ensure the background is far away from your subject to maximize blur quality (bokeh).

11. Standard Sensor Sizes and CoC Reference Table

Below is an SEO-optimized reference table showing the standard Circle of Confusion optical values used in our calculator algorithms. These values assume an 8x10 print viewed at standard distance by a person with 20/20 vision.

Sensor Format / Camera Type Sensor Size (Approx) Crop Factor Standard CoC (mm)
Medium Format (6x4.5)44 x 33 mm0.64x - 0.79x0.050 mm
Full Frame (35mm Standard)36 x 24 mm1.0x0.030 mm
APS-C (Nikon, Sony, Fuji)23.5 x 15.6 mm1.5x0.020 mm
APS-C (Canon)22.3 x 14.9 mm1.6x0.019 mm
Micro Four Thirds (Olympus, Panasonic)17.3 x 13 mm2.0x0.015 mm
1-Inch Sensor (Premium Compacts)13.2 x 8.8 mm2.7x0.011 mm

12. Frequently Asked Questions (FAQ)

Common questions about optical limits, bokeh, and camera settings.

What exactly is Depth of Field (DoF)?

Depth of field is the zone or range of distance within a photograph that appears acceptably sharp and in focus. Everything inside this zone looks clear to the human eye, while everything outside of this zone becomes gradually blurrier.

Why does the calculator say my Far Limit is "Infinity"?

If your subject distance is set greater than or equal to your calculated hyperfocal distance, your depth of field stretches out forever. This means that from your focus point all the way to the horizon, the stars, or the moon, everything will be in focus. Mathematically, the far limit is infinity.

Does ISO or Shutter Speed affect Depth of Field?

No. ISO and Shutter Speed only affect the exposure (brightness) of your image and motion blur. Depth of field is strictly a geometric and optical phenomenon dictated entirely by Aperture, Focal Length, Subject Distance, and Sensor Size.

What is the difference between Depth of Field and Bokeh?

Depth of field is a quantitative measurement of distance (e.g., 3 meters of sharp focus). Bokeh is a subjective, qualitative term that describes the aesthetic quality or "look" of the out-of-focus areas (the blur). A shallow DoF creates bokeh, but lens design dictates how pleasing that bokeh looks.

Why is my background not blurry even at f/1.8?

If you are shooting at f/1.8 but your background is still sharp, it is likely because either your subject is too far away from the camera, you are using a very wide-angle lens (like 16mm), or the background is too close to the subject. Move closer to the subject and pull the subject further from the wall behind them.

Should I use the full-frame equivalent focal length in the calculator?

No. You must always enter the actual physical focal length printed on the side of your lens. If you are using a 35mm lens on a crop sensor, enter 35mm. The calculator already accounts for the crop factor by adjusting the Circle of Confusion based on the sensor size you select.

Why do macro photographers struggle with depth of field?

Depth of field decreases exponentially as the subject gets closer to the camera lens. Because macro photographers work mere inches or centimeters away from their subjects, their DoF shrinks to a fraction of a millimeter, making it nearly impossible to get an entire insect in focus in a single shot.

Add This DoF Calculator to Your Website

Do you run a photography blog, a camera review site, or a creative agency? Give your readers the ultimate optical tool. Add this fast, mobile-friendly depth of field calculator directly onto your web pages.

πŸ‘‡ Copy the HTML code below to add the tool securely to your website:

Engineered by Calculator Catalog

Designed for photographers, by optical standards. Our calculators bypass the guesswork, delivering precise mathematical boundaries for your camera gear so you can focus entirely on your creative vision.