Skip to content

Performance

INP explained: Interaction to Next Paint, its thresholds and how to fix it

Interaction to Next Paint (INP) measures how fast a page responds to clicks, taps and key presses. The thresholds, how it is calculated, and how to fix it.

The CrispStats team · · 8 min read

In short

Interaction to Next Paint (INP) measures how long a page takes to show a visible response after a click, tap or key press, and reports roughly the slowest one in a visit. Good is 200 milliseconds or less, needs improvement is up to 500 milliseconds, and poor is above 500, judged at the 75th percentile of real visits. It replaced First Input Delay as a Core Web Vital on 12 March 2024. Almost every slow INP comes from JavaScript keeping the main thread busy, so the fix is to do less work per interaction and yield to the browser often.

You tap “Add to cart” and nothing happens. You tap again. Then two items land in the cart. That gap between the tap and the first visible change is what Interaction to Next Paint measures, and it is the Core Web Vital that most often catches sites that look fast in a lab test.

Everything here comes from Google’s web.dev documentation, mainly the INP article and the INP optimisation guide, read on 23 November 2026. For the other two vitals side by side, see Core Web Vitals in plain English; for LCP and CLS fixes, see how to improve Core Web Vitals.

What is INP?

web.dev defines INP as a metric that “assesses a page’s overall responsiveness to user interactions”. For each interaction, it measures the time from the input until the browser paints the next frame. At the end of the visit, the page’s INP is the longest interaction observed, ignoring outliers. The reason it matters: web.dev cites Chrome usage data showing that 90% of a user’s time on a page is spent after it loads. Load speed is only the start of the experience.

Which interactions count?

From web.dev’s INP article.
CountedNot counted
Clicking with a mouseHovering
Tapping a touchscreenScrolling
Pressing a key on a physical or on-screen keyboardGestures with no click, tap or key press

If a visitor never clicks, taps or types, that visit has no INP at all. Bots and people who only scroll produce no value, which is why INP data is thinner than LCP data for the same page.

What is a good INP score?

web.dev thresholds, applied to the 75th percentile of page loads, mobile and desktop separately.
RatingINP at the 75th percentile
Good200 ms or less
Needs improvementOver 200 ms, up to 500 ms
PoorOver 500 ms

The 75th percentile means three out of four visits must be at or under 200 milliseconds for the page to pass. A page can feel fine on your laptop and fail because a quarter of its visitors use slower phones.

How is INP calculated?

Two rules decide the number. First, each interaction’s latency covers three phases. Second, the page’s INP is close to the worst interaction, with an allowance for very busy pages.

The three phases of an interaction

The three phases of an interaction
Phaseweb.dev's definitionWhat usually makes it slow
Input delayThe time before any callback for the interaction is handledOther JavaScript already running, often during page load
Processing durationThe time for all the callbacks to executeHeavy event handlers
Presentation delayFrom the end of the callbacks until the frame is presentedA large DOM, big re-renders, layout and paint work

The outlier rule

On pages with many interactions, web.dev says INP ignores one highest interaction for every 50. So a visit with 30 interactions reports the slowest one. A visit with 120 interactions ignores the two slowest and reports the third-slowest. This stops one freak delay on a long session from defining the whole page.

A worked example: diagnosing one slow interaction

Say a filter button on a product listing page has a 75th-percentile INP of 360 milliseconds, which needs improvement. Your field data, using the attribution build of Google’s web-vitals library, breaks the slowest interaction down like this:

A worked example: diagnosing one slow interaction
PhaseBeforeCauseAfter the fix
Input delay40 msA small analytics task was running40 ms
Processing duration250 msThe click handler filters 2,000 products, updates the URL, sends an event and re-renders the grid60 ms
Presentation delay70 msRe-rendering 2,000 cards50 ms
Total360 ms150 ms

The handler is the problem. The fix keeps only the visible work in the handler: show a loading state on the grid, then yield so the browser can paint it. The interaction now ends at that paint. The filtering, URL update and analytics run in the next task. Rendering only the first screen of results, with the rest added as the visitor scrolls, trims the presentation delay. 40 + 60 + 50 = 150 milliseconds, which is good.

How do you fix a slow INP?

The web.dev team lists three fixes as the most effective in its Core Web Vitals priorities: yield often to break up long tasks, avoid unnecessary JavaScript, and avoid large rendering updates. In practice:

1. Yield to the main thread

Any task longer than 50 milliseconds is a long task, and while it runs the browser cannot respond or paint. Split work into pieces and yield between them. scheduler.yield() returns a promise that resolves in a future task; web.dev lists support in Chrome and Edge from version 129 and Firefox from 142, but not in Safari, so use a fallback:

