Focus peaking

On this page 7

Focus peaking is a manual focus aid that overlays colored highlights on the edges with the highest local contrast in the live view or electronic viewfinder, showing the photographer which parts of the scene currently lie in the plane of focus. In focus and autofocus within photography, it is the standard visual tool for judging sharpness without magnification when the lens is focused by hand.

Peaking does not move the lens or measure distance. It analyzes the live image that the sensor already produces and marks areas where fine detail is strongest, on the assumption that sharp areas contain the most high-frequency contrast. This makes it fast and intuitive, but also explains its main weakness: it reacts to contrast, not to true focus.

How focus peaking detects sharp edges

The camera processor runs an edge-detection filter on each frame of the live feed, typically a high-pass or gradient operator similar to the Sobel or Laplacian filters used in image processing. Pixels where brightness changes sharply from one neighbor to the next receive a high score, and pixels above a threshold are painted in a chosen color such as red, yellow, white or blue.

Because a defocused image loses its fine detail first, the number and intensity of highlighted edges peak when the subject is in focus. As the focus ring turns, the colored outline grows stronger on the subject, then fades as focus passes beyond it. The principle is the same one used by contrast detection AF, except that peaking leaves the decision to the photographer instead of driving the lens motor.

The display resolution matters. The live view feed is usually downscaled from the full sensor resolution, often to a few megapixels or less, so peaking evaluates a smaller image than the final file. Edges that look crisp at viewfinder resolution can still be slightly soft at 100 percent on a high-resolution sensor.

Peaking settings and what they change

Most cameras offer three adjustable parameters: peaking level, color and display mode. The level sets the detection threshold and has the greatest effect on accuracy.

SettingTypical optionsEffect on use
Peaking levelLow, mid, highLow marks only the sharpest edges, high marks more area
Peaking colorRed, yellow, white, blueChoose a color absent from the scene
Display modeAlways on, MF only, during focus ring useReduces clutter when not focusing
Peaking with magnificationOn or off during zoomed viewCombines overview with precise checking
Video outputShown on camera, external monitor or bothKeeps recorded footage clean
Typical focus peaking parameters

A low peaking level is the more precise choice because only the strongest edges cross the threshold, so the highlighted zone is narrower and closer to the true focus plane. A high level is useful for low-contrast subjects and dim light, but it marks a wider band of the scene and overstates the depth of acceptable sharpness.

Focus peaking compared with other focus aids

Focus peaking is one of several focus aids, and each serves a different purpose. The comparison below places it next to magnification, the electronic focus guide and the autofocus methods from the same topic.

MethodHow it worksMain strengthMain weakness
Focus peakingHighlights high-contrast edgesFast overview of the focus planeImprecise at high resolution
Focus magnificationEnlarges part of the live viewHighest precisionLoses the overall composition
Focus guide indicatorUses phase-detection data to show directionShows which way to turn the ringLimited to AF point areas
Contrast detection AFLens hunts for maximum contrastAccurate and automaticSlower, may hunt in low light
Phase detection AFMeasures defocus amount and directionFast tracking of moving subjectsNeeds compatible lens and light
Focus peaking and related focus aids

In practice, experienced photographers combine peaking with magnification: peaking finds the approximate focus quickly, and a magnified view at 5x to 15x confirms the critical point, such as the nearest eye in a portrait.

Where focus peaking is most useful

Peaking is most valuable whenever manual focus is necessary or preferable. It became widespread with mirrorless cameras and is now standard in video cameras, where autofocus behavior can be unpredictable during a take.

SituationWhy peaking helpsRecommended setting
Adapted manual lensesNo autofocus is availableLow level, high-contrast color
Video focus pullsShows focus shift live during recordingMid level, external monitor
Macro photographyVery thin depth of fieldLow level with magnification
Focus stackingShows each slice of sharpnessLow level, step through the subject
Landscape at hyperfocal distanceShows the extent of the sharp zoneMid level, check corners
AstrophotographyStars confirm infinity focusHigh level with magnification
Situations that favor focus peaking

In focus stacking, peaking is particularly efficient because the highlighted band visibly moves through the subject with each focus step, making gaps between slices easy to spot before the sequence is captured.

Limitations and common mistakes

The central limitation is that peaking measures contrast, not focus. A strongly textured subject slightly out of focus can produce more highlights than a smooth subject that is perfectly sharp, so the overlay must be interpreted rather than trusted blindly.

SymptomCauseFix
Slightly soft images at full sizeLevel too high or low display resolutionLower the level and confirm with magnification
Highlights on the background onlyBackground has more texture than subjectJudge the subject edges, not the strongest overlay
Overlay hard to seePeaking color matches the sceneSwitch to a contrasting color
No highlights in dim lightNoise and low contrastRaise the level or brighten the live view
Peaking visible in footageOverlay sent to the recorder outputDisable peaking on the clean output
Peaking problems, causes and fixes

A further mistake is relying on peaking at very wide apertures on high-resolution sensors. At f/1.4 on a 40-60 megapixel body, the depth of field can be a few millimeters at portrait distance, and the peaking band is often wider than the actually sharp zone.

Understanding it simply

Focus peaking is like a highlighter pen for sharpness. While you turn the focus ring, the camera draws colored outlines on whatever is sharp. You can see at a glance where the focus lands.

It works by looking for crisp edges. Sharp things have crisp edges, and blurry things do not. That makes it quick and helpful. For the finest precision, though, it works best together with a zoomed-in view of the most important detail.

Applied in practice

A documentary videographer films an interview with a vintage 50 mm manual lens on a mirrorless camera. She sets peaking to a low level in red, sends a clean signal to the external recorder and keeps the overlay only on the camera screen.

Before recording, she magnifies the subject’s nearest eye at 10x to set exact focus at f/2, then returns to the normal view. When the speaker leans forward, the red outline on his face fades and reappears on the bookshelf behind him, which tells her to pull focus closer. The interview stays sharp throughout, and the recorded footage contains no overlay.