# Largest Contentful Paint (LCP)

Also called: LCP

Largest Contentful Paint is the time from when a page starts loading until its largest visible element, usually a hero image or a headline, is drawn on screen. It measures how quickly the main content appears.

## How it is calculated

The browser reports a new LCP candidate each time a larger element finishes rendering in the viewport, and stops when the visitor first interacts. The last candidate is the LCP.

In [Google's LCP guide](https://web.dev/articles/lcp) a value at or under 2.5 seconds is good, over 4.0 seconds is poor, and anything between needs improvement. Like the other Core Web Vitals it is judged at the 75th percentile of visits, and Google recommends reading phones and desktops separately.

```
LCP = render time of the largest element in the viewport − navigation start
```

## Example

A landing page's hero image finishes rendering 3.4 seconds after navigation on a mid-range phone. LCP is 3.4 s: needs improvement. Preloading the image and serving a smaller file brings it to 2.2 s, which is good.

## Common mistakes

- Lazy-loading the hero image. The browser then discovers the most important element late.
- Blaming the image when the server is slow. LCP includes TTFB, so a slow first byte pushes everything back.
- Testing only on a fast laptop and connection. A hero image that paints in 1 second on office broadband can take several on a mid-range phone, so read LCP by device.

## How CrispStats shows it

CrispStats records LCP on real visits with the `data-vitals` attribute, using the last candidate the browser reports. It shows the 75th percentile with the 50th and 90th, rates it against the 2.5 s and 4.0 s thresholds, and lists it by page, device and country so you can find the slow template.

## Related terms

- [Core Web Vitals](/glossary/core-web-vitals)
- [Time to First Byte (TTFB)](/glossary/ttfb)
- [Interaction to Next Paint (INP)](/glossary/inp)
- [Cumulative Layout Shift (CLS)](/glossary/cls)
