What Is INP? The INP Metric Explained and How to Fix It

What is INP? The INP metric times a click, tap or keypress until the next paint. Learn the three INP subparts and the fix for each, with a benchmark.

· BugViso Team

19 min read

**What is INP? Interaction to Next Paint (INP) is the Core Web Vitals metric that measures how long a page takes to show a visual response after a click, tap or keypress.

A good INP is 200 ms or less at the 75th percentile of page views.** To fix INP, find which of its three phases is slow, because each has a different fix.

By the end you'll be able to read an INP number, trace it to one interaction and one phase, and apply the fix that moves that phase. Every fix below comes with a measured before-and-after from a benchmark you can rerun.

Data used: (1) A phase benchmark we ran on 2026-10-29 in Google Chrome 156.0.8078.47 (headless, Playwright 1.42), 15 clicks per scenario at 1× and 4× CPU throttling on an Intel Core i3-1215U; the script is below. (2) Lab Total Blocking Time for 202 homepages from our core sample (Tranco list 94GG2, ranks 1,001–50,000, seed 20261003), loaded on 2026-10-08 with 4× CPU and 150 ms RTT throttling.

What Is INP? How It Is Calculated and What 200 ms Means

INP reports the slowest interaction on a page view, not an average. Per Google's INP definition on web.dev, the browser times every click, tap and key press from the input until the next frame is painted.

For pages with many interactions it ignores one highest interaction per 50, so one outlier on a long session doesn't decide the score.

That per-page value is then aggregated across real users at the 75th percentile, separately for mobile and desktop:

INP at p75RatingWhat a user feels
≤ 200 msGoodThe tap feels connected to the response
201–500 msNeeds improvementA visible lag; users tap again
> 500 msPoorThe page looks frozen

Three details trip people up. Hovering, scrolling and zooming are not timed, but a key press inside a scrolling widget is.

A page where nobody interacts reports no INP value at all, which is why a crawler or a page-load test can't produce a real one.

And INP is the newer, stricter replacement for First Input Delay; the INP vs FID breakdown covers why FID let slow apps pass.

The Three Phases Every Slow Interaction Fails In

What are the INP subparts?

The INP subparts are input delay (the tap until the first handler starts), processing duration (the handlers running) and presentation delay (the last handler ending until the next frame paints).

They run back to back, their sum is the interaction's latency, and the slowest one tells you which fix to try first.

Every interaction splits into three back-to-back phases, and the sum is the INP for that interaction. web.dev's guide to optimizing INP names them input delay, processing duration and presentation delay.

PhaseStarts → endsUsual causeThe fix family
Input delayTap → first event handler startsAnother long task is already runningBreak up or defer that work
Processing durationFirst handler starts → last handler endsYour handlers do too much before returningPaint first, do the rest later
Presentation delayLast handler ends → next frame paintedStyle, layout and paint of a big changeMake the rendering work smaller

This is why generic "reduce JavaScript" advice often fails. A page with a 20 ms handler can still score 500 ms if the DOM change behind it forces a huge restyle.

Optimising the handler won't touch that.

You can see the split yourself with the Event Timing API. One tap fires pointerdown, pointerup and click, each with its own entry, so group them by interactionId before you split:

javascript
const groups = new Map();
new PerformanceObserver((list) => {
  for (const e of list.getEntries()) {
    if (!e.interactionId) continue;
    const g = groups.get(e.interactionId) ?? [];
    g.push(e);
    groups.set(e.interactionId, g);
    const start = Math.min(...g.map((x) => x.startTime));
    const handlersStart = Math.min(...g.map((x) => x.processingStart));
    const handlersEnd = Math.max(...g.map((x) => x.processingEnd));
    const paint = Math.max(...g.map((x) => x.startTime + x.duration));
    console.log(e.interactionId, {
      inp: Math.max(...g.map((x) => x.duration)),
      inputDelay: handlersStart - start,
      processing: handlersEnd - handlersStart,
      presentation: paint - handlersEnd,
    });
  }
}).observe({ type: 'event', buffered: true, durationThreshold: 16 });

