WebSeoSG - Online Knowledge Base - 2025-09-03

How to Measure and Calculate CLS: Impact Fraction and Distance Fraction Explained

Cumulative Layout Shift (CLS) is calculated by multiplying two key components: Impact Fraction and Distance Fraction.

  • Impact Fraction measures how much of the viewport area is affected by the layout shift. It is calculated by dividing the area of the impact region (the combined area of elements before and after the shift) by the total viewport area. The impact region is typically a rectangle covering all shifted elements and their original positions.

    [ \text{Impact Fraction} = \frac{\text{Area of Impact Region}}{\text{Area of Viewport}} ]

  • Distance Fraction measures how far the shifted elements have moved relative to the viewport height. It is calculated by dividing the maximum distance any unstable element has moved by the viewport height.

    [ \text{Distance Fraction} = \frac{\text{Maximum Move Distance}}{\text{Viewport Height}} ]

The layout shift score for a single shift is then:

[ \text{Layout Shift Score} = \text{Impact Fraction} \times \text{Distance Fraction} ]

For example, if elements covering 70% of the viewport shift down by 20% of the viewport height, the layout shift score is:

[ 0.7 \times 0.2 = 0.14 ]

CLS is measured over session windows—bursts of layout shifts within up to 5 seconds—and the highest layout shift score in any session window is used as the CLS score for the page.

This method captures both the size of the affected area and the distance it moves, reflecting the visual instability users experience during page load or interaction.

Internet images

WebSeoSG offers the highest quality website traffic services in Singapore. We provide a variety of traffic services for our clients, including website traffic, desktop traffic, mobile traffic, Google traffic, search traffic, eCommerce traffic, YouTube traffic, and TikTok traffic. Our website boasts a 100% customer satisfaction rate, so you can confidently purchase large amounts of SEO traffic online. For just 40 SGD per month, you can immediately increase website traffic, improve SEO performance, and boost sales!

Having trouble choosing a traffic package? Contact us, and our staff will assist you.

Free consultation

Free consultation Customer support

Need help choosing a plan? Please fill out the form on the right and we will get back to you!

Fill the
form