Core Web Vitals
In short
Core Web Vitals are three metrics that measure a page's real-user experience: loading speed (LCP), responsiveness (INP), and visual stability (CLS).
What are Core Web Vitals?
Core Web Vitals are a set of three metrics, defined by Google as part of its Web Vitals initiative, that measure how a page feels to real users. Largest Contentful Paint (LCP) measures loading, meaning how long the biggest image or block of text in the visible area takes to appear. Interaction to Next Paint (INP) measures responsiveness, meaning how quickly the page visibly reacts after a click, tap, or key press, and Cumulative Layout Shift (CLS) measures visual stability, meaning how much content unexpectedly jumps around.
A page passes when at least 75 percent of visits meet the good thresholds: an LCP of 2.5 seconds or less, an INP of 200 milliseconds or less, and a CLS of 0.1 or less. The scores come from field data, meaning measurements collected from real visitors' browsers, and Google Search uses them as one of its page experience ranking signals. INP replaced the older First Input Delay (FID) metric in March 2024.
Think of a restaurant visit: LCP is how soon your food arrives, INP is how quickly the waiter responds when you wave, and CLS is whether someone keeps moving your plate while you eat. Teams improve LCP by optimizing images and server response times, INP by breaking up long JavaScript tasks that block the main thread, and CLS by reserving space for images, ads, and embeds with explicit sizes.
Core Web Vitals are often confused with lab scores from tools such as Lighthouse. Lab tests load a page once on a simulated device and are great for debugging, while Core Web Vitals are based on field data from real visitors over the previous 28 days, so the two can disagree. Lab tools also can't measure INP directly, because it needs real user interactions, so they report related metrics such as Total Blocking Time instead.
Key takeaways
- The three Core Web Vitals are LCP (loading), INP (responsiveness), and CLS (visual stability).
- Good scores are LCP of 2.5 s or less, INP of 200 ms or less, and CLS of 0.1 or less.
- A page passes when at least 75 percent of real visits meet those thresholds.
- They are a Google Search ranking signal, but content relevance matters more.
- INP replaced First Input Delay (FID) in March 2024.
Example
// Using the open-source web-vitals library
import { onLCP, onINP, onCLS } from "web-vitals";
function sendToAnalytics({ name, value, rating }) {
// e.g. name: "LCP", value: 1830 (milliseconds), rating: "good"
navigator.sendBeacon("/analytics", JSON.stringify({ name, value, rating }));
}
onLCP(sendToAnalytics);
onINP(sendToAnalytics);
onCLS(sendToAnalytics);Readers ask
What are the three Core Web Vitals?
They are Largest Contentful Paint (LCP) for loading speed, Interaction to Next Paint (INP) for responsiveness, and Cumulative Layout Shift (CLS) for visual stability.
Do Core Web Vitals affect SEO?
Yes, they are part of the page experience signals Google uses in search ranking. Their effect is usually smaller than the relevance and quality of the content, so they matter most when competing pages are otherwise similar.
What replaced First Input Delay?
Interaction to Next Paint (INP) replaced First Input Delay (FID) as a Core Web Vital in March 2024. FID measured only the delay before the first interaction was handled, while INP looks at how long interactions take to update the screen throughout the whole visit.
See also
- SEOWeb Development, p. 39SEO is the practice of improving a website's content and technical setup so that search engines can find, understand, and rank its pages for relevant searches.
- Web BrowserWeb Development, p. 57A web browser is an application that fetches web pages from servers and turns their HTML, CSS, and JavaScript into the interactive pages you see on screen.
- JavaScriptWeb Development, p. 24JavaScript is the programming language that runs in web browsers to make pages interactive, and it also runs on servers through runtimes like Node.js.
- CDNDevOps & Cloud, p. 7A CDN is a network of servers spread around the world that stores copies of website content and delivers it to each user from the nearest location.
- Responsive DesignWeb Development, p. 38Responsive design is an approach to building web pages whose layout, images, and text adapt automatically to any screen size, from phones to large monitors.
- BundlerWeb Development, p. 3A bundler is a build tool that combines JavaScript modules and their dependencies into a few optimized files that browsers can download and run quickly.
Spotted a mistake or something missing on this page?Suggest an edit