Nightcrop
LoginGet started

What Is Cumulative Layout Shift (CLS) and How to Fix It

Nightcrop · November 15, 2026

Cumulative Layout Shift (CLS) measures how much visible content jumps around while a page loads. A good score is 0.1 or lower. Between 0.1 and 0.25 needs improvement, and above 0.25 is poor. The usual fixes are setting image sizes, reserving space for ads and embeds, and managing web fonts.

What does CLS actually measure?

You have seen layout shift even if you did not know its name. You start reading, an image loads above the text, and the paragraph slides down. Or you go to tap a button and an ad pushes it away, so you hit the wrong thing. CLS puts a number on that annoyance.

Google's web.dev guide to CLS defines it as the largest burst of layout shift scores for unexpected shifts during a page's life. A layout shift happens when a visible element changes position between two rendered frames. CLS is one of the three Core Web Vitals, alongside loading speed and responsiveness.

How is the CLS score calculated?

Each shift gets a score from two parts multiplied together:

web.dev gives a worked example. An impact fraction of 0.75 and a distance fraction of 0.25 give a shift score of 0.1875. That single shift already lands in the "needs improvement" range, which shows how little it takes.

The page's CLS is not the sum of every shift. Shifts are grouped into session windows. A window holds shifts that occur less than one second apart and lasts at most five seconds. Your CLS is the highest total among all windows. That is why one bad burst at load matters more than many tiny shifts spread over a long visit.

What is a good CLS score?

RatingCLS value
Good0.1 or less
Needs improvementAbove 0.1 up to 0.25
PoorAbove 0.25

These thresholds come from web.dev, which says to judge a page at the 75th percentile of page loads, split across mobile and desktop. In plain terms, at least three out of four real visits should be good. A single clean test on your fast laptop does not count.

What causes layout shifts?

web.dev lists four common causes. Each has a direct fix.

Images and video with no dimensions

If the browser does not know an image's size, it reserves no space. When the file arrives, everything below moves. Add width and height attributes to every image and video, or use the CSS aspect-ratio property so the box exists before the file does.

Web fonts that differ from the fallback

When a custom font replaces a fallback font and the letters are wider or narrower, lines rewrap and text moves. Preload the one or two fonts you need above the fold, and pick a fallback font with similar metrics.

Ads, embeds and third-party widgets

These often resize themselves after loading. Give each slot a fixed minimum height in CSS. An empty reserved box is a better experience than a page that lurches.

Content injected above existing content

Cookie banners, promo bars and "related" blocks that appear at the top push the page down. Place them where they cannot move content already in view, or reserve their space from the start.

How to find the shifts on your own pages

  1. Start with field data. The Core Web Vitals report in Google Search Console groups URLs by status, so you can see which templates fail.
  2. Reproduce in a lab test. Run the page through Lighthouse or Chrome DevTools. The Performance panel marks layout shifts and highlights the element that moved.
  3. Test on a slow connection. Throttle the network. Shifts that are invisible on fast broadband show up when images and fonts arrive late.
  4. Fix the template, not the page. A missing image size in your blog layout affects every post that uses it.

Loading speed has its own fix list, covered in how to improve LCP.

Does CLS affect rankings?

CLS is one of the Core Web Vitals, so a poor score is worth fixing, but this post makes no claim about how much weight it carries in ranking. Treat it as a floor, not a lever. A stable page keeps readers from tapping the wrong thing in frustration, and the fix is often easy. Do not rebuild a site to move from 0.12 to 0.08. If your pages are not being found at all, the problem is more likely crawling or indexing, so start with what crawling and indexing are.

Frequently Asked Questions

What is a good CLS score?

0.1 or lower, measured at the 75th percentile of real page loads. Scores above 0.25 are rated poor.

Is a lower CLS always better?

Yes, a lower number means less movement, and zero means nothing shifted unexpectedly. Past the "good" line, extra effort rarely pays off.

Do shifts caused by a click count?

No. CLS counts unexpected shifts. Movement that follows a user action, such as expanding a menu, is expected and does not count against you.

Why is my CLS different in Lighthouse and Search Console?

Lighthouse is a single lab test on a simulated load. Search Console uses field data from real visits, which includes scrolling and late-loading content. Trust the field data when they disagree.

What is the fastest CLS fix?

Add width and height to your images. It is a small change to your template, and it is the most common cause of shifts on content sites.