SEO glossary

What is LCP (Largest Contentful Paint)?

Largest Contentful Paint (LCP) measures how long the largest image or text block in the viewport takes to render; good is 2.5 seconds or less.

Check it free: Page Speed Test

LCP (Largest Contentful Paint): Largest Contentful Paint (LCP) measures how long the largest image or text block in the viewport takes to render; good is 2.5 seconds or less.

Largest Contentful Paint (LCP) is the time from when a user starts loading a page until the largest image, video poster or block of text in the viewport has rendered. It is the loading metric of Core Web Vitals and the closest single number to “when did the page look ready?”

Thresholds

  • Good: 2.5 seconds or less
  • Needs improvement: between 2.5 and 4 seconds
  • Poor: more than 4 seconds

As with every Core Web Vital, Google looks at the 75th percentile of real page loads, separately for mobile and desktop (web.dev: LCP).

What counts as the LCP element

Candidates are images (including the poster image of a video), elements with a CSS background image, and block-level elements that contain text. On most pages the winner is the hero image or the opening heading and paragraph. Elements the browser treats as low-content, such as full-screen background images or transparent placeholders, are skipped. LCP also stops updating once the user scrolls or taps.

The four parts of LCP

web.dev’s LCP optimization guide splits the metric into four parts. Fixing LCP means finding out which one is large:

  1. Time to first byte — the server response; see TTFB.
  2. Resource load delay — the gap before the browser even starts fetching the LCP image.
  3. Resource load duration — how long the image takes to download.
  4. Element render delay — the wait until it actually paints, often caused by CSS or JavaScript.

Example: a fast hero image

<img src="/img/hero-1200.avif"
     srcset="/img/hero-800.avif 800w, /img/hero-1200.avif 1200w"
     sizes="100vw" width="1200" height="600"
     fetchpriority="high" alt="Orchid on a sunny windowsill">

A real <img> in the server HTML is discovered immediately. fetchpriority="high" moves it to the front of the download queue, AVIF and responsive sizes cut the bytes, and the width and height attributes prevent a layout shift when it arrives.

Common mistakes

  • Lazy-loading the hero image. loading="lazy" on an above-the-fold image deliberately delays it. Keep lazy loading for content further down.
  • Hero images set in CSS or injected by JavaScript, which the browser discovers late. If you can’t avoid it, add a <link rel="preload" as="image"> in the head.
  • Multi-megabyte photos sent unchanged to phones.
  • Slow servers and redirect hops that eat the budget before anything downloads.
  • Web fonts hiding text while they load; font-display: swap or optional lets text appear right away.

Test it

The page speed test shows field LCP from PageSpeed Insights when available, together with server response time, image weight and formats, and render-blocking resources — the usual suspects behind each part. The image checker flags oversized files and images with lazy loading.

Frequently asked questions

What is a good LCP score?

Google considers 2.5 seconds or less good, 2.5 to 4 seconds in need of improvement, and over 4 seconds poor, measured at the 75th percentile of real visits.

Why is my LCP worse on mobile than on desktop?

Phones have slower processors and often slower, higher-latency connections, and they may download a hero image that wasn’t sized for them. Responsive images, a fast server and fewer render-blocking files help most.

Does LCP include images below the fold?

No. Only elements visible in the viewport during loading count, and LCP stops being updated once the user scrolls, taps or presses a key.