# Interaction to Next Paint (INP)

Also called: INP

Interaction to Next Paint measures how quickly a page responds when a visitor clicks, taps or presses a key. It is the time from the interaction until the browser paints the next frame, reported for one of the slowest interactions of the visit.

## How it is calculated

The browser times every click, tap and key press from the input to the next paint. That covers the wait before the handler runs, the handler itself and the rendering after it. INP is the worst of those, ignoring one outlier for every 50 interactions.

[Google's INP guide](https://web.dev/articles/inp) rates a value at or under 200 milliseconds as good and over 500 milliseconds as poor. Because it looks at every interaction, not only the first, a page that loads fast can still fail INP on a slow filter or menu.

## Example

A visitor opens a filter menu and the page takes 380 ms to show it, because a large script is busy on the main thread. Every other interaction is under 100 ms. INP for the visit is 380 ms: needs improvement.

## Common mistakes

- Treating it like First Input Delay. FID measured only the delay before the first handler. INP covers the whole response, for every interaction.
- Testing only the load. INP problems appear when people use the page, often long after it loaded.
- Ignoring third-party scripts. Tag managers and chat widgets are common causes of long tasks.

## How CrispStats shows it

CrispStats records INP on real visits with the `data-vitals` attribute, taking the worst interaction after skipping one per 50. It is shown at the 75th percentile, rated against 200 ms and 500 ms, and broken down by page and device, where slow phones usually stand out.

## Related terms

- [Core Web Vitals](/glossary/core-web-vitals)
- [Largest Contentful Paint (LCP)](/glossary/lcp)
- [Cumulative Layout Shift (CLS)](/glossary/cls)
- [Time to First Byte (TTFB)](/glossary/ttfb)
