Camera and Lens
Basic DoF Functions
Enter a crop factor (eg. "6.7" or "0.25") or dimensions in mm as width x height (eg. 36x24 or 15.2 x 9.5). See notes section for details.
|See notes on extended functionality.|
A resolution in MP (eg. "24MP" or "24 MP"), or in pixels (eg. 6000x4000 or 6000 x 4000).
Shutter speed in fractional (eg. 1/500) or decimal notation.
|Format||Focal Length||Av Setting*||F-number|
|Results go here.|
* The Av setting is the camera aperture setting, in 1/3rd-stops, that will closely approximate source
lens's depth of field. Available values range from f/1 to f/64 in 1/3rd stops.
For the supported formats it will calculate the hyperfocal distance, near and far depth of field and total available depth of field for the lens specified. As well as the equivalent lens and aperture required to get approximately the same composition and depth of field in one of the other supported formats.
Note: The experimental values and extended functions are part of an ongoing experimental concept that I’m currently developing. Please don’t contact me and ask me what it is or how to interpret it. It is only included and displayed so I can move forward on developing an idea.
Custom Frame Sizes
As of April 2016, the calculator now supports custom frame sizes. These can be entered as either a crop factor or as the dimensions, in mm, of the frame to be used.
For crop factors, the reference frame is the 3:2 aspect ratio 135-format (i.e. 36 x 24 mm) film frame. Cropped frames will retain the 3:2 aspect ratio. Crop factors are crop of the reference frame, therefore a value larger than 1 will produce a smaller frame. Entering a value smaller than 1, e.g. 0.5, will generate a frame larger than the reference frame.
The second option is to enter the dimensions of the frame in mm. This should be entered in the format of “width x height”, or “dimension_1 x dimension_2”. Whether the width precedes the height or vice versa will only change the horizontal and vertical values presented in the angle and field of view sections. Spaces between the numbers and the ‘x’ are ignored. Decimal values are accepted.
Depth of Field Graph
The depth of field graph presents depth of field curves for 8 full-stop aperture settings from f/1.4 to f/16. This is done using the current frame size, custom circle of confusion, and focal length as specified in the Basic DoF Functions settings area.
A couple of points to note about the graph it self. Curves that stop abruptly after steeply curving up have exceeded the 10 meter DoF limit I’ve imposed on the graph. Beyond this point (at least the next iteration of the computation) the DoF will have effectively gone to infinity.
The distance range is also limited artificially. The closest distance that is computed is 4 times the focal length. The furthest distance is computed relative to focal length with wide-angle lenses being allowed to calculate out relatively further than telephoto lenses. This is to prevent the chart from becoming unnecessarily unwieldy; where super-telephoto lenses are being calculated out to 1000s of feet/meters when typically you’ll use them at considerably closer distances..
The chart can be fine-tuned in two ways. First, the slider along the bottom controls the range of distances. Moving the two handles closer to each other will narrow the distance range similarly. Secondly, the lines for various apertures can be toggled on and off by clicking their respective legend box.
Finally, you can save the chart image by right clicking on it and selecting “Save image as…” or the equivalent in your browser.
DOF and hyperfocal distances are calculated using the following formulas.
Equivalent lenses are calculated so that the focal length produces the same approximate angle of view and the f-stop results in an aperture diameter equal to the base lens’s aperture diameter which will produce the same depth of field.
2017-07-18: Added panorama shift increments to the calculator. Pano shift increments target a 35% overlap of the previous frame rounded to the nearest 2.5° increment, and then shows the actual overlap that will occur with that setting. To be used to calculate the rotation of a panning base divided in 2.5° increments, such as the base on a Really Right Stuff tripod head or PC-LR/PRO panning clamp.
2017-05-18: Added DoF at aperture chart. Chart displays the depth of field for various aperture (f/1.4-11 in full stop increments) from 4x the focal length to a reasonably long focus distance ( dmax ~= focalLength * ( 750 * focallength / log(focalLength) ) ). Lines that stop abruptly when curving up would have gone to infinity by the next iteration.
2017-05-17: Added ability to specify custom circle of confusion under the extended functions area (click where it says click to show extended functions).
2017-05-16: There are lots of changes with this release, some may result in subtle differences with other online calculators and previous versions of this calculator.
- Crop factors are now calculated on the fly using the diagonal of the format (including custom formats). I am not using the standard approximations (i.e. 1.6x for Canon APS-C).
- Crop factors are shown as a crop of 135-format (36×24 mm) film. Values larger than 1 are frames smaller than “full frame”, values smaller than one are frames larger than “full frame”.
- Circles of confusion are calculated as the crop factor ratio of 0.029 (135-format). As a result the new crop factor calculations may result in slightly different CoCs than other calculators.
- Changed precision of displayed output values.
- Metric results are rounded to 3 significant figures, pursuant to the least accurate measures used in the computations.
- Imperial (feet, inches) are rounded to show a reasonable level of precision. Errors are kept at or below 0.1%. Above 1000 inches, values are shown as decimal feet. Above 10,000 inches, values are shown as whole feet only.
- Changed URI hash-fragment format to JSON based format to allow for easier extensible (bookmarks using the old format will still work).
- Reorganized the format list to group formats by typical use.
- Added new formats, specifically video formats including; Canon’s 5D mark IV and 1DX 4K crop factors, Red’s Epic/Weapon, and Arri’s 65mm format.
2017-05-08: Fixed bug where custom aperture wouldn’t clear when switching back to the standard selections. Reformatted table to support rendering on mobile devices and other devices with small screens. Added more extended experimental functionality, including calculating camera/subject motion for 100% pixel sharpness and acceptable print sharpness.
2017-03-13: You can now enter a custom aperture value that isn’t in the standard apertures list. There is currently an outstanding bug on with this in that it doesn’t persist correctly through the URL hash (# at the end). However, the calculations using it are done correctly.
Also I’ve reduced the precision of the stored aperture values, so some results may be slightly different form previous versions.
2016-04-01: Updated to allow the use of a custom frame size or crop factor. Enter the custom frame size or crop factor in the “Custom frame size box”.
You can enter a frame size in mm as width x height (eg. 24 x 12), decimals are permitted. Don’t specify the “mm”, and spaces around the x are ignored. The crop factor is calculated internally as the diagonal as referenced to the diagonal of a 35mm (36×24) frame.
You can enter a custom crop factor as a decimal number. Numbers >1 (e.g. 1.5) result in a frame that’s smaller than 35mm. Numbers <1 (e.g. 0.5) result in a frame that’s larger than 35mm. In this mode the aspect ratio of the frame is assumed to be 3:2. If you want a different aspect ratio frame, you’ll need to specify the dimensions directly.
2014-05-13: Updated script to use the same engine used by tools.pointsinfocus.com/dofcalculator and to store current settings in the URI to allow linking to a specific setup.
2014-02-05: Added 1/1.7″ CCD used in many compact cameras and the Pentax Q mirrorless cameras.
2014-02-03: Clicking on the format in the equivalent lens chart will update the lens setting to match that format as closely as the calculator allows.
2014-01-28: Added angle and field of view calculations. Angle and field of view are show for the selected format (i.e. 35mm or APC-S) and may not reflect the exact angle or field of view for the equivalent lens if the platforms aspect ratio is different.
2014-01-12: Added support for metric distance input and output formatting. And support for preset focus distances roughly corresponding to various types of portraits.
2011-01-17: I’ve added some features to make computing AF calibration data easier. The first is the AF Test Dist button that sets the focus distance to the minimum recommended AF test distance of 50 times the focal length. The second is the addition of a 1/8th DoF measure to the outputs.