S
SoSimple.tools
Audio, Video & Photography

Depth of Field Calculator

Find out how much of your scene will be acceptably sharp, and which hyperfocal distance suits a landscape, from your sensor size, focal length, aperture and focus distance

Runs in your browser: what you enter stays on your device

Camera & Lens Settings

mm
f/
m

Must be longer than the focal length. Switching the unit converts the value.

Your Results
Total Depth of Field
5.77 m
3.43 m – 9.21 m
Sharp Zone, Camera to Background
0 10.3 m
Acceptably sharp Focus distance
Hyperfocal Distance
10.9 m

Focus at 10.9 m and everything from 5.44 m to infinity stays acceptably sharp

Near Limit
3.43 m
Far Limit
9.21 m
In Front of Subject
1.57 m
27%
Behind Subject
4.21 m
73%
Circle of Confusion
28.8 µm
d ÷ 1500
Sensor
36 × 24 mm
Diagonal 43.3 mm · crop factor 1.00
Diffraction Check

Airy disc about 10.7 µm, smaller than the 28.8 µm circle of confusion: diffraction should not visibly soften the image at this standard.

Estimate from thin-lens geometry. Real lenses, focus accuracy and viewing size shift where sharpness ends, so treat the limits as a planning guide, not a guarantee.

Share this tool

How to Use This Depth of Field Calculator

  1. Choose the sensor format of your camera body. For a phone or any other sensor, pick Custom size and type the width and height from the spec sheet.
  2. Enter the real focal length printed on the lens, or tap a common value. With a zoom lens use the setting on the barrel.
  3. Set the aperture you plan to shoot at. Tap a common f-number or type any value.
  4. Enter the distance to your subject in meters or feet. Switching the unit converts what you typed.
  5. Read the sharp zone, near and far limits and how much of it lies in front of and behind the subject. For landscapes, press the hyperfocal button and check that the near limit is close enough for your foreground.

Worked Example: A 50 mm Lens on Full Frame

Full frame, 50 mm, f/8, focused at 5 m, with the default standard (sensor diagonal 43.27 mm ÷ 1500 = 28.8 µm circle of confusion). The hyperfocal distance is 10.9 m. The sharp zone starts at 3.43 m and ends at 9.21 m, so total depth of field is 5.77 m: 1.57 m in front of the subject (27%) and 4.21 m behind it (73%).

Press the hyperfocal button and the focus point moves to 10.9 m. The sharp zone now runs from 5.44 m to infinity, but a subject at 5 m would sit in front of that zone, which is the trade-off of hyperfocal focusing.

Methodology

Depth of field is the band of distances that looks acceptably sharp in the final image. Strictly, a lens renders only one distance perfectly sharp; nearer and farther points become small blur discs, and “acceptable” means those discs stay below the circle of confusion c. The tool uses the standard thin-lens formulas with all lengths in millimeters, where f is focal length, N the f-number and s the focus distance: hyperfocal H = f²/(N·c) + f, near limit Dn = s(H − f)/(H + s − 2f) and far limit Df = s(H − f)/(H − s), which becomes infinite once s ≥ H. Check with the defaults (50 mm, f/8, c = 28.8 µm, s = 5 m): f²/(N·c) = 10.8 m, so H = 10.9 m, Dn = 3.43 m and Df = 9.21 m.
The circle of confusion: c is a sharpness standard, not a law of nature. The default divides the sensor diagonal by 1500, about 28.8 µm on full frame. “Fine” divides by 1730 (about 25.0 µm), a ratio often credited to Zeiss although its origin is disputed. “Strict” divides by 3000 (about 14.4 µm on full frame); that value is this tool’s own assumption for big prints or heavy cropping, not an industry norm.
Sensor size: The sharpness standard scales with the sensor, so the crop factor matters. At equal framing and f-number a smaller sensor gives more depth of field. The crop factor shown is the full-frame diagonal (43.27 mm) divided by your sensor’s diagonal.
Diffraction: Stopping down adds depth of field but also diffraction. The Airy disc diameter is roughly 2.44 × wavelength × N; the tool uses 550 nm green light, giving 10.7 µm at f/8 and 21.5 µm at f/16. When it exceeds c, the aperture is limiting fine detail. This is a simple rule of thumb, since real sharpness also depends on the lens and sensor.
Limits of the method: The formulas model an ideal thin lens and a hard sharp/blurred edge, while real sharpness fades gradually. They ignore lens aberrations and focus breathing, drift at very close range and depend on how large you view or crop the image. Zoom into a test frame for critical work.

Hyperfocal cheat sheet, plus one portrait lesson

