WebmasterID logoWebmasterID
Analytics metrics

Cumulative Layout Shift (CLS)

Cumulative Layout Shift (CLS) measures the largest burst of unexpected layout shifts during a page's lifetime. Each shift contributes a layout-shift score equal to the impact fraction times the distance fraction, and the Layout Instability API reports those entries. To avoid penalising long-lived pages, CLS is the maximum sum within a session window of shifts rather than a running total, which is why a stable page that occasionally moves can still score low.

Verified against primary sources

What this means

CLS quantifies how much visible content moves without a user action. Each unexpected shift gets a layout-shift score; CLS is the largest sum of those scores within a single session window of shifts, not the total across the whole visit, so a long page is not punished for many small unrelated moves.

How the score is built

A single shift's score is the impact fraction (how much of the viewport the unstable element moved through) multiplied by the distance fraction (how far it moved relative to the viewport). The Layout Instability API exposes these as layout-shift entries, excluding shifts that follow recent user input.

Why it misleads

CLS only counts unexpected movement, so it can look fine in a fast lab run yet spike in the field when ads or A/B tests inject content. Reserving space with width and height attributes or CSS aspect-ratio prevents the shifts the metric is designed to catch.

How it appears in analytics and logs

A high CLS means visible content moved unexpectedly — usually images or ads without reserved space, late-injected banners, or web fonts that reflow text after load.

Diagnostic use case

Use CLS to catch content that jumps as images, ads, or fonts load, since unexpected movement causes misclicks and a sense of instability even when timing metrics look good.

What WebmasterID can help detect

WebmasterID can capture layout-shift timing as a first-party event so CLS is read against human-classified sessions and not inflated by automated renders.

Common mistakes

Privacy and accuracy notes

CLS is a visual-stability score from the browser, not an identifier. This is educational material, not legal advice.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.