Understanding Depth of Field – A Beginner’s Guide

Depth of Field Made Simple

Learn what stays sharp, what turns soft, and why it changes

Depth of field is the area in a photo that looks sharp enough to the eye. It helps you control whether only your subject stands out, or more of the scene stays in focus.

What is depth of field?

Depth of field, often called DoF, is the distance between the nearest and farthest parts of a scene that look acceptably sharp in an image.

A shallow depth of field means only a small part of the image is sharp. This is common in portraits where the person is in focus but the background looks soft or blurred.

A deep depth of field means more of the scene looks sharp. This is useful in landscapes, architecture, and travel photos where you want both the front and background to stay clear.

Aperture A wider aperture like f/1.8 gives a shallower depth of field. A smaller aperture like f/8 or f/11 gives a deeper depth of field.
Focal length Longer lenses like 85mm or 200mm usually make the background look more compressed and blurrier than wider lenses.
Distance to subject The closer you are to your subject, the shallower the depth of field becomes. The farther you move back, the more depth appears in focus.
Simple example

Imagine you are taking a portrait with a 50mm lens at f/1.8 from 6 feet away. The person may look sharp, but the wall behind them may already start to blur. If you keep the same lens and distance but change to f/8, much more of the background will stay sharp.

How is it calculated?

The calculator uses focal length, aperture, subject distance, and sensor size to work out four things: near focus, far focus, total depth of field, and hyperfocal distance.

Hyperfocal distance: H = (f² / (N × c)) + f

Here:
f = focal length
N = aperture or f-number
c = circle of confusion, based on sensor size

Near focus distance: Near = (H × s) / (H + (s - f))
Far focus distance: Far = (H × s) / (H - (s - f))
Total depth of field: DoF = Far - Near

You do not need to calculate these manually. The simulator below does it for you. Move the sliders, try the presets, and watch how the sharp zone changes.

Depth of Field Simulator
50mm f/1.8 📷
Near Focus 5' 9"
Far Focus 6' 3"
DOF Width 0' 5"
Subject Height 6' 0"
Near Focus
5' 9"
Far Focus
6' 3"
Total DOF
0' 5"
Hyperfocal
157' 4"
Portrait Range
Units
6' 0"
50 mm · Perspective compression
f/1.8
Manual DOF Check

Try your own values

Enter your own camera settings below to quickly calculate near focus, far focus, total depth of field and hyperfocal distance.

Uses the same DOF logic as the simulator above.
Near Focus
Far Focus
Total DOF
Hyperfocal

Now you can see how depth of field really works

Depth of field is not random. It changes based on distance, aperture, focal length and sensor size. When any of these change, the sharp zone in the image also changes.

What you should remember

A wide aperture like f1.8 gives shallow depth of field. A smaller aperture like f8 or f11 increases the sharp area.

Longer lenses usually give less depth of field. Shorter lenses usually give more depth of field.

The closer the camera is to the subject, the shallower the depth of field becomes. When the camera moves farther away, more of the scene stays sharp.

These relationships are not guesswork. They come from the optical formula that uses focal length, aperture, subject distance and circle of confusion to calculate near focus, far focus and total depth of field.

Why the simulator helps

Many photographers try to remember rules, but depth of field is easier to understand when you can see it change. When you move the sliders above, the calculator applies the same equations used in real lenses.

The hyperfocal distance formula, near focus formula and far focus formula are used to find the exact range that looks sharp in the image.

This is why two photos taken with the same lens can look completely different when the distance or aperture changes.

Strong background blur is not only about aperture. It is the combination of aperture, focal length, distance and sensor size that creates the final look. Try different values in the simulator above and watch how the sharp zone moves.
Change the distance. Change the lens. Change the aperture. Watch how the sharp zone moves.
Depth of field only makes sense when you play with it.
Visited 44 times, 1 visit(s) today

Leave a comment

Your email address will not be published. Required fields are marked *