Paste it into the DevTools console, click around, and the slow phase is the biggest number. Event Timing rounds duration to 8 ms and skips anything under 16 ms, so treat small values as noise.

What Each Fix Actually Does: Benchmark Results

We built one test page per slow pattern, clicked it 15 times, and recorded the median INP and the phase it landed in. The left columns are the problem; the indented rows directly beneath each one are the fix for it.

Pattern on the pageSlow phaseINP at 1× CPUINP at 4× CPU
Handler updates one label (baseline)none< 16 ms< 16 ms
A 300 ms task is running when the user clicksInput delay248 ms248 ms
↳ Same work split into 40 ms chunks with scheduler.yield()Input delay24 ms32 ms
Click handler does 250 ms of work, then updates the labelProcessing248 ms256 ms
↳ Update the label, await scheduler.yield(), then do the worknone< 16 ms< 16 ms
↳ Update the label, wait for the next frame, then do the worknone< 16 ms< 16 ms
A class toggle restyles 20,000 elementsPresentation104 ms496 ms
↳ Same toggle, sections use content-visibility: autonone< 16 ms< 16 ms

Two results matter more than the rest. First, no fix removed the work: the chunked and deferred versions still run all 250–300 ms of JavaScript.

They just stop it from sitting between the tap and the paint, which is the only thing INP measures.

Second, the restyle went from 104 ms to 496 ms under 4× throttling: 4.8× slower for the same change. The JavaScript scenarios didn't scale because their busy loops are timed by the clock.

Real browser work, like style and layout, does scale. That's why an interaction that passes on a developer laptop fails on a mid-range phone.

The Diagnostic Workflow to Fix INP, Step by Step

Fixing INP goes in four steps: confirm it in field data, find the slow interaction, reproduce it under throttling, then fix the slow phase. Skipping straight to the fix is how teams spend a sprint on the wrong phase.

1. Confirm the problem in field data

Search Console's Core Web Vitals report groups URLs by INP status. Its help page says each figure is the 75th percentile "in the last 28 days" of Chrome user data.

Note the device type and the URL group; a template-wide failure (every product page) points to shared code, a single URL to page-specific work.

2. Find the interaction and the phase

Field data tells you a page is slow, not which tap. The web-vitals library's attribution build (version 5) reports both:

javascript
import { onINP } from 'web-vitals/attribution';

onINP(({ value, attribution }) => {
  navigator.sendBeacon('/rum', JSON.stringify({
    inp: Math.round(value),
    target: attribution.interactionTarget,       // CSS selector of the element
    type: attribution.interactionType,           // 'pointer' or 'keyboard'
    inputDelay: Math.round(attribution.inputDelay),
    processing: Math.round(attribution.processingDuration),
    presentation: Math.round(attribution.presentationDelay),
    script: attribution.longestScript?.entry?.sourceURL,
  }));
});

After a few days, group the beacons by target and sort by p75. The slowest selector and its largest phase are your first fix.

Setting this up across a real site (sampling, storage, dashboards) is covered in the INP monitoring and RUM setup guide.

3. Reproduce it under CPU throttling

Open the page in Chrome DevTools, set the Performance panel's CPU throttling to 4×, record, and perform the slow interaction. The interactions track shows the timing, and the long task under it shows which script ran.

Testing without throttling hides presentation delay, as the 104 ms vs 496 ms result above shows.

4. Apply the fix for that phase

Use the phase to pick the section below. If you found more than one slow phase, fix the largest first and re-measure; phases interact, so the second one is sometimes gone after the first fix.

Fixing Input Delay: Break Up Work That Is Already Running

Input delay means the browser was busy when the tap arrived, so the handler had to wait. In the benchmark, a 300 ms task produced a 248 ms INP even though the click handler itself took 1 ms.

