Focus bracketing

On this page 6

Focus bracketing is a capture technique in which the camera records a sequence of frames while moving the focus plane by a defined step between shots, so that each frame is sharp at a different distance. In the focus & autofocus vocabulary of photography, it is the acquisition stage that supplies the source images for focus stacking, which later merges the sharp regions into one image with extended depth of field.

The technique solves a physical limit: at close distances or with long lenses, depth of field becomes extremely shallow, and stopping down further brings diffraction softness. Focus bracketing sidesteps that limit by capturing depth in slices rather than in a single exposure.

How focus bracketing works

In a focus bracketing sequence, the camera drives the lens focusing motor through a programmed series of positions, usually starting at the nearest point the photographer selects and moving toward infinity. Each frame is exposed at the same aperture, shutter speed and ISO, so the frames differ only in where the plane of sharp focus lies.

The key settings are the number of shots, the focus step width and the interval between frames. Many cameras express the step width as an abstract scale, for example 1 to 10, where small values produce heavy overlap between adjacent zones of sharpness. Some systems calculate the step automatically from the aperture and the lens, which reduces the risk of gaps between sharp zones.

The table below lists the parameters most cameras expose and how each affects the result.

ParameterTypical rangeEffect on the sequence
Number of shots3 to 999Total depth covered and processing time
Focus step widthNarrow to wide scaleOverlap between sharp zones
Interval0 to several secondsTime for flash recycling or vibration to settle
Exposure smoothingOn or offCompensates brightness shifts from focus breathing
Shutter typeMechanical or electronicShake from shutter shock versus rolling shutter risk
Main focus bracketing parameters

Focus bracketing is capture only, while focus stacking is the merging step performed in the camera or in software. The two terms are often used interchangeably, but separating them clarifies where errors arise: gaps in sharpness come from bracketing, while halos and smearing come from stacking.

TechniqueWhat changes between framesOutput
Focus bracketingFocus distanceA series of differently focused frames
Focus stackingNothing, it is processingOne image with extended depth of field
Exposure bracketingExposureFrames for HDR or safe exposure choice
Focus rail stackingCamera position on a macro railFrames with constant magnification steps
Hyperfocal focusingSingle frame, no seriesMaximum depth of field in one shot
How focus bracketing relates to similar techniques

A motorized macro focusing rail moves the whole camera instead of the focus group. It is preferred at magnifications above about 1:1, where lens-based focus changes alter magnification too strongly and many lenses cannot step finely enough.

In-camera bracketing has a clear advantage over manual refocusing: the focus motor moves in repeatable increments, and the photographer never touches the camera during the sequence. Manual bracketing by turning the focus ring remains possible with older or adapted lenses, but it is slower and makes uneven spacing between frames far more likely. Because each frame shares identical exposure settings, the series can also be processed as one batch in raw software before stacking, which keeps color and white balance consistent across every slice. Some bodies also offer in-camera stacking, which produces a finished JPEG immediately, although dedicated software usually gives better control over halos and retouching.

Choosing the number of frames and step size

The required frame count depends on subject depth, magnification and aperture. Depth of field shrinks roughly with the square of magnification, so a macro subject a few millimeters deep may need dozens of frames, while a landscape with a near foreground often needs only 3 to 8 frames.

Photographers usually work at a moderate aperture such as f/5.6 to f/8 for landscapes and f/4 to f/8 for macro, which keeps lens performance near its peak and avoids diffraction softening. A narrower step adds frames but guarantees overlap; a gap appears as a band of softness in the final stack that cannot be repaired.

SubjectTypical apertureApproximate framesNotes
Landscape with foregroundf/83 to 8Tripod, watch moving foliage
Product on a tablef/8 to f/1110 to 30Controlled light, stable support
Flower close-up at 1:2f/5.620 to 50Wind shelter needed
Insect at 1:1 or higherf/4 to f/5.650 to 200Focusing rail often better
Typical focus bracketing setups by subject

Limitations and common problems

Focus bracketing assumes a static subject and a stable camera. Any movement between frames, from wind, breathing insects or a flexing tripod, produces ghosting or misalignment that stacking software cannot fully correct.

  • Focus breathing changes framing and magnification across the sequence, which forces the stacking software to scale and crop frames.
  • Changing light, such as passing clouds, causes brightness differences between slices.
  • Overlapping edges of near and far objects create halos or transparent artifacts in the merged image.
  • Starting point errors leave the nearest or farthest detail out of focus when the sequence begins or ends too early.
  • Large file volumes from long sequences demand storage and processing time.

Most of these problems are reduced with a solid tripod, electronic first curtain or a short interval, a remote release and careful choice of the start point at the nearest detail that must be sharp.

The simple explanation

Focus bracketing means the camera takes several photos in a row, each focused a little further away. One photo is sharp at the front, the next a bit deeper, and so on.

Later, software combines the sharp parts of all photos into one picture that is sharp from front to back. It is like scanning a scene in thin slices and then stacking the slices together.

How it is used in practice

A product photographer needs a sharp image of a wristwatch for an online catalog. Shot at a reproduction ratio of about 1:2, even f/11 leaves only the dial sharp while the strap and crown fall out of focus, and f/22 would soften everything through diffraction.

With the camera on a tripod, the photographer sets f/8, focus bracketing with 25 frames and a narrow step, and starts the sequence at the front edge of the crown. Stacking software merges the frames into one file with the whole watch sharp from crown to strap, and the client receives a clean, detailed image without retouching of soft areas.