Hyperfocal distances for full frame with the default standard. Focus at the value in the third column and everything from the fourth column to infinity is acceptably sharp.

Lens (full frame)ApertureFocus at (hyperfocal)Sharp from
24 mmf/82.52 m1.26 m
24 mmf/111.84 m92.0 cm
35 mmf/85.34 m2.67 m
35 mmf/113.90 m1.95 m
50 mmf/810.9 m5.44 m
85 mmf/5.644.8 m22.4 m

Read down the table: closing a 24 mm lens from f/8 to f/11 pulls the hyperfocal point in from 2.52 m to 1.84 m, while longer lenses push it far out, so at 85 mm and f/5.6 nothing nearer than 22.4 m is covered.

Case: Marta photographs her niece 2 m away with an 85 mm lens on full frame. At f/1.4 the tool shows a sharp zone of only 4.28 cm (1.98 m to 2.02 m), so a small head tilt can leave one eye soft. At f/2.8 the zone doubles to 8.57 cm (1.96 m to 2.04 m); at f/5.6 it reaches 17.2 cm (1.92 m to 2.09 m). She picks f/2.8: both eyes stay sharp and the background is still well blurred.

Handy Gear for Photo and Video

Small extras for shooting, from phone lenses and lighting to keeping your glass clean

Our pick Phone Photography
Xenvo Pro Lens Kit for iPhone and Android, Macro and Wide Angle Lens with LED Light and Travel Case Black

Xenvo Pro Lens Kit for iPhone and Android, Macro and Wide Angle Lens with LED Light and Travel Case Black

Clip-on macro and wide-angle lenses for a phone camera, with a small LED light and a travel case.

Our pick Video Lighting
UBeesize 12" LED Ring Light with 62" Tripod Stand, Phone Holder & Remote, Dimmable Selfie Light

UBeesize 12" LED Ring Light with 62" Tripod Stand, Phone Holder & Remote, Dimmable Selfie Light

A dimmable 12-inch ring light on a tripod with a phone holder and remote, for even light when you record or stream.

Our pick Lens Care
K&F CONCEPT 4 in 1 Camera Lens Cleaning Kit with Blower, Multi Pen and Microfiber Cloth

K&F CONCEPT 4 in 1 Camera Lens Cleaning Kit with Blower, Multi Pen and Microfiber Cloth

A blower, lens pen and washable microfiber cloth to remove dust from lenses and filters before you shoot.

As an Amazon Associate we earn from qualifying purchases at no additional cost to you.

Related tools

Frequently asked questions

What is hyperfocal distance and how do I use it? ▼

It is the focus distance at which the far limit reaches infinity. Focus there and everything from half that distance to infinity is acceptably sharp. With a 24 mm lens at f/8 on full frame, H is about 2.52 m, so focusing at that distance keeps everything from 1.26 m to infinity sharp by the default standard. Because the horizon sits right at the blur limit, some photographers focus a little beyond H to make distant detail crisper, at the cost of moving the near limit outward.

How do I enter a phone camera or another unusual sensor? ▼

Choose Custom size and type the real sensor width and height from the spec sheet, then the real focal length, not the equivalent. Many phone makers publish only the 35 mm equivalent; divide it by the crop factor to get the real focal length. Phone sensors are tiny and their real focal lengths short, so hyperfocal distances are very short and most of a scene is sharp at any aperture.

Why do other calculators show slightly different numbers? ▼

Mostly because of the circle of confusion. Some use the sensor diagonal ÷ 1500, others ÷ 1730, and others fixed values such as 0.030 mm for full frame, which gives a slightly deeper zone than 28.8 µm. Some also write H as f²/(N·c) without the extra f term, a difference of one focal length. Compare tools with the same standard, and switch to Strict when you plan big prints.

Does a longer lens reduce depth of field? ▼

At the same subject distance and aperture, yes: depth of field falls roughly with the square of the focal length. On full frame with a subject 2 m away at f/2.8, an 85 mm lens gives a sharp zone of only 8.57 cm (1.96 m to 2.04 m). But if you step back to keep the subject the same size, the difference between lenses mostly disappears: at equal framing, depth of field is set mainly by aperture and sensor size.

How do I get a landscape sharp from front to back? ▼

Use a wide lens, stop down to about f/8 to f/11, focus at the hyperfocal distance and check that the near limit covers your foreground. Avoid very small apertures: at f/22 the Airy disc is about 29.5 µm, already larger than the 28.8 µm default on full frame, so diffraction softens fine detail. When a foreground is very close, geometry alone cannot help and focus stacking several frames is the usual solution.