The busy work is usually page-load JavaScript, timers, or third-party tags. Our lab data shows how common heavy load-time blocking is:

Total Blocking Time during a throttled mobile loadHomepagesShare
Under 200 ms3115.3 %
200–600 ms2110.4 %
600 ms – 2 s5929.2 %
2 s or more9145.0 %

The median homepage blocked the main thread for 1.61 seconds after first paint (202 sites measured; 17 of the 219 timed out or failed). Any tap during those long tasks inherits their remaining time as input delay.

Lab TBT runs higher than fast real devices see, so read it as relative risk, not a field score.

The fix is to let the browser handle input between chunks of work. Yield every ~40 ms:

javascript
const yieldToMain = () =>
  'scheduler' in window && 'yield' in scheduler
    ? scheduler.yield()
    : new Promise((resolve) => setTimeout(resolve, 0));

async function processItems(items) {
  let lastYield = performance.now();
  for (const item of items) {
    transform(item);
    if (performance.now() - lastYield > 40) {
      await yieldToMain();
      lastYield = performance.now();
    }
  }
}

scheduler.yield() isn't Baseline yet, hence the fallback. Chunking took the benchmark's INP from 248 ms to 32 ms at 4× CPU; the remaining 32 ms is the tap waiting for the current chunk to finish.

If the busy code isn't yours, the third-party script INP benchmark and the Google Tag Manager main-thread guide cover deferring tags you can't edit.

Fixing Processing Duration: Paint First, Work Second

Processing duration is time spent inside your own handlers before they return. The fix is to make the visible change first, hand the browser one frame to paint it, and only then run the expensive part.

javascript
// ❌ The user sees nothing until filtering finishes (256 ms INP at 4× CPU)
button.addEventListener('click', () => {
  const rows = applyFilters(allRows); // 250 ms
  renderRows(rows);
  button.textContent = 'Filtered';
});
javascript
// ✅ The label paints in the next frame; filtering runs after it (< 16 ms INP)
const afterNextPaint = () =>
  new Promise((resolve) => requestAnimationFrame(() => setTimeout(resolve, 0)));

button.addEventListener('click', async () => {
  button.textContent = 'Filtering…';
  button.setAttribute('aria-busy', 'true');
  await afterNextPaint();
  renderRows(applyFilters(allRows));
  button.textContent = 'Filtered';
  button.removeAttribute('aria-busy');
});

The requestAnimationFrame + setTimeout pair is the cross-browser pattern web.dev recommends. In Chrome 156, await scheduler.yield() in the same spot also kept every click under 16 ms.

On Chromium 123, which predates scheduler.yield() and therefore used the setTimeout(0) fallback, 12 of 15 clicks stayed under 16 ms.

In React, startTransition gives you the same split: the urgent state update renders first and the expensive one becomes interruptible.

If one computation alone takes hundreds of milliseconds, deferring only moves the freeze to the next tap, so move it to a Web Worker.

The worst INP offenders guide walks through nine concrete handler patterns (synchronous localStorage, oversized re-renders, and more) with their fixes.

Fixing Presentation Delay: Shrink the Rendering Work

Presentation delay is the browser recalculating styles, laying out and painting after your code finishes. In the benchmark, toggling one class on <body> restyled 20,000 elements and cost 496 ms at 4× CPU, while the handler itself took 1 ms.

The fix is to make each change touch fewer elements:

  • Skip off-screen rendering. content-visibility: auto on large sections lets the browser skip layout and paint for content that isn't visible, per web.dev's content-visibility guide. It took the benchmark restyle from 496 ms to under 16 ms. Pair it with contain-intrinsic-size so the scrollbar doesn't jump.
  • Scope the selector. Toggle the class on the component that changes, not on <body> or <html>, so style recalculation covers one subtree.
  • Batch reads before writes. Reading offsetHeight after setting a style forces a synchronous layout inside your handler; read everything first, then write.
  • Animate transform and opacity. They run on the compositor and skip layout entirely.

