To Many Calculator logoTo Many Calculator

Depth of Field Calculator

Kaushik RabadiyaCreated by Kaushik RabadiyaLast updated: September 24, 2026

Depth of field instantly calculates results using dof, dof far, dof far infinity. Use the calculator above for instant answers in your browser.

Welcome to the ultimate Depth of Field Calculator, designed to help photographers, cinematographers, and visual artists achieve absolute precision in image sharpness. Whether you are aiming for a buttery background blur in a portrait or edge-to-edge clarity in a landscape, this tool instantly computes your exact focus limits based on your sensor size, focal length, aperture, and subject distance. Eliminate guesswork and elevate your photographic storytelling with accurate optical calculations.

How Depth of Field is Calculated

Depth of field (DoF) relies on optical physics, lens geometry, and an acceptable circle of confusion limit (c), which defines how blurry a point can be while still appearing sharp to the human eye. First, the hyperfocal distance (H) is calculated using the formula: H = f + (f^2) / (N * c), where f is the lens focal length and N is the f-number (aperture). Once the hyperfocal distance and your actual focus distance (s) are established, the calculator determines the near limit of sharpness (DoF near) as (H * s) / (H + (s - f)) and the far limit (DoF far) as (H * s) / (H - (s - f)). The total depth of field is simply the difference between the far and near limits.

Worked Calculation Example

Imagine you are shooting a portrait using a full-frame camera with a 50 mm lens set to an aperture of f/2.8. You place your subject at a focus distance of 3 meters (3,000 mm). Assuming a standard circle of confusion limit of 0.03 mm for a full-frame sensor, we first calculate the hyperfocal distance: H = 50 + (50^2) / (2.8 * 0.03) = 50 + 2,500 / 0.084 = 29,810 mm (approximately 29.8 meters). Next, we find the near limit: (29,810 * 3,000) / (29,810 + (3,000 - 50)) = 2,729 mm (2.73 meters). Then, we find the far limit: (29,810 * 3,000) / (29,810 - (3,000 - 50)) = 3,313 mm (3.31 meters). Your total depth of field span is 3.31 meters minus 2.73 meters, giving you a crisp zone of approximately 58 centimeters.

Practical Tips for Better Control

To maximize your creative control over focus, remember that sensor size plays a massive role; smaller sensors yield a deeper depth of field at equivalent framing compared to large format sensors. Additionally, moving closer to your subject dramatically shrinks your depth of field, even more so than adjusting your aperture ring. Finally, always account for your intended final display size, as large prints make optical imperfections and blur much more noticeable, effectively tightening your strict circle of confusion requirements.

FAQs

What is the depth of field of a 50 mm lens?

The depth of field of a 50 mm lens is not a fixed measurement; it constantly changes depending on your chosen aperture, how far you are standing from your subject, and your camera sensor size. For instance, shooting at f/1.8 from two meters away yields a very razor-thin slice of focus, whereas shooting at f/11 from ten meters away expands that sharp zone significantly.

What controls the depth of field?

Three primary optical factors control your depth of field: the aperture value (f-number), the lens focal length, and the physical distance between your camera sensor and the subject. Secondary factors include your camera's sensor size and your final output enlargement size, which dictate how human eyes perceive sharpness.

How is the depth of field related to aperture size?

Aperture size and depth of field share an inverse relationship. A wider physical aperture (represented by a smaller f-number like f/1.4 or f/2) concentrates light rays at a steeper angle, resulting in a very shallow depth of field with a blurred background. Conversely, a narrower aperture (like f/11 or f/16) flattens those rays, producing a much deeper field of view where both foreground and background remain sharp.

Does shutter speed affect the depth of field?

No, shutter speed has zero optical impact on your depth of field. Shutter speed only governs the duration of time light exposes your camera sensor, which controls motion blur and exposure brightness. Modifying shutter speed will not alter what parts of your image are sharp or out of focus.

Formula verified against Peer-reviewed references — all calculations use deterministic, standards-based formulas.

Related calculators