function yieldToMain() {  if (globalThis.scheduler?.yield) {    return scheduler.yield();  }  // Fall back to a new task where scheduler.yield() is not supported  return new Promise((resolve) => setTimeout(resolve, 0));}button.addEventListener('click', async () => {  showSpinner();          // the visible update first  await yieldToMain();    // let the browser paint it  saveToServer();         // the rest can wait a frame  sendAnalytics();});

2. Keep event handlers light

  • Do the visible update first. Everything the visitor needs to see goes before the first yield.
  • Defer what can wait. Network requests, analytics calls, logging and storage writes can run after the paint.
  • Avoid layout thrashing. Reading a size or position right after changing styles forces the browser to lay out synchronously. Batch reads before writes.

3. Reduce rendering work

  • Keep the DOM small. Rendering cost grows with the number of elements; add elements as they are needed rather than all at once.
  • Use `content-visibility: auto` on long off-screen sections so the browser skips rendering them until needed.
  • Re-render less. In React and similar frameworks, a keystroke that re-renders a whole page is the classic INP failure. Keep state close to where it is used.

4. Cut JavaScript you do not need

Input delay is mostly other code that happens to be running. Remove unused bundles, delay non-essential third-party tags such as chat widgets until after load or first interaction, and check what your tag manager loads. Each script competes for the same main thread.

How do you find which interaction is slow?

  1. Start with field data to find the page and device: Search Console, PageSpeed Insights or your own real-user monitoring.
  2. Get interaction-level detail. The web.dev guide prefers a real-user monitoring provider that reports the specific interaction, its type, and whether it happened during or after load. The web-vitals library attribution build gives you the target element and the three phases, and Chrome’s Long Animation Frames API shows which scripts ran during a slow frame.
  3. Reproduce in the lab. In Chrome DevTools, record a performance trace while performing the interaction with CPU throttling on. Interact during page load too, when the main thread is busiest.

INP vs FID: what changed?

First Input Delay (FID) measured only the input delay of the first interaction. It ignored processing and presentation time and every later interaction. INP covers all three phases and every interaction in the visit, which makes it much harder to pass. Google made INP a Core Web Vital on 12 March 2024, replacing FID, and web.dev notes that fewer sites pass INP than passed FID.

INP vs FID: what changed?
RowFID (retired)INP
Interactions measuredThe first one onlyAll of them, reporting near the worst
Phases measuredInput delay onlyInput delay, processing and presentation
Good threshold100 ms or less200 ms or less
Core Web VitalUntil 12 March 2024Since 12 March 2024

How CrispStats reports INP

CrispStats collects INP from real visits with LCP, CLS, FCP and TTFB when you add data-vitals to the script tag. It shows the 75th percentile and the share of visits rated good, needs improvement and poor, with INP per page and per device type, so the product listing page from the worked example would show up in the page list, and the device split shows whether phones are the ones failing. The country breakdown covers LCP and TTFB, not INP. See web vitals.

It does not show which element or script caused a slow interaction, or the three-phase breakdown. Use it to find the failing page, then use the web-vitals attribution build or Chrome DevTools for the cause. A vitals regression alert can tell you when a deploy pushes INP up, so you find out from your own data rather than from Search Console weeks later.

Guide questions. Straight answers.

What people ask after reading this.

  • 200 milliseconds or less at the 75th percentile of page visits. Over 200 and up to 500 milliseconds needs improvement, and over 500 milliseconds is poor. Mobile and desktop are assessed separately.

  • Interaction to Next Paint became a Core Web Vital on 12 March 2024, replacing First Input Delay. FID measured only the delay before the first interaction was handled; INP measures the full latency of every interaction in a visit.

  • A standard Lighthouse run loads the page without anyone clicking, tapping or typing, so there are no interactions to measure. Use field data for INP, and Lighthouse's Total Blocking Time as a rough lab stand-in for main-thread congestion.

  • No. Hovering and scrolling are not observed for INP. Only clicks, taps and key presses count. A visit with none of those has no INP value.

  • Phones usually have slower processors, so the same JavaScript takes longer and long tasks block the main thread for more time. Profile on a mid-range phone, or with CPU throttling in DevTools, to see what your mobile visitors experience.

Not answered here? Write to hello@crispstats.com

Go further

Use cases

  • CrispStats for developers

    A small cookieless script with web vitals and error tracking, an npm SDK, a REST API and an MCP server, so your analytics fits the way you work.

  • CrispStats for SaaS

    See which channels bring paying customers, where trials stall in the funnel, and how your app performs for real users, from one cookieless script.

  • CrispStats for ecommerce

    Tie orders to the campaign, page and source they came from, find where checkout loses people, and watch page speed, without cookies.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.