Skip to content
Web Development

Core Web Vitals Explained: LCP, INP and CLS and How to Improve Them

A practical guide to Google's Core Web Vitals: what LCP, INP and CLS measure, the 'good' thresholds, how to measure them and the fixes that matter most.

  • Published
  • Updated
  • 4 min read
Laptop showing a website performance dashboard with three green gauges beside a smartphone displaying a fast-loading web page
Laptop showing a website performance dashboard with three green gauges beside a smartphone displaying a fast-loading web page. AI-generated illustration.

Key takeaways

  • Aim for LCP ≤ 2.5 s, INP ≤ 200 ms and CLS ≤ 0.1 at the 75th percentile of real visits.
  • Google assesses Core Web Vitals from real-user field data, not Lighthouse lab scores.
  • Server speed, the LCP image, reserved space for media and less JavaScript fix most problems.
On this page
  1. The three Core Web Vitals at a glance
  2. Largest Contentful Paint (LCP)
  3. Common causes of slow LCP
  4. How to improve LCP
  5. Interaction to Next Paint (INP)
  6. Common causes of poor INP
  7. How to improve INP
  8. Cumulative Layout Shift (CLS)
  9. How to improve CLS
  10. How to measure Core Web Vitals correctly
  11. A practical priority list
  12. Conclusion

A page that loads slowly, reacts sluggishly to taps or jumps around while you read is frustrating, and visitors leave. Core Web Vitals are Google's attempt to measure those frustrations with three numbers. They are used in Google Search as part of its page experience signals, and they are a useful health check for any website.

This guide explains each metric, the thresholds to aim for, how to measure them properly and the improvements that usually make the biggest difference.

The three Core Web Vitals at a glance

MetricWhat it measuresGoodNeeds improvementPoor
LCP – Largest Contentful PaintLoading: when the main content appears≤ 2.5 s2.5–4.0 s> 4.0 s
INP – Interaction to Next PaintResponsiveness to clicks, taps and key presses≤ 200 ms200–500 ms> 500 ms
CLS – Cumulative Layout ShiftVisual stability: unexpected movement≤ 0.10.1–0.25> 0.25

A page "passes" when the 75th percentile of real visits meets the "good" threshold for all three, measured separately for mobile and desktop. Using the 75th percentile means most visitors, not just those with fast phones, get a good experience.

Largest Contentful Paint (LCP)

LCP marks the moment the largest image or text block in the viewport finishes rendering. On most pages that is a hero image, a featured image or the main headline.

Common causes of slow LCP

  • Slow server response (high Time to First Byte).
  • Render-blocking CSS and JavaScript in the page head.
  • A large, unoptimised hero image, or one that is lazy-loaded by mistake.
  • The LCP image being discovered late, for example when it is set as a CSS background or injected by JavaScript.

How to improve LCP

  • Serve pages from a CDN and cache HTML where possible. Static or pre-rendered pages help a lot.
  • Compress images and use modern formats such as AVIF or WebP, with correct width and height.
  • Never lazy-load the LCP image. Mark it as high priority (fetchpriority="high") and make sure it appears in the HTML.
  • Inline critical CSS and defer non-essential scripts.

Interaction to Next Paint (INP)

INP replaced First Input Delay (FID) as a Core Web Vital in March 2024. It observes interactions throughout a visit and reports a value close to the slowest one, measuring from the user's action until the browser paints the next frame.

Common causes of poor INP

  • Long tasks on the main thread: heavy JavaScript that blocks the browser for more than 50 ms.
  • Too many third-party scripts, such as tag managers, chat widgets and ad scripts.
  • Expensive event handlers that do lots of work before updating the screen.
  • Very large DOM trees that make rendering slow.

How to improve INP

  • Ship less JavaScript: remove unused libraries, split code by route and audit third-party tags.
  • Break up long tasks so the browser can respond between chunks of work.
  • Give immediate visual feedback in event handlers, then do the heavy work afterwards.
  • Avoid re-rendering large parts of the page for small changes.
How to optimize web responsiveness with Interaction to Next Paint · Chrome for Developers
Google's Chrome team walks through measuring and fixing slow interactions, the newest and often hardest Core Web Vital to improve.

Cumulative Layout Shift (CLS)

CLS adds up unexpected layout movements, such as when an image loads and pushes text down just as you are about to tap a link.

How to improve CLS

  • Always set dimensions on images, videos and iframes (width/height or CSS aspect-ratio).
  • Reserve space for ads, embeds and banners before they load.
  • Avoid inserting content above existing content, except in response to a user action.
  • Load web fonts with sensible fallbacks to limit reflow when the font swaps in.
  • Animate with transform and opacity rather than properties that change layout.

How to measure Core Web Vitals correctly

There are two kinds of data, and you need both:

  • Field data (real users): Google Search Console's Core Web Vitals report and the field section of PageSpeed Insights, both based on the Chrome User Experience Report. This is what Google uses in its assessment, summarised over a rolling 28-day period.
  • Lab data (simulated): Lighthouse and Chrome DevTools. Lab tests are ideal for debugging because they are repeatable, but they do not reflect your real audience's devices and networks.

For ongoing monitoring, you can collect your own field data with Google's open-source web-vitals JavaScript library and send it to your analytics.

A practical priority list

If you are starting from scratch, work in this order:

  1. Check Search Console to see which page groups fail, and on which device type.
  2. Fix server speed and caching. It improves LCP for every page.
  3. Optimise the LCP element on your key templates.
  4. Reserve space for images and ads to fix CLS.
  5. Audit and trim JavaScript, starting with third-party scripts, to improve INP.
  6. Re-measure. Field data takes up to 28 days to fully reflect changes.

Conclusion

Core Web Vitals turn "this site feels slow" into three measurable targets: load the main content within 2.5 seconds, respond to interactions within 200 milliseconds and keep layout shifts below 0.1. They are not a substitute for useful content, but fast, stable pages keep visitors around long enough to read it. For another way to improve the user experience, see how passkeys simplify sign-in.

Frequently asked questions

Do Core Web Vitals affect Google rankings?

Google says Core Web Vitals are used by its ranking systems as part of page experience, but relevance and content quality matter far more. Good scores will not rescue unhelpful content, though they do improve the experience for visitors.

What replaced First Input Delay (FID)?

Interaction to Next Paint (INP) replaced FID as a Core Web Vital in March 2024. INP measures the responsiveness of all interactions during a visit, not just the first one.

Why do my Lighthouse scores differ from Search Console?

Lighthouse runs a lab test on one simulated device and connection. Search Console and PageSpeed Insights field data come from real Chrome users over the previous 28 days. Field data is what Google uses for Core Web Vitals assessment.

Sources and further reading

  1. web.dev – Web Vitals
  2. web.dev – Interaction to Next Paint (INP)
  3. Google Search Central – Understanding Core Web Vitals and Google search results