Large DOMs make every one of these worse. If a list renders thousands of rows, virtualise it before tuning anything else.

Run It Yourself: The INP Phase Benchmark

This script produced the benchmark table. It builds a local test page, throttles the CPU, clicks with raw mouse input, and splits each interaction into its three phases the way the web-vitals attribution build does.

Adapt SCENARIOS and the click handler to test your own patterns.

python
#!/usr/bin/env python3
"""Measure INP and its three phases for common slow-interaction patterns.

Loads a local test page in headless Chromium with CPU throttling, clicks a
button repeatedly per scenario, and reads the Event Timing API to split each
interaction into input delay, processing duration and presentation delay.

Usage: python3 inp_phase_bench.py [--runs 15] [--cpu 4] [--channel chrome] [--only heavy_handler]
Requires: pip install playwright && playwright install chromium
"""
import argparse
import asyncio
import json
import statistics

from playwright.async_api import async_playwright

PAGE = r"""<!doctype html><html><head><meta charset="utf-8"><style>
  .cell { display:inline-block; width:40px; padding:2px; font:12px sans-serif; }
  body.dense .cell { padding:3px; width:41px; }
  .cv section { content-visibility:auto; contain-intrinsic-size:auto 600px; }
</style></head><body>
<button id="btn" style="position:fixed;top:8px;left:8px;z-index:9;padding:12px">Click</button>
<div id="grid" style="margin-top:60px"></div>
<script>
const busy = (ms) => { const end = performance.now() + ms; while (performance.now() < end) {} };
const yieldToMain = () => ('scheduler' in window && 'yield' in scheduler)
  ? scheduler.yield() : new Promise((r) => setTimeout(r, 0));
const afterPaint = () => new Promise((r) => requestAnimationFrame(() => setTimeout(r, 0)));

window.entries = [];
new PerformanceObserver((list) => {
  for (const e of list.getEntries()) if (e.interactionId) window.entries.push({
    id: e.interactionId, name: e.name, start: e.startTime, dur: e.duration,
    ps: e.processingStart, pe: e.processingEnd });
}).observe({ type: 'event', buffered: true, durationThreshold: 16 });

window.buildGrid = (n, cv) => {
  const grid = document.getElementById('grid');
  grid.className = cv ? 'cv' : '';
  let html = '';
  for (let s = 0; s < n / 500; s++) {
    html += '<section>';
    for (let i = 0; i < 500; i++) html += '<span class="cell">' + (s * 500 + i) + '</span>';
    html += '</section>';
  }
  grid.innerHTML = html;
};

// Background work that is already running when the user clicks.
window.startBackground = (ms, chunked) => setTimeout(async () => {
  if (!chunked) return busy(ms);
  for (let done = 0; done < ms; done += 40) { busy(40); await yieldToMain(); }
}, 0);

const btn = document.getElementById('btn');
btn.addEventListener('click', async () => {
  switch (window.SCENARIO) {
    case 'heavy_handler': busy(250); btn.textContent = 'Done'; break;
    case 'yield_in_handler': btn.textContent = 'Working'; await yieldToMain(); busy(250); break;
    case 'defer_after_paint': btn.textContent = 'Working'; await afterPaint(); busy(250); break;
    case 'restyle': document.body.classList.toggle('dense'); break;
    default: btn.textContent = String(Math.random()).slice(2, 6);
  }
});
</script></body></html>"""

SCENARIOS = {
    # name: (setup JS, background ms, chunked background)
    "baseline": ("", 0, False),
    "busy_main_thread": ("", 300, False),
    "chunked_main_thread": ("", 300, True),
    "heavy_handler": ("", 0, False),
    "yield_in_handler": ("", 0, False),
    "defer_after_paint": ("", 0, False),
    "restyle": ("buildGrid(20000, false)", 0, False),
    "restyle_content_visibility": ("buildGrid(20000, true)", 0, False),
}

