What is Cumulative Layout Shift (CLS)?
Cumulative Layout Shift (CLS) is the Core Web Vital that measures visual stability. It scores how much visible content moves on a page without the visitor causing it, such as text pushed down by a late banner. The score has no units. Zero means nothing moved unexpectedly; Google calls 0.1 or less good.
Google defines it as a measure of the largest burst of layout shift scores for every unexpected shift during the life of a page. A layout shift happens when an element that was already visible changes position between one frame and the next. The text block that was under your thumb is now 100 pixels lower. That movement is what CLS counts.
Two details in that definition matter for everything that follows. First, only things that were already on screen and then moved count. A new element appearing is not a shift by itself; it becomes one when it pushes something visible out of the way. Second, the score is not a running total of every shift in the visit. It is the worst burst, which is why a page that twitches once during load and then sits still for ten minutes is judged on that one twitch.
CLS is one of three Core Web Vitals, alongside Largest Contentful Paint (LCP), which measures how fast the main content appears, and Interaction to Next Paint (INP), which measures how fast the page responds to input. It is the only one of the three that is not a time.
Why does CLS matter?
CLS matters because movement causes mistakes. A shopper who taps the wrong product, the wrong size or the wrong button because the page moved under their finger has a worse visit, and some of them leave. Shifts also make reading harder, since the line you were on keeps jumping away.
The business case is documented. Yahoo Japan News reported that an improvement of 0.2 in CLS came with 15.1% more page views per session and 13.3% longer sessions, after it reserved space for images that had been pushing article text down. That is one publisher’s result, not a rule, but it is a clean case because CLS was the thing they changed.
CLS also carries weight in the numbers your team reports. It is a quarter of the Lighthouse performance score: the current Lighthouse configuration weights it at 25, the same as LCP, behind only Total Blocking Time at 30. And Google uses the Core Web Vitals in Search as part of its page experience signals, so CLS appears in Search Console’s Core Web Vitals report next to the other two.
How is CLS calculated?
Each layout shift gets a score, the impact fraction multiplied by the distance fraction. Shifts less than a second apart are grouped into a session window lasting at most five seconds, and the window’s shifts are added up. Your CLS is the highest-scoring window in the visit.
The layout shift score
The formula from Google is layout shift score = impact fraction * distance fraction.
- Impact fraction is how much of the screen the moving content touched. Take the area the unstable elements covered before the shift and after it, combine the two, and divide by the viewport’s area.
- Distance fraction is how far they moved. Take the largest distance any unstable element travelled, horizontally or vertically, and divide by the viewport’s longest side.
A worked example makes it concrete. A product page is open on a phone with a viewport 400 pixels wide and 800 tall. The page has painted and fills the screen. Then a 100-pixel promotion banner is inserted at the top, and everything below it moves down 100 pixels.
- Before the shift, the moving content covered the whole screen, from 0 to 800 pixels. After it, the content covers 100 to 800. Combined, that is the whole screen, so the impact fraction is 1.0.
- It moved 100 pixels, and the longest side of the viewport is 800, so the distance fraction is 100 ÷ 800 = 0.125.
- The shift scores 1.0 × 0.125 = 0.125. On its own, that is already over the 0.1 line for good.
Session windows: the worst burst, not the total
Shifts rarely come alone. A session window is a group of shifts that happen less than one second apart, up to five seconds in total. The window’s score is the sum of its shifts, and CLS is the highest window score of the visit.
Continue the example. Three tenths of a second after the banner, the web font loads, the product description reflows, and the Add to basket button moves down 20 pixels. Only the bottom 100 pixels of the screen move, so the impact fraction is 100 ÷ 800 = 0.125, and the distance fraction is 20 ÷ 800 = 0.025. That shift scores about 0.003, and it lands in the same window as the banner. Nine seconds later, a reviews widget loads and shifts the content the shopper has scrolled to, scoring 0.05 in a new window.
| Shift | When | Score | Window |
|---|---|---|---|
| Promotion banner pushes the page down 100px | 1.2 s | 0.125 | 1 |
| Web font reflows the description, button moves 20px | 1.5 s | 0.003 | 1 |
| Reviews widget pushes content down | 10.5 s | 0.050 | 2 |
| CLS for the visit | 0.128 | Window 1 is the worst |
Before 2021, CLS added up every shift in the visit, which punished long-lived pages. Google changed it to the worst window, and its analysis at the time found 55% of origins would see no change at the 75th percentile, and that no page would get a worse score. Notice what that means for fixing the example. Reserving 100 pixels for the banner removes the 0.125 shift, and the visit’s CLS drops to 0.05, from the reviews widget. One fix moves the page from needs improvement to good.
Which movements do not count
CLS is about unexpected movement, so three kinds of movement are left out.
- Movement the visitor asked for. Shifts within 500 milliseconds of user input carry a
hadRecentInputflag and are excluded. That applies to taps, clicks and key presses. Scrolling, dragging and pinch zoom do not count as recent input. - Animations that use CSS transforms. Moving an element with
transform: translate()or resizing it withtransform: scale()does not shift the layout, so it does not score. Animatingtop,left,heightorwidthdoes. - Changes off screen. Content outside the viewport can move without scoring, because nobody saw it.
The 500-millisecond rule has a catch. If a tap starts a network request that takes longer than half a second, and the result pushes content around when it arrives, that shift counts. Google’s advice is to reserve the expected space within that 500 millisecond timeframe, for example with a placeholder or loading indicator, so the late content fills space that already exists.
What is a good CLS score?
A good CLS is 0.1 or less, and a poor one is above 0.25. Google asks sites to reach a CLS of 0.1 or less for at least 75% of page visits, so the score that counts is the 75th percentile of real visits, not the average and not a single test.
| CLS at the 75th percentile | Rating |
|---|---|
| 0 to 0.1 | Good |
| Over 0.1 to 0.25 | Needs improvement |
| Over 0.25 | Poor |
Most sites pass. In HTTP Archive’s monthly breakdown of Chrome’s field data for October 2026, 83.4% of origins had good CLS on mobile and 74.9% on desktop. Desktop doing worse than mobile is unusual among the Vitals, and the 2025 Web Almanac sees the same pattern at page level: 72% of desktop pages and 81% of mobile pages achieved a good CLS.
Home pages do slightly worse than the pages behind them. The Almanac found 71% of desktop home pages with good CLS against 73% of secondary pages, and puts it down to home pages carrying more dynamic content such as hero media, banners and promotional elements. For a shop, that describes most landing pages during a sale.
Why is CLS good in Lighthouse but poor in Search Console?
Because a lab test and real visits watch different parts of the page’s life. Lighthouse loads the page once, measures until it has loaded, and stops. Search Console reports real Chrome visits, which keep counting shifts for as long as the page is open, including while the visitor scrolls and long after load.
Google’s own explanation is that CLS measured in the lab only considers layout shifts that occur above the fold and during load, while in the field it counts every unexpected shift through the lifespan of the page. A lazy-loaded image without dimensions near the bottom of the page shifts content only for the visitors who scroll to it. A lab run never scrolls.
| Lab (Lighthouse, a single test) | Field (CrUX, Search Console) | |
|---|---|---|
| When shifts are counted | During page load | The whole visit |
| What is seen | The first screen | Everything the visitor scrolls to |
| Personalised content | Usually none | Logged-in views, targeted ads, A/B tests |
| What is reported | One value from one load | The 75th percentile of real visits |
Personalisation is the other gap. Google notes that targeted ads and A/B tests are often loaded later and inserted into the page’s main content, while a lab run usually sees the page without them. Treat a lab CLS of 0 as a sign that the first screen is stable during load, not as proof that real visitors see a still page. Part 24 of this guide covers where field data comes from, and lab vs field Core Web Vitals goes deeper on reading the two together.
What causes layout shift?
Almost every layout shift has the same cause: content that arrives after the page has painted, with no space reserved for it, so it pushes other content aside. The details differ by the kind of content, which is why there are five usual suspects.
- Images and video without dimensions. If an image has no
widthandheight, or no CSSaspect-ratio, the browser cannot reserve its box, so the text below jumps when the image arrives. In the 2025 Web Almanac, 62% of mobile pages still failed to size at least one image, down from 66% in 2024. - Ads, embeds and iframes. A third-party slot that renders after the page and decides its own height is a common offender, as are reviews widgets, video embeds and chat launchers that insert themselves into the content.
- Injected banners and notices. A promotion strip, a free delivery bar, a stock message or a cookie notice inserted at the top of the page pushes everything below. Google calls cookie consent notices a very common source of layout shifts and suggests reserving space for them, or showing them as a sticky footer or modal that sits over the page.
- Web fonts. When a font loads after the text has been drawn in a fallback font, the text reflows if the two fonts have different sizes.
- Animations that change layout. Animating size or position with layout properties moves the content around it. The Almanac found non-composited animations on 40% of mobile pages and 44% of desktop pages.
The fix is the same habit each time: reserve the space before the content arrives. How to improve CLS is the step-by-step guide, with the code for each cause.
Does CLS get worse under load?
Less than the other Core Web Vitals. Most layout shifts are built into the page: an unsized image shifts for one visitor or a thousand. Load changes when content arrives, not whether space was reserved for it, but timing matters more than it first appears.
Two things change when a server or a third party slows down. First, late content arrives later. A price, a stock message or a personalised banner that normally lands before the first paint, where it shifts nothing, can land after it when the API behind it is slow, and then it pushes the page down. Second, the 500-millisecond grace period stops covering you. A size selector that inserts a delivery estimate above the button within 200 milliseconds on a quiet day may take two seconds at peak, and when that late estimate pushes the button down, the shift now counts.
So treat CLS under load as a timing question. A page that reserves space everywhere stays stable however slow its back end gets. A page that relies on content arriving quickly can be stable on a quiet morning and shift at your busiest hour, which is when shoppers are tapping buttons in a hurry.
Common mistakes with CLS
- Trusting one lab score. A Lighthouse CLS of 0 covers the first screen during load. Check the field data at the 75th percentile, and scroll the page yourself.
- Adding up every shift. CLS is the worst session window, not the visit total, so fix the biggest burst first. One shift can be the whole score.
- Blaming every movement. Content that expands within 500 milliseconds of a tap does not count. Content that waits on a slow request after a tap does.
- Inserting notices at the top. A cookie notice, delivery banner or promotion strip pushed into the page above the content shifts everything. Reserve the space, or overlay it.
- Animating with layout properties. Use
transformto move or resize things. It looks the same and scores nothing. - Testing only the default page. Logged-in views, targeted promotions and A/B variants shift differently. Test the versions real shoppers get.
How Evaluat measures CLS
For a single page, start with a lab check. Evaluat’s free website speed test loads a public page once in a real browser and returns CLS alongside LCP, FCP and TTFB, with a video of the load, which is often enough to find a shift during load.
Evaluat Performance Testing covers the timing question. Every virtual user is a real browser, and each one records its own Core Web Vitals, including CLS, together with session video, network logs and console logs, while the test holds your forecast traffic on the site. Web Vitals captured at load. Per session. Per URL. When a shift appears only at peak, you can open the session, see which request arrived late, and watch the moment the page jumped.
Be clear about the boundary. A load test is still a controlled browser running a scripted journey, not every device your customers own, so it does not replace field data. Use your CrUX numbers to see whether real visitors are affected, and a load test to see whether your busiest hour makes it worse before that hour arrives.
CLS is the easiest Core Web Vital to understand and usually the easiest to fix: reserve the space before the content arrives, and judge the result at the 75th percentile of real visits.
Test in real browsers. Debug in real sessions.
Book a demo to see CLS for every virtual user at your forecast peak.