AccessZ Inverse Depth of Field Calculator v2.73

Inputting your Focal Length, precisely measured Near and Far distances, and a well-considered or, better still, a calculated Max Permissible CoC Diameter, this Inverse Depth of Field Calculator can consistently output the exact Focus Distance and smallest f-Number required to record nominally sufficient DoF for framed compositions, thus enabling consistent use of the fastest possible shutter speeds for the available light and ISO.

Easy path to disappointment: Divide the sensor diagonal by 1442 (0.03 mm for full-frame, 0.02mm for APS-C, etc.)
Results will be displayed here.

AccessZ Circle of Confusion Calculator
  

This DoF calculator's inverse approach is more practical than that of most DoF calculators, including the popular DofMaster online calculator and the DoF functions in mobile apps similar to PhotoPills, which require users to input the Focal Length they are using, but also expect input values for the Subject Distance at which they intend to focus and the Aperture they intend to use. Except by happenstance, it is not possible to ACCURATELY select both a Focus Distance and Aperture that are appropriate for the entirety of a framed composition, BEFORE performing a DoF calculation. The predominant DoF calculators display outputs for the Near and Far Limits of DoF - distances that have a very low probability of actually matching the Near and Far distances of a user's framed subject space, when the calculated distances are based on best-guess inputs of Focus Distance and Aperture. I see this approach as valuable ONLY when the intent is to setup a shot for selective focus, where inputting a known wide Aperture, and a known Focus Distance, then evaluating the calculated Near and Far Distances, allows a user to decide whether or not the DoF will be as deep or shallow as desired - then changing the Aperture, if necessary, and recalculating. Even then, precise measurements should be made or there's no point in calculating the Near and Far limits of DoF. Hint: There is seldom any benefit in doing DoF calculations to achieve selective focus. It can be eye-balled. When shooting landscapes or architecture, for example, if the goal is to "make everything razor sharp, from Near to Far," disappointment is all but guaranteed when using a "non-inverted" DoF calculator that expects you to guess where to Focus and which Aperture to use. But it gets worse.... Erroneous results are compounded further still by performing DoF calculations with a personally irrelevant Maximum Permissible CoC Diameter. Expecting users to select their camera make and model or sensor size, is a huge point of failure that's inherent to many online DoF calculators and apps. This one-size-fits-all assumption translates to all users of full-frame sensors collectively "wanting" a maximum CoC diameter of 0.03mm, for example (or all users with APS-C sensors collectively "wanting" a 0.02mm max CoC diameter, etc.) Currently, DoFMaster does allow users to select from among many, hard-coded CoC diameters, in addition to leading users astray, in my opinion, by allowing them to select their camera make and model. Here are some rhetorical questions worth considering: Do all users equipped with a full-frame sensor, for example, always impose the exact same enlargement factor, to produce final images having the exact same dimensions, all the time, even routinely, as individual users? Do they all have the exact same expectations for minimum anticipated viewing distances? And do they all have the exact same, utterly subjective expectations for the commonly shared, but seldom quantified goal of "acceptable sharpness?" No, no, and no. DoF cannot be satisfactorily secured with any consistency, when relying on a one-size-fits-all, third-party choice of a Maximum Permissible CoC Diameter. This variable, seen in all DoF equations, has the ability to quantitatively define what you personally consider to be "acceptably sharp," at the Near and Far limits of DoF. You are forfeiting control of how much defocus you are personally willing to tolerate at the limits of DoF, when you make use of any DoF calculator that does not permit direct entry of a Maximum Permissible CoC diameter that you have diligently customized to suit your personal requirements. Successful calculation of DoF is heavily dependent on a well-considered or, better still, a calculated Maximum Permissible CoC Diameter - a CoC value that satisfies your Anticipated Maximum Enlargement Factor, your Anticipated Minimum Viewing Distance and your Desired Final Image Resolution, all of which are variables, not constants, discussed in the Wikipedia article titled, Circle of Confusion. Choosing to do a little bit of arithmetic - as a one-time effort - using the simple equation found in that article (Update: Or by using the AccessZ Circle of Confusion Calculator at the link provided on this page), is the best way to reduce your odds of disappointment, below that had when relying on the engraved DoF scales found on manual-focus lenses (which are infamous, because... a one-size-fits-all DoF scale simply cannot satisfy everyone's expectations). Improper selection of the CoC diameter used in DoF calculations is just one of three factors that have led many photographers, including most landscape photographers, to the incorrect conclusion that DoF calculations offer no practical value. Here is a second, critical factor which escapes the consideration of many photographers when they attempt to perform DoF calculations: IF YOUR GOAL is to maximize your shutter speed by using the largest possible aperture that can nominally secure sufficient DoF, while also utilizing every last bit of DoF made available by the Focal Length in use, especially with your shortest lenses, the Near Distance and a calculated Focus Distance should each be precisely measured, ideally (and quickly) with laser distance measures. I use the Bosch GLM 165-40 (useful to ~7m in bright sunlight, farther in overcast or dim light), plus the Leupold RX-1400i TBR/W Gen 2 (for 5m to 1200m). Both are surprisingly small and lightweight. The Near Distance and Focus Distance should NOT be estimated. Far distances can be estimated with less concern for precision. (A tape measure is cumbersome, but equally productive.) And here's a third critical factor, which is not as difficult to pursue as many assume, thanks to a feature found in many auto-focusing cameras: Consistently satisfying results also require precise focusing. Using a camera’s Spot Back-Button Auto-Focus feature, if available, you can lock the focus onto a suitable object residing at the Required Focus Distance, then recompose and make your exposure. The camera can even be removed from the tripod, if necessary, then returned to re-establish the intended composition, after finding a suitable object at the calculated focus distance on which to lock focus. Avoid attempts to manual-focus a short, auto-focus-capable lens, when seeking to optimize DoF. Due to visual ambiguity, even with a Focus Peaking feature, it is almost impossible to precisely manual-focus short lenses at a precisely measured focus distance, but careful advance testing can be done, always evaluating results at your anticipated maximum enlargement factor and minimum viewing distance, to note the exact position at which the focus index of a manual-focusing lens should be set, to achieve consistent hyperfocal results in the field. (I've done this with the Laowa 9mm f/2.8, for shooting at f/7.1.) NOTE for use of this DoF calculator: Calculated f-Numbers will be displayed with a red font, if the Required f-Number for sufficient DoF is GREATER THAN the f-Number at which Diffraction's Airy disk diameters will just begin to exceed your specified CoC diameter. Rather than shooting with too large an f-Number, in the quest for sufficient DoF (to cover an unreasonably deep composition or to force a longer exposure), simultaneously risking a visible loss of resolution caused by diffraction throughout the entire final image, you should consider making changes that will reduce the Required f-Number (to eliminate display of the f-Numbers in red): One option would be to recalculate after switching to a shorter focal length, without moving the camera, thus forcing a change to your composition. A second option is to incrementally increase the input Near Distance, iteratively re-calculating until the two calculated f-Numbers are no longer displayed in red, thus indirectly setting the Required f-Number to a value that is slightly less than or equal to the diffraction-limiting f-Number; then... move the camera back to that greater Near distance, which again, changes your composition. A third option which, unlike the first two, allows you to maintain your intended composition, is to deliberately plan on reducing your enlargement factor (choosing, prior to exposure, to make a smaller final image), increasing your specified CoC diameter, proportionately. All three of the options given thus far maintain your originally desired final image resolution. A fourth undesirable option, in my opinion, that allows you to maintain your intended composition as well as your originally intended enlargement factor (in an attempt to have your cake and eat it, too), is to deliberately reduce your originally Desired Final Image Resolution, by recalculating with a larger CoC diameter, making no other changes. Many photographers often do this unknowingly, when bent on shooting excessively deep subject spaces - ignoring, at the time of exposure, potential impacts on final image resolution, yet often regretting the results when later viewed at the intended enlargement factor. There are no free rides, in photography. Focus stacking offers a fifth solution, introducing some potential pitfalls while taking longer to implement, both in the field and in the digital darkroom, but yes, extremely deep subject spaces can be recorded in great detail. I submit, however, that many focus-stacked shots could have been captured in a single exposure, with precision field technique. Consistently working with shorter exposures (even to overcome slight breezes) is a well-earned reward that comes with the discipline of never stopping down further than is absolutely necessary to secure sufficient DoF, but this requires use of a diligently selected/calculated maximum permissible CoC diameter, along with precise distance measurements and precise focusing. This "doctrine," for lack of a better word, is too extreme for landscape photographers who would rather practice something more akin to "point-and-shoot" photography, but for those who enjoy striving to take control of as many variables as possible, some might discover just how much DoF their shortest lenses can deliver, having never before positioned the available DoF so precisely at the Near and Far limits of their framed subject spaces. Keep reading or, less thinking is required if you try using my online CoC calculator that's based on the Wikipedia equation discussed below. AccessZ Circle of Confusion Calculator Feel free, at first, to tweak your specified CoC diameter, as you see fit, but if you are willing to dive into calculating a custom CoC diameter that actually suits your personal requirements, here is my take on how to use the equation found in the Wikipedia article (with a simple four-function calculator): Max. Permissible CoC Diameter (in mm) = Anticipated Minimum Viewing Distance, in cm / 25 cm / Desired Final Image Resolution, in lp/mm for a 25 cm viewing distance / Anticipated Maximum Enlargement Factor / 2 lines per line pair Where... Anticipated Minimum Viewing Distance defines at how close a distance you expect your final image to be scrutinized by others. Hint: People with healthy or corrected vision can focus as closely as 25cm, or 10 inches, so there's no point in specifying a value less than 25 cm. But the greater the Viewing Distance, the wider the aperture you can use with any given subject space, for sufficient DoF, as perceived in the final image. Desired Final Image Resolution allows you to quantitatively, yet still subjectively define the elusive phrase, "acceptably sharp," to suit your personal requirements. The CoC diameter used in DoF calculations is your choice, not anyone else's. But the greater the resolution you desire in the final image, the more you will have to stop down for sufficient DoF, and thus, the longer will be your exposures. This value must be specified in lp/mm (line pairs per mm) for a 25cm viewing distance, even if your Anticipated Minimum Viewing Distance is greater than 25cm. Values ranging between 1 and 8 lp/mm, equate to final image media having unresampled image file densities ranging from about 50 dpi to 400 dpi, respectively (at about 50 dpi per lp/mm). Hint: It is generally agreed that healthy or corrected human eyes cannot resolve more than 8 lp/mm at a distance of 25mm, thus, there is no point in specifying a value greater than 8 lp/mm. And... the public at large is not accustomed to seeing subject detail rendered at resolutions rendered much greater than 4 lp/mm, so 5 lp/mm (250 dpi) would be seen as "very sharp" by most people. Pro labs that scan large format sheet film, tend to do so at whatever scan resolution (up to 8000 dpi, on drum scanners) to produce digital files capable of delivering an image density of only 150 dpi (3 lp/mm), typically. It's your choice, but something like 3 to 5 lp/mm for a 25cm viewing distance is a good place to start. Anticipated Maximum Enlargement Factor has to be constrained (not arbitrarily selected on wishful thinking), by doing some arithmetic in advance of choosing this value for calculating your custom CoC diameter. The constraint will come from acknowledging that a CMOS sensor's pixel count is virtually reduced by the Bayer algorithm. You have to make sure you are not specifying an Anticipated Maximum Enlargement Factor that's greater than your sensor's intrinsic resolution can support, at your Desired Final Image Resolution. At first consideration, to come up with the largest possible Anticipated Maximum Enlargement Factor for use in the CoC equation, it might seem you only have to divide the width of the largest final image you intend to make by the width of your sensor, but that only works with sensors that do not use the Bayer algorithm to interpolate colors other than pure red, green, or blue (i.e. CCD, Foveon X3, Fujifilm X-Trans, monochrome, etc.) It is generally suggested that various implementations of the Bayer algorithm cause a CMOS sensor to lose 30% of the resolution indicated by the total pixel count. That may have been true years ago, but not currently. Trying to keep this short (believe it or not), studying published Imatest results from the testing of several modern lenses and CMOS sensors, I have concluded that the average resolution that can be recorded, taking into account losses for sensors and lenses as complete systems, is not 70%, relative to a CMOS sensor's pixel count, but rather 83.75% of what the pixel count alone would promise - a Bayer-induced resolution loss of 16.25%, not 30%. That's based on a fairly small sampling of empirical data, for sensors that use the Bayer algorithm, but it's still somewhat anecdotal, not comprehensive. (I will add that it's my understanding the absence of an anti-aliasing filter can make about a 3% further improvement in resolution.) So, here is a conservative, optimistic equation for calculating a Bayer-limited Enlargement Factor Ceiling that should not be exceeded when you specify your Anticipated Maximum Enlargement Factor, to calculate your Maximum Permissible CoC Diameter: Bayer-limited Enlargement Factor Ceiling = 0.8375 * Sensor Width, in Pixels / (50 pixels per lp/mm * Desired Final Image Resolution, in lp/mm) Example for a CMOS sensor having a Pixel Width of 6000, when your Desired Final Image Resolution is 5 lp/mm: Bayer-limited Enlargement Factor Ceiling = 0.8375 * 6000 / (50 * 5) = 0.8375 * 6000 / 250 = 20.1 (But for losses induced by the Bayer algorithm, a 6000-pixel sensor could support enlargement factors as high as 24.0, at 5 lp/mm.) But wait... You don't necessarily want to use this Bayer-limited Enlargement Factor Ceiling as your Anticipated Maximum Enlargement Factor, when calculating your Maximum Permissible CoC Diameter. You might want to specify an enlargement factor that is LESS THAN the Bayer-limited ceiling! The real question is this: What are the dimensions of the largest final images you intend to regularly produce at your Desired Final Image Resolution? If those dimensions require an enlargement factor that's greater than the Bayer-limited Enlargement Factor Ceiling, you will need to buy a sensor with more pixels. Wah! Hopefully, your largest anticipated final image dimensions will require an enlargement factor that is less than the Bayer-limited Enlargement Factor ceiling, in which case, specifying a smaller Anticipated Maximum Enlargement Factor, when calculating your custom CoC diameter, will allow you to shoot deeper subject spaces at your Desired Final Image Resolution, or to use wider apertures for any given depth of subject space. This is why it's not a good idea to mindlessly set your maximum CoC diameter to match your sensor's pixel pitch - which is not only overkill due to ignoring Bayer losses, but leaves you always shooting with smaller apertures (longer exposures) or higher ISO settings, to needlessly record CoCs that are smaller than necessary for your actual Anticipated Maximum Enlargement Factor and Desired Final Image Resolution. In the end, you can take advantage of this arithmetic, using a four-function calculator - a 20-minute task, at most - or you can identify your "preferred" Maximum Permissible CoC Diameter by trial-and-error, through a series of test shots, but always exercise precision in the field (when measuring and focusing) and always evaluate sharpness and/or resolution in the final image, at your Anticipated Maximum Enlargement Factor and Anticipated Minimum Viewing Distance. Pixel-peeping at greater magnifications is misleading. AccessZ Circle of Confusion Calculator