def phases(entries):
    """Split each interaction into the three INP subparts.

    One tap fires pointerdown, pointerup and click, each with its own entry, so
    group them by interactionId the way web-vitals' attribution build does:
    delay runs to the first handler, processing spans all handlers, and the
    remainder until the shared next paint is presentation.
    """
    by_id = {}
    for e in entries:
        by_id.setdefault(e["id"], []).append(e)
    out = []
    for group in by_id.values():
        first = min(group, key=lambda e: e["start"])
        end = max(e["start"] + e["dur"] for e in group)
        ps = min(e["ps"] for e in group)
        pe = max(e["pe"] for e in group)
        inp = max(e["dur"] for e in group)
        delay, proc = ps - first["start"], pe - ps
        out.append({"inp": inp, "input_delay": delay, "processing": proc,
                    "presentation": max(0.0, end - pe)})
    return out

async def run(runs, cpu, only, channel):
    results = {}
    async with async_playwright() as p:
        browser = await p.chromium.launch(channel=channel or None)
        print(f"Chromium {browser.version}, CPU throttle {cpu}x, {runs} clicks per scenario")
        for name, (setup, bg_ms, chunked) in SCENARIOS.items():
            if only and name not in only:
                continue
            page = await browser.new_page(viewport={"width": 412, "height": 823})
            cdp = await page.context.new_cdp_session(page)
            await page.set_content(PAGE)
            await cdp.send("Emulation.setCPUThrottlingRate", {"rate": cpu})
            if setup:
                await page.evaluate(setup)
            await page.evaluate(f"window.SCENARIO = {json.dumps(name)}")
            await page.wait_for_timeout(500)
            box = await page.locator("#btn").bounding_box()
            x, y = box["x"] + box["width"] / 2, box["y"] + box["height"] / 2
            for _ in range(runs):
                if bg_ms:
                    await page.evaluate(f"startBackground({bg_ms}, {json.dumps(chunked)})")
                    await page.wait_for_timeout(50)  # click lands inside the work
                # Raw input, not page.click(): its actionability checks run JS in
                # the page, so they would wait out the busy main thread first.
                await page.mouse.click(x, y)
                await page.wait_for_timeout(bg_ms + 900)
            rows = phases(await page.evaluate("window.entries"))
            missing = runs - len(rows)
            rows += [{"inp": 0, "input_delay": 0, "processing": 0, "presentation": 0}] * missing
            results[name] = {k: statistics.median(r[k] for r in rows) for k in rows[0]}
            results[name]["under_16ms"] = missing
            await page.close()
        await browser.close()

    print(f"\n{'scenario':28} {'INP':>6} {'delay':>6} {'proc':>6} {'pres':>6}  (median ms)")
    for name, r in results.items():
        note = f"  {r['under_16ms']} of {runs} clicks < 16 ms" if r["under_16ms"] else ""
        if r["inp"] < 16:  # Event Timing doesn't report entries under 16 ms
            print(f"{name:28} {'<16':>6} {'-':>6} {'-':>6} {'-':>6}{note}")
            continue
        print(f"{name:28} {r['inp']:6.0f} {r['input_delay']:6.0f} "
              f"{r['processing']:6.0f} {r['presentation']:6.0f}{note}")

if __name__ == "__main__":
    ap = argparse.ArgumentParser()
    ap.add_argument("--runs", type=int, default=15)
    ap.add_argument("--cpu", type=float, default=4)
    ap.add_argument("--only", default="")
    ap.add_argument("--channel", default="", help="e.g. chrome to use installed Google Chrome")
    a = ap.parse_args()
    asyncio.run(run(a.runs, a.cpu, set(filter(None, a.only.split(","))), a.channel))

Run it with --channel chrome to test your installed Chrome instead of Playwright's bundled Chromium, and --cpu 6 to approximate a low-end phone. Absolute numbers depend on your machine, so compare scenarios against each other rather than against our table.

How BugViso Flags the Long Tasks Behind Input Delay

A crawler can't produce a true INP, because INP needs a real person tapping. What an automated scan can measure is the load-time main-thread blocking that turns into input delay, and that's where BugViso's checks focus.

Each scan records every main-thread long task over 50 ms with PerformanceObserver, computes Total Blocking Time, and attributes the worst task to its source script.

It reloads the page under emulated Slow 3G and Fast 3G with CPU throttling, and measures unused JavaScript with Chrome's code coverage, so you can see which bundle to split or defer.

Core Web Vitals come from the self-hosted web-vitals library on desktop and a Pixel 5 mobile profile. INP is reported only when an interaction happens during the scan, which for an unattended crawl is usually never.

The result is the input-delay half of the workflow above, run across every crawled page: the scripts that block the main thread, ranked, with a fix for each in the report.

The full list of checks is on the Core Web Vitals and speed audit page.

Mistakes That Keep INP Failing After a Fix

Four mistakes keep INP failing after a fix: fixing the wrong phase, testing only on a fast laptop, treating TBT as INP and expecting Search Console to update at once.

  • Fixing the wrong phase. Shaving a handler from 40 ms to 10 ms does nothing if a 400 ms restyle follows it. Measure the split first.
  • Testing only on a fast laptop. Our restyle cost 104 ms unthrottled and 496 ms at 4× CPU. Always reproduce at 4× or 6×.
  • Treating TBT as INP. Lab TBT predicts input-delay risk during load. It says nothing about a slow handler on a filter button two minutes into the session.
  • Expecting Search Console to update tomorrow. The report uses the last 28 days of field data, and its validation runs a 28-day monitoring window, so a deployed fix takes weeks to show.

Frequently Asked Questions

What is a good INP score?

A good INP is 200 ms or less at the 75th percentile of page views, measured separately for mobile and desktop. Between 200 and 500 ms needs improvement, and above 500 ms is poor.

The value for one page view is its slowest interaction, ignoring one per 50 on very interactive pages.

How do I fix INP on mobile but not desktop?

Mobile CPUs are slower, so the same rendering work takes several times longer. In our benchmark a restyle took 104 ms at full speed and 496 ms at 4× throttling.

Reproduce the slow interaction under DevTools CPU throttling, then shrink the work in its slowest phase.

Does INP affect Google rankings?

INP is one of Google's three Core Web Vitals, alongside LCP and CLS (see Core Web Vitals explained). How much they move rankings is debated; the evidence is collected in what Core Web Vitals data says about ranking impact.

Either way, a slow tap costs you users before it costs you positions.

Can I measure INP without real users?

Only partly. A lab tool can measure INP for interactions you script, as the benchmark above does, and can measure Total Blocking Time during load.

It can't know which elements real users tap or what state the page is in, so confirm with field data from Search Console or the web-vitals library.

Why does my page have no INP value?

INP needs at least one click, tap or key press. A page view where the user only scrolls or reads reports no INP.

In Search Console, a URL group can also lack data when too few Chrome users visit it to report.

Start With the Slowest Phase, Not the Biggest Script

INP rewards one habit: measure which phase is slow before changing code, then apply the fix built for that phase. If input delay is your problem, start with the load-time long tasks a BugViso audit ranks by script.

Written by

· BugViso Team

Kazi writes BugViso’s guides on website audits, Core Web Vitals, technical SEO, accessibility and AI search. The data in them comes from audits BugViso runs in a real Chromium browser, including our 219-site study of website health.

Found this useful? Share it.

Summarise with AI

Open this guide in your assistant.

Follow BugViso

New guides and audit data as we publish them.

AI visibility tracker

Is your brand in AI answers?

See how often AI assistants mention you, cite your site and rank you against your competitors.

  • ChatGPT
  • Gemini
  • Perplexity
  • Claude
  • AI Overviews
See how it works

See where your site stands

Run a free BugViso audit for SEO, speed, accessibility and AI search readiness — with fixes